[英]Parallel tests in Android with cucumber, appium and testNG in java
I have 5 real devices in which I want to execute 20 tests, for example: 4 tests in each device in parallel, that is, in device 1 test 1 is executed, when the test ends, test 2 follows, in device 2 test 5 , at the end of test 5, follows 6... I can only run 1 test on each device in parallel, when I run more than 1, the test fails.我有5个真实设备,我想在其中执行20个测试,例如:每个设备并行4个测试,即在设备1中执行测试1,当测试结束时,测试2跟随,在设备2中测试5 ,在测试 5 结束时,跟随 6...我只能在每个设备上并行运行 1 次测试,当我运行超过 1 次时,测试失败。 Is there a way to specify that the current test is expected to finish before the next one starts?
有没有办法指定当前测试预计在下一个测试开始之前完成? I am using Cucumber, Appium, testNG
我正在使用 Cucumber、Appium、testNG
You've got to set dataproviderthreadcount
somehow.你必须以某种方式设置
dataproviderthreadcount
。
And that depends on how you run TestNG.这取决于你如何运行 TestNG。
Via the CLI: https://testng.org/doc/documentation-main.html#running-testng通过 CLI: https ://testng.org/doc/documentation-main.html#running-testng
Via Maven: https://maven.apache.org/surefire-archives/surefire-2.21.0/maven-surefire-plugin/examples/testng.html通过 Maven: https ://maven.apache.org/surefire-archives/surefire-2.21.0/maven-surefire-plugin/examples/testng.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.