简体   繁体   中英

how to set Robotium test priority?

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() {}

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM