Appium iOS real device TestNG Eclipse


Summary : iOS real device application under test is not launching unless WebDriverAgent is manually uninstalled from the device.

The problem :

I have created different tests for my iOS application which tests different functionalities . On each test I have added a @beforetest and @aftertest which set the device capability again so that the application can launch as fresh and start executing the test cases.

But when I start the execution, the first test case runs successfully but the rest is hanged.

Anyone have any idea to move forward with this issue? If you want more technical details I can do that, but if its a bug or some configuration issues, which can be solved in a single line, please do that.