Questions tagged [parallel-testing]
189 questions
0
votes
3 answers
Selenium Parallel testing with Maven and TestNG
I am trying to run my tests in parallel with Maven by using 2 xml files but it doesn't seem to work.
I have tried the steps/parameters from the Maven documentation: http://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html
Below is…

vladys2019
- 39
- 6
0
votes
0 answers
Are gopter property tests safe for parallel use?
I'm using gopter for property testing and I'm interested in speeding up my test runs by running independent tests in parallel.
I can't find any reference in the documentation as to whether it's safe to call t.Parallel() in my test or not. Though,…

Bevan
- 43,618
- 10
- 81
- 133
0
votes
1 answer
Why do my automated tests fail when run together, but pass individually?
I am new to parallel testing with Java and TestNG.
Here is what the syxtax of my testng.xml file looks...
…
0
votes
0 answers
Parameterized test doesn't work in parallel execution
I try to run my tests with jUnit5 annotation @ParametrizedTest in parallel execution, but it's not work.
public class Simple {
@Inject
private WebSteps WebSteps;
@Inject
private DbSteps dbSteps;
private void func(String string) {
final Phone…

grav
- 1
- 1
0
votes
1 answer
QAF weird behavior for parallel testing
for example:
testing.xml
...
case #1: when I run the following feature file with @smoke tag per say, it will execute parallel testing…
0
votes
0 answers
Running a single spec file separately using parallel_rspec
My requirement is to run a single rspec file at the end of the suite after all the other rspecs are run. Since the spec - specA - is changed when other tests are run in parallel with it.
I have tried --single and --isolate
parallel_rspec -n 4…

Gowthaman Ravindran
- 55
- 5
0
votes
1 answer
unittest - making setUp() the single source of truth for test data and its effect on parallelized testing
As far as I know, using unittest in Python is done something like this -
# test.py
import unittest
import math
from my_math import do_math
class test_do(unittest.TestCase):
def test_first_case(self):
self.assertEqual(math.sqrt(4),…

Anirudh Rowjee
- 38
- 1
- 5
0
votes
2 answers
How can we run test cases on different browser at once in robotframework using Ride
*** Settings ***
Library SeleniumLibrary
*** Variables ***
${url} https://www.youtube.com/
${browser} chrome
*** Test Cases ***
Search
[Template]
Open Browser ${url} ${browser}
Maximize Browser…

Anshita
- 3
- 3
0
votes
0 answers
How to get WebDriver Instance(Object) from Hooks(@Before) for parallel executions of feature file
I want to get WebDriver Instance (Object) from the Hooks Class in @Before Annotation setup() method. And I want to do it in such a way that I am able to run my scenarios in parallel.
I want to run two feature file parallel (login.feature and…

Sejal Patel
- 1
- 2
0
votes
2 answers
How to run your tests in class level parallelism only after one of your class has finished with it's tests
I got stucked in rather unique problem and I'm sure some of you might have faced similar problem at some point.
So I have total 10 Test classes in my testNg suite and I want them to run in parallel. This is easy but the problem is one of my class…

Sumit Bhatt
- 1
- 2
0
votes
1 answer
Selenium - TestNG: Tests are not running in parallel - Using selenium + java + browserstack
I have a maven project with one class. When I run my testng.xml file with 3 parallel browsers, All the 3 browsers open but only the first one runs then after the first finishes the second starts to run.
my xml:
0
votes
1 answer
Is there a way to run parallel cucumber tests providing different users to each process
Problem to solve: We want to be able to run multiple ruby cucumber tests in parallel with different users. Since we have user collision in the app, we are not able to use the same user simultaneously.
We tried looking into parallel_test gem to use…

Geo
- 1
- 1
0
votes
0 answers
org.openqa.selenium.NoSuchSessionException in testng
Facing an error
org.openqa.selenium.NoSuchSessionException: invalid session id
when tried to execute below script in testng and all opened browsers are not closing
public class Sample {
WebDriver driver = null;
@BeforeMethod
public void…
0
votes
1 answer
How to find the currently running/loaded spec file name inside spec helper
I have multiple specs, wish to create separate log files per spec with the spec file name. I need to know which spec file is currently loaded in spec_helper.rb.
I have to create logger object in spec helper
RSpec.configure do |config|
…

Balaji Natarajan
- 1
- 2
0
votes
2 answers
The method scenarios() is undefined for the type AbstractTestNGCucumberTests
I am trying to implement parallel test execution using cucumber 4.0, but observing issues.
As per details on cucumbers website: https://cucumber.io/docs/guides/parallel-execution/#testng
I included following dependency in pom.xml: (apart from other…

vsingh
- 125
- 1
- 2
- 16