Questions tagged [parallel-testing]

189 questions
0
votes
1 answer

How to intialise a separate instance of the @Autowired object for each test carried out in parallel using SpringBootTest and Junit-Jupiter

I am using SpringBootTest 3.0.5, Java 17, Selenium 4.8, Junit-Jupiter 5.9.2 and trying to run tests in parallel. My Config class is: @Component public class WebDriverLibrary { @Bean @ConditionalOnProperty(name = "default.browser", havingValue =…
0
votes
0 answers

Test not running in parallel, help required

we are starting our tests on jenkins every time a release is done. However, we would like to have tests run in parallel. How could we make this happen? Our tests are written in Cucumber+Selenium(Java)+TestNG Here is the stacktrace from the maven…
0
votes
1 answer

All available processors of selenium node machines are not getting used in Selenium Grid

I am implementing parallel testing system using Selenium Grid architecture. I added couple of nodes where each of them have 4 available processors with a hub machine, which has 2 available processors. But after running the test suite, only 2 test…
0
votes
0 answers

TestNG Parallel Tests always omits 1 test for each method provided by DataProviderClass

My TestClass: @Test(dataProvider = "data-provider", dataProviderClass = DataProviderClass.class) public void testHappyCase(String a, String b, String c, String d, String e) { TEST CODE HERE } My DataProviderClass: @DataProvider(name =…
0
votes
0 answers

How to run multiple cypress test cases in parallel in circle ci

I am trying to run 60 Cypress test cases in parallel in circle Ci but it's running all the 60 test cases on all the 4 machines rather than dividing the test cases and running them in parallel in all the machines to reduce the time say 20 test cases…
0
votes
0 answers

Unable to locate elements in parallel execution of selenium scripts

Currently 5 browsers are launched with url , but after that scripts are failing to identify element and perform action . I am trying with data-provider-thread-count="2" ,currently browsers are getting launched but its not able to identify elements…
0
votes
0 answers

How to take a screenshot when a test is failed in JUnit5

I am trying to write functionality that will take a screenshot of my browser in case a test fails. What I care about: take a screenshot and add it to the Allure2 report. tests must be run in parallel. information about Tear down in report I tried…
FlappyCat
  • 48
  • 6
0
votes
0 answers

Trying to run my cypress test in parallel using Jenkins pipeline

node{ parallel firstBranch: { stage('One'){ cypress run --spec "cypress/e2e/examples/actions.cy.js" }}, stage('Two'){ cypress run --spec "cypress/e2e/examples/addDebts.cy.js" }}, failFast: true } I am trying to run my…
0
votes
0 answers

How to build a job on Jenkins on more then one server for parallel testing

I have configured Jenkins with cypress, opened it up on my local machine using localhost:8080.And I have also integrated my Jenkins with my GitHub. The problem I am facing I want to run my testcases in parallel. I have added --parallel flag at the…
0
votes
0 answers

Variable value changed on parallel test with JUnit5

I'm trying to parallelize tests using JUnit5 and WireMockServer for stubbing. However, it seems like the variable got mixed up for different threads. Take the example of these two classes that inherit…
Justin Xu
  • 13
  • 3
0
votes
0 answers

Running parallel tests in Azure Devops

I have selenium tests developed on java. Since devs are using Azure Devops, we are asked to use it for the test pipelines. We have configured one project on one pipeline. Classic pipelines are used, however I am happy to use Yaml if there is any…
0
votes
0 answers

Running parallel_tests for Ruby-Capybara not working

Running a simple login automation test using Capybara. No database is used. I am trying to use parallel_test gem to invoke multiple test sessions at the same time (chrome browser) using the following command parallel_rspec -n 2 two browsers are…
0
votes
1 answer

Rails: How to prepare test-DBs for parallelized tests with Minitest

I am working on the tests for an app and just now got beyond 50 tests, which means the parallel testing kicked in. With it I currently get error messages telling me ActiveRecord::ConnectionNotEstablished: Access denied for user 'user'@'localhost' to…
SEJU
  • 995
  • 1
  • 9
  • 28
0
votes
0 answers

how to stop the auto refresh if there's any change on web page?

How to run the below code parallely for multiple browsers. Secondly, timer.cancel not working and is there a way we could stop the timer command if there is any change in the web page. class Calender { private int count = 0; …
Karan2404
  • 1
  • 1
0
votes
1 answer

Databases not created when running code coverage with paratest

My app is a Laravel app and I am wanting to leverage paratest to generate my code coverage reports. My tests run fine in parallel using: php artisan test --parallel I couldn't see a way to use the artisan command to run code coverage so am using…
Zakalwe
  • 1,444
  • 3
  • 14
  • 25