简体   繁体   中英

Running a Series of tests with uiautomator

I have a handful of test I have written all in separate classes. I would like them to all be tested in one continuos test, giving me one report. Thinking about it, I would use an intent to start the next class. But this isn't possible when extending UiAuotomatorTestCase . So, how would I do this? Or do I need to put them all in a single class and just execute that class? The only problem with that, is the class will start to get pretty big, and hard for me to stay organized.

在命令行中,您需要使用逗号分隔要运行的类和方法。

adb shell uiautomator runtest <NAME_OF_JAR>.jar -c <YOUR_CLASS>#<YOUR_FIRST_METHOD>, -c <YOUR_CLASS>#<YOUR_SECOND_METHOD>

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