简体   繁体   English

在 Android 中使用 cucumber、appium 和 testNG 在 Java 中进行并行测试

[英]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。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在Cucumber&Testng中运行并行测试 - Unable to run parallel tests in Cucumber &Testng 如何使用 TestNG、Java 和 Appium 在多个移动设备上并行运行每个测试? - How to run each tests on multiple mobile device in parallel using TestNG, Java and Appium? 使用 TestNG、Appium 和 Selenium 运行并行和顺序测试 - Running parallel and sequential tests using TestNG, Appium and Selenium Appium,Cucumber和Junit如何在多个设备上并行运行测试 - Appium, Cucumber and Junit how to run tests in parallel on multiple devices TestNG + Cucumber并行测试在同一个Chrome实例上运行 - TestNG+Cucumber parallel tests run on same chrome instance 无法使用 TestNG 和 SpringBootTest 并行运行 Cucumber 测试 - Cant run Cucumber tests in parallel using TestNG and SpringBootTest 在Java Android的Cucumber测试中使用Appium调用UI元素导致构建失败并显示大量日志 - Invoking UI Elements with Appium in Cucumber tests in Java Android results in build failed with alot of logs Cucumber 测试未并行运行 - Cucumber Tests not runinng in Parallel 无法在Java上使用@Factory testng批注运行并行测试 - Cannot run parallel tests with @Factory testng annotation on java Selenium WebDriver所有并行测试都在一个窗口中执行-TestNG-Java - Selenium WebDriver All Parallel Tests Execute In A Single Window - TestNG - Java
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM