how to set Robotium test priority?

120 views Asked by At

I want to set test cases in queue. Now they runs by alphabetic queue in Run Congiguration: Android Tests, but how to set Robotium test priority?

For example I want to run at first testSecond, and only then testFirst, how to configure that?

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

     @Override
     public void tearDown() throws Exception {
       solo.finishOpenedActivities();
       super.tearDown();
     }

     public void testFirst() {}

     public void testSecond() {}
1

There are 1 answers

0
Zhang Zening On

The priority is based on the characters. In other words, it runs from A to Z.