Questions tagged [parallel-testing]

189 questions
1
vote
1 answer

Selenium, TestNg parallel run not working as expected

I have 3 test classes consisting of multiple test methods that I want to run in parallel. I'm using ThreadLocal for isolating webdriver instances per thread. When I run the tests in sequential manner everything looks fine but problem arises when I…
Nilamber Singh
  • 804
  • 1
  • 14
  • 33
1
vote
0 answers

Couldn't execute test case parallel in serenity bdd

When I try to execute test case as parallely inside serenity bdd projects with mvn clean test commands org.apache.maven.plugins
1
vote
1 answer

Where does self hosted github runner executes the code? Is having multiple runners on same machine a good practice?

Recently I have tried running the build test on my self hosted GitHub runners. One thing I know that it runs in its isolated virtual environment and destroys the environment at the end of the execution(Correct me if I am wrong). Now if we want to…
1
vote
1 answer

How to create an instance of a static class so it can be called from a separate class?

apologies as this is a really basic problem, but Im really struggling with the basics of this concept. I have created a public static class to set a browser private static ThreadLocal driver = new ThreadLocal<>(); public static void…
1
vote
1 answer

Run tests in parallel using VStest not working

I am trying to implement parallel testing using VSTest Task as mentioned in the below article. https://learn.microsoft.com/en-us/azure/devops/pipelines/test/parallel-testing-vstest?view=azure-devops Brief description of what I am doing: I have two…
1
vote
1 answer

Not able to parallel test of two cucumber feature file

i'm new in cucumber design and i trying to parallel test two feature file(login.feature, registration.feature, both are inside src/test/java/features), but not able run both parallel. can anyone help me out? Here is my pom.xml
1
vote
0 answers

Running a pytest fixture only once when running tests in parallel

I'm having some real difficulty in running a pytest fixture within a conftest file only once when the tests are run in parallel via a shell script. Contents of the shell script are below: #!/usr/bin/env bash pytest -k 'mobile' --os iphone my_tests/…
1
vote
1 answer

How do you run xcuitests in parallel using azure dev Ops?

I'd like to execute my xcuitest suite on azure dev ops in parallel using xcode's out of the box capabilities. Locally, it's as simple as checking the box to enable parallel testing on my test target. Parallel executions toggle Locally, xcode opens…
bcmcadam
  • 37
  • 1
  • 7
1
vote
1 answer

@beforeclass methods get executed in same thread if we put parallel="tests" in the suite xml

I have a test suite where I am using parallelism by using annotation like : test name="All Regular Tests" parallel="tests" thread-count="30" Now, let's say we have multiple @test annotation in one class. and it has @beforeclass annotation method as…
gaurav kumar
  • 129
  • 2
  • 14
1
vote
2 answers

Junit parallel tests logs is messed up with each other

I have some test classes and methods which running parallel. I'm using log4j2 for logging, however the log outputs to the console is messed up with each other. import org.apache.logging.log4j.LogManager; import…
natanbig
  • 79
  • 1
  • 1
  • 5
1
vote
0 answers

Will gradle run Tests annotated with @NotThreadSafe run as a single test process at a time

We have currently set up our application set up with Junit 4 and Maven with the surefire plugin. Now we are migrating to gradle and we want to run the test case in parallel with the exception of the ones annotated with @NotThreadSafe. Given the long…
sudo
  • 747
  • 6
  • 19
1
vote
1 answer

How not to lose parallel testing with tfs build and keep build agents work

I'm setting up a TFS testing build and want to support full parallel testing. Only some of our tests run in parallel and therefore after they finished running on the build agent - the build agent do not getting new tests to test. Therefore, a build…
1
vote
1 answer

Specifying number of test devices when doing parallel testing using fastlane scan

I haven't been able to get more than 2 concurrent simulator test devices when testing iOS apps using "fastlane scan". Doing this "manually" using only xcodebuild works, something like this. This would fire up at most 4 devices: xcodebuild -workspace…
Jonny
  • 15,955
  • 18
  • 111
  • 232
1
vote
0 answers

Extent report generation in Selenium-Cucumber parallel testing

Iam using Selenium-Cucumber maven framework with Junit. Now when I run the test in parallel, a simple html report is generating. How can we generate each individual extent reports separately in each run without over writing? Below is the plugin…
Milu
  • 135
  • 1
  • 3
  • 13
1
vote
1 answer

How to close down multiple browser windows after running tests in Parallel using Selenium WebDriver and NUnit C#

I am currently using the following code to shutdown my browsers after each test: [TearDown] public void StopBrowser() { if (Driver == null) return; Driver.Quit(); } This works fine when…
user3158314
  • 107
  • 15