Re: How Close or Exit the application or Robotium after completion of each test in test suit ???

443 views
Skip to first unread message

naveed

unread,
May 13, 2013, 2:20:49 AM5/13/13
to robotium-...@googlegroups.com
Hi, 

It depends how you implemented your suit. 

Ideally it exit the app by calling TearDown at end of each case & starts new one. There may be something you missed, not sure what, can you please paste your code structure here on window. It will help to understand issue. 

 

On Friday, May 10, 2013 10:47:29 PM UTC+5, Kishore K wrote:
Hi All,

I'm new to this tool . I couldn't able to do pass certain issues , like how to exit the application and how to close robotium   once test execution is completed .

i'm currently using solo 4.1 jar and Android 4.0 API .

My issues is : i have three test cases and i want execute them in test suite . However i'm facing a problem as if it is not exit the application , the consecutive test cases are staring with the previous state of test script .

For example : i'm testing Gmail application 

Test case 1 --->>> Launch the application and Login and Logout the application 
Test case 2--->>> Launch the application and Login and send a mail and Log out the application .
Test case 3--->>>>  Launch the application and Login and check the  a mail and Log out the application .
 
solo.finishOpenedActivities(); is also used in each test case tear down () as well.

When i run theses three test cases in Junit test suit .
test case 1 executes and complete till log out as we have written script but it is not exit the application , the test case 2 is execution starts from Log-in screen instead of Launching freshly .
Even if test case 1 fails due to some issue at after Log-in then test case 2 is starting from that screen because of this test case 2 is also Fails .

Could some one help , how to resolve this issue ... ???

How to exit the application , once test script is completed and how to launch freshly for every test script in test suit ???

I hope there are good Pro's in this blog and i will get help.... Please help me pro's  :)


Regards,
Kishore

Reply all
Reply to author
Forward
0 new messages