App closes during test

During my test my app closes. I’m using maven to run the test. I have the below capabilities.

capabilities.setCapability("maxDuration", 7200);
capabilities.setCapability("newCommandTimeout", 100000);
capabilities.setCapability("idleTimeout", 7200);

The app closes ~1 minute 15seconds into the test.
What could be causing this?

Nobody can tell without seeing the log.

Please share the appium console log.


I’m getting same issue.
My test cases are executing in certain level of loops.
Upto 7-9 loops everything works fine but after that application closes automatically but the execution wont stop, only app closes.

I’m attaching 3 command logs from appium - 258 and 259 are working fine(I suppose), problem is within Command 260

Any Help appreciated.
Command 258.txt (15.4 KB)
Command 260.txt (31.4 KB)

Command 259:
command 259:

[debug] [Instruments] [INST] 2016-08-04 05:47:26 +0000 Debug: Got new command 259 from instruments: au.getElementByIndexPath(’/0/1/3’)

[debug] [UIAuto] Socket data received (39 bytes)

[debug] [UIAuto] Got result from instruments: {“status”:0,“value”:{“ELEMENT”:“60”}}
[MJSONWP] Responding to client with driver.findElement() result: {“ELEMENT”:“60”}
[HTTP] <-- POST /wd/hub/session/1ae64d99-8606-441f-b660-f607b9539636/element 200 2614 ms - 88

[HTTP] --> POST /wd/hub/session/1ae64d99-8606-441f-b660-f607b9539636/element/60/value {“id”:“60”,“value”:[“Moonlight Storytime: Insect Minstrels”]}
[MJSONWP] Calling AppiumDriver.setValue() with args: [["Moonlight Storytime: Ins…
[debug] [iOS] Executing iOS command ‘setValue’
[debug] [UIAuto] Sending command to instruments: au.getElement(‘60’).setValueByType(‘Moonlight Storytime: Insect Minstrels’)
[debug] [Instruments] [INST] 2016-08-04 05:47:26 +0000 Debug: evaluating au.getElementByIndexPath(’/0/1/3’)

[debug] [Instruments] [INST] 2016-08-04 05:47:26 +0000 Debug: evaluation finished

[debug] [Instruments] [INST] 2016-08-04 05:47:26 +0000 Debug: responding with:

[debug] [Instruments] [INST] 2016-08-04 05:47:26 +0000 Debug: Running system command #260: /Applications/ /Applications/ /var/folders/nj/kcb66w_x1_5ggn983sl3r5rw0000gp/T/instruments_sock 2,{“status”:0,"v…