193 questions
0
votes
0
answers
30
views
Pabot.PabotLib | tests open different pages when running in parallel
I am using Robot Framework with Python and the Browser library.
I test a web application. For each test, I create a new browser session, either in the test setup or during the test itself:
Open ...
-2
votes
1
answer
212
views
Is it possible to run tests in parallel, but first on one project, then on second project?
My goal is to run tests using 2 projects. I can't provide independence between tests on both projects at the same time, so I need to run tests on one project, then on the 2nd.
I tried to make npm ...
1
vote
1
answer
333
views
How to retrieve the current number of parallel workers?
In a playwright + typescript project, we use the following config line:
workers: process.env.CI ? 1 : undefined,
The undefined value allows local users to execute faster with X parallel workers on ...
0
votes
0
answers
69
views
Choosing the next available device for parallel testing with Appium and UIAutomator2
i am currently trying to enhance our Testautomatisation infrastructure by parallelizing our tests. I know how to do that but I am running into the question of device management. Imagine I have 5 ...
0
votes
1
answer
101
views
cucumber hook execution order in parallel is not working
I have written cucumber tests with selenium framework. When my test ran in sequential they all pass, but when I run in parallel they fail because the same user is used for all the tests and the test ...
2
votes
0
answers
158
views
Configure JUnit to run on 5 threads, each using a different datasource
TL;DR How to configure my JUnit test suite to run on 5 threads, each using a different datasource?
I'm trying to speed up my SpringBoot/JUnit 5 integration tests, which currently take over 40 minutes. ...
0
votes
0
answers
137
views
Only run some cucumber tests in parallel and run the rest sequentially using gradle tasks
I have some cucumber tests that can be run in in parallel, and some that can't. I want a way to run them all at once. The only way I can think of doing it is to run the parallel tests first and then ...
1
vote
0
answers
228
views
How to run data driven tests parallelly in robot framework?
I have N number of test cases in my csv file and i have added it as a test template as shown below
Test Template My test template
*** Test Cases ***
sample testcase ${field1} ${field2} ...
1
vote
0
answers
297
views
How to run multiple karate feature files in parallel?
I have multiple feature file each containing multiple scenarios, I want to run scenarios in sequential order and features in parallel,
so i tried using
package com.api.automation;
import org.junit....
0
votes
1
answer
145
views
How to use threadlocal for string variables and store different run time values durinng parallel class execution? I am facing multiple issues
ISSUE1: I have one variable 'name' which will have some runtime value and i am using this value in classes accross packages and also i can't return this value in method because i am already returning ...
1
vote
0
answers
610
views
Spring Application context with parallel junit tests
I tried Junit 5.3 parallel execution for Spring Boot (2.7.12) integration tests.
junit.jupiter.execution.parallel.enabled = true
junit.jupiter.execution.parallel.mode.default = same_thread
junit....
0
votes
2
answers
692
views
Laravel parallel test not working, but in normal test worked perfectly
I am wondering how to change the database in Laravel parallel test. I changed the database as below but it didn't work.
ParallelTesting::setUpTestCase(function (int $token, TestCase $testCase) {
$...
-1
votes
2
answers
5k
views
TestNG: How to run classes in serial and Tests in Parallel?
I have a testng.xml like below,
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="MyTestSuite" parallel="tests" thread-count="2"&...
0
votes
0
answers
204
views
Scala sbt tests with Junit not running in Parallel
I've some integration tests written in Scala sbt which uses Junit5. I want to run the tests within the suite in parallel, however unable to do so.
This is how my code looks like:
trait ...
0
votes
0
answers
58
views
Parallet destributed testing using xcuitest in ios
I am trying to develop new XCUITest project and my requirement is to do parallel distributed testing. Such that i have 4 iPhones and 6 classes. Each class should run once and if it is executed then it ...
2
votes
0
answers
896
views
How does fixed parallelism strategy works in Junit5?
dynamic
Computes the desired parallelism based on the number of available processors/cores multiplied by the junit.jupiter.execution.parallel.config.dynamic.factor configuration parameter (defaults to ...
1
vote
1
answer
923
views
How to prevent Rails parallel tests and Sidekiq from calling Redis
I have a Rails application that is using Sidekiq for asynchronous jobs.
I setup parallel testing to speed up my testing pipeline. This is working great but I have one major problem: Redis is ...
0
votes
1
answer
398
views
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
@...
0
votes
1
answer
336
views
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. ...
0
votes
0
answers
553
views
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 ...
0
votes
1
answer
1k
views
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....
1
vote
1
answer
188
views
Android Wear and Android app parallel ui testing
I have both Android App which act as receiver for heart rate from Android Watch and app for Wear OS, which sent heart rate to the app.
For test without my hardware, i created two emulators and paired ...
2
votes
1
answer
4k
views
How to run Cypress tests in parallel using a single machine on Jenkins?
So I have around 45 spec files that I want to execute in parallel on a single machine on Jenkins.
If I create a freestyle job on Jenkins and run this command "npx cypress run --record --key abc --...
1
vote
0
answers
1k
views
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, ...
1
vote
1
answer
6k
views
tun unit tests in parallel and other test sequentially in the same run spring boot kotlin
i am having an issue to understand how can i run all the unit tests in my boot spring application(kotlin) in parallel while the springBootTests and the dataJpaTests will run one after the other(...
1
vote
1
answer
1k
views
Is there a simple way to execute cypress tests parallelly without using dashboard? [closed]
I'm working on a cypress test execution on Github actions and I need to know whether there is a way to execute the tests in parallel mode without using the cypress dashboard (Open source solution)
...
0
votes
0
answers
489
views
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 ...
0
votes
1
answer
1k
views
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::...
0
votes
0
answers
307
views
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 ...
3
votes
1
answer
3k
views
How can we run Cypress tests in parallel on a single machine?
I need to run my tests on a single machine. The project has more than 50 tests (spec files).
Is it possible to achieve this via Jenkins configuration?
2
votes
0
answers
261
views
File-operation related test fails when running tests in parallel with Rails 6 and minitest
I'm trying to enable parallelization of tests in my rails app, but for some reason one of the test breaks as soon as I enable it:
ERROR["test_convert_to_letter", Minitest::Result, 1....
0
votes
1
answer
1k
views
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 ...
0
votes
3
answers
1k
views
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/...
0
votes
0
answers
98
views
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 ...
7
votes
2
answers
8k
views
Parallel testing in rails 6 and rspec
I am trying to make parallel tests using rspec and rails 6.
According to their documentation, it is just required to add PARALLEL_WORKERS=15 where 15 is the number of workers. However, this works for ...
1
vote
0
answers
323
views
How to automatically create sqlite test db when executing parallel tests?
When executing tests separately I have added this functions to make sure sqlite db would be created if it's not there:
abstract class TestCase extends BaseTestCase
{
use CreatesApplication, ...
2
votes
0
answers
418
views
Context Injection in Specflow failing in c# when parallel test are executed in xunit, but works in sequential run
I created a xunit project and added specflow with Gherkin and selenium web drivers to the project. I've following StepDefinition file,
[Binding]
public class MyPageStepDefinition
{
private ...
0
votes
1
answer
527
views
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...
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name=&...
1
vote
0
answers
591
views
Running two Test cases(method) in two same browsers using Parallel testing in TestNG Selenium
I am trying to execute parallel testing in tow test cases(methods) in two same browsers.
But when I run, it opens two same browsers but the execution is performed in one browser, means two test ...
1
vote
0
answers
158
views
Running java selenium project in parallel
I am new to parallel testing (I am using java selenium with TestNG as my project framework).
when I launch parallel testing using my pom.xml file I can see that browsers opened for me but the logic is ...
1
vote
0
answers
180
views
Trying to run my automation project in parallel using java
I built an automation framewoek using maven, java, testng, selenium.
As for now I am running my tests sequential and I would like to run them in parallel, however each time I try to run them in ...
0
votes
0
answers
366
views
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;
...
0
votes
1
answer
219
views
QAF weird behavior for parallel testing
for example:
testing.xml
<suite name="name" parallel="methods" thread-count="5">
<test>
...
</test>
</suite>
case #1: when I run the ...
0
votes
0
answers
1k
views
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 -...
1
vote
1
answer
1k
views
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 ...
1
vote
0
answers
584
views
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
<build>
<plugins>
<plugin>
<...
1
vote
1
answer
3k
views
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 ...
3
votes
2
answers
2k
views
SpinWait.SpinUntil taking MUCH longer than timeout to exit while waiting for Selnium element to exist
I have a relatively simple method to wait until an element exists and is displayed. The method handles the situation where more than a single element is returned for the given By (usually we only ...
0
votes
1
answer
165
views
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(...
1
vote
1
answer
458
views
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<WebDriver> ...