Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel test execution not working in v3 #4361

Closed
jkretsch opened this issue Jan 30, 2025 · 2 comments
Closed

Parallel test execution not working in v3 #4361

jkretsch opened this issue Jan 30, 2025 · 2 comments

Comments

@jkretsch
Copy link

jkretsch commented Jan 30, 2025

Description of the bug/issue

I have Nightwatch config like so ...

			test_workers: {
				enabled: true, // run tests in parallel (Jenkins server has 4 cores)
				workers: "auto", // specify number of parallel threads; default is 'auto'
			},

but execution is not working in Nightwatch v3. It runs perfectly in Nightwatch v2.

Steps to reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

Sample test

Command to run

Verbose Output


Nightwatch Configuration

Nightwatch.js Version

3.9.0

Node Version

No response

Browser

No response

Operating System

No response

Additional Information

No response

@jkretsch
Copy link
Author

jkretsch commented Jan 30, 2025

Here's the command line along with the output ...

C:\git\portal-ui-tests>node nightwatch -e firefox_selenium_parallel tests/newyork_tests.js tests/colorado_tests.js --verbose

NODE_ENV: qa
ENVIRONMENT: firefox_selenium_parallel
COMPUTERNAME: PTI-48315
Starting Selenium Server [selenium-server-standalone-3.141.59.jar] on port 5555...
 Launching up to 2 concurrent test worker processes...

 Running:  firefox_selenium_parallel: tests\newyork_tests.js 
 Running:  firefox_selenium_parallel: tests\colorado_tests.js 
 Starting Selenium Server [selenium-server-standalone-3.141.59.jar] on port 5555... 

 Starting Selenium Server [selenium-server-standalone-3.141.59.jar] on port 5555...

That's it. No other output and the tests never run.

@jkretsch
Copy link
Author

jkretsch commented Feb 1, 2025

Issue resolved. I was running on Oracle JDK version 8 and it seems Nightwatch v3 does not play nicely with that version of Java. I replaced my Oracle JDK with the latest Adoptium version and now parallel test execution in Nightwatch v3 is working as expected.

@jkretsch jkretsch closed this as completed Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant