austgl / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Restart the application #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.How do I restart the application from within a test case.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
2.1 windows

Please provide any additional information below.
I have the following problem:
I want to restart the application from within the test case.
Below is the code I'm working on

public testtest(){
   super("it.esercizio141.esempiomenu",EsempioMenuActivity.class);

    }

    public void setUp() throws Exception {
         solo = new Solo(getInstrumentation(), getActivity());
          }

     public void testFai() throws Exception {
             solo.pressMenuItem(0);
         solo.pressMenuItem(1);
         this.launchActivity();

     }
Where can I go to write something in order to restart the application?
Thank you very much

Original issue reported on code.google.com by sergio.p...@gmail.com on 21 Feb 2011 at 3:53

GoogleCodeExporter commented 9 years ago
Hi,

I do not know. It can not be done with Robotium.

Original comment by renasr...@gmail.com on 21 Feb 2011 at 4:35