I am testing a new mobile application and have written some scripts that in the past were working, not for some reason they seem to be giving me issues.
One of my test scripts executes fine, until it gets to the end and then the application closes and I see the following in my Appium window.
Does anyone have any clue why this would be happening?
Running Appium 1.4.8
info: [debug] [INST] Instruments Trace Complete (Duration : 139.272583s; Output : /tmp/appium-instruments/instrumentscli0.trace)
info: [debug] [INSTSERVER] Instruments exited with code 0
info: [debug] Cleaning up after instruments exit
info: [debug] Stopping iOS log capture
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killing any other simulator daemons
info: [debug] Killall iOS Simulator
info: [debug] On a real device; cannot clean device state
info: [debug] Cleaning up appium session
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"c29758a7-b39a-4f99-b037-fb5b158dee2f"}
I think I have figured out what the issue is.
One of my scripts is doing a check for text on the screen, if it fails, then for some reason it seems like it crashes the instruments.
If it is successful, then the script keeps executing.
Here is my code for identifying the elements on the screen and some basic functions I have built to interact with them.
The offending calls are the boolean calls that do a compare of what is in my JSON file vs. whats on the screen. If it fails, then it seems like something in the instruments crashes, not quite sure though.