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_process_delay test setting not working with Nightwatchjs upgraded version 3.2.1 #3947

Closed
aakanksha88 opened this issue Nov 1, 2023 · 9 comments · Fixed by #4007
Closed
Assignees
Labels

Comments

@aakanksha88
Copy link

aakanksha88 commented Nov 1, 2023

Description of the bug/issue

We have been using the test setting 'parallel_process_delay' in our nightwatchjs automation framework with version 2.6.19 and it has been working fine.

When we upgraded the nightwatch js version to 3.2.1, we found that the test setting 'parallel_process_delay' is not working with parallel execution.
All the test suite execution starts at once without any delay irrespective of how many milliseconds we pass as a value for this test setting in nightwatch.json. We tried with 10000 and 20000 ms but none helped.

Could you please also provide some inputs on how we can achieve parallel process delay, it will be of great help. We need to access our application which has some restrictions on how many requests we can send once due to which we need to introduce some delay between the requests.

Our test automation framework has around 450 test suites and 5000+ test cases automated which we execute on Selenium Grid daily basis using parallel execution.
This is a blocker for us as due to the restriction mentioned above, we need to introduce some delay in the requests we are sending and currently we are not able to introduce any delay which is leading to test suite failures on large scale.

Thanks in advance.

Steps to reproduce

Add test setting in nightwatch.json
"parallel_process_delay" : 10000

Nightwatch Configuration

In nightwatch.json
"parallel_process_delay" : 10000

Nightwatch.js Version

3.2.1

Node Version

16

@aakanksha88
Copy link
Author

aakanksha88 commented Nov 13, 2023

Hi @gravityvi As mentioned in reported issue we need this test setting for our test suite execution, could see this issue is categorized as bug, could you please help us know by when this will be fixed ?
Thanks in advance

@marian-r
Copy link
Contributor

Ran into the same issue. @gravityvi have you had a chance to look into this?

@marian-r
Copy link
Contributor

@aakanksha88 I found a workaround by setting use_child_process: true which forces a different implementation of parallelism. Hope this helps while this gets fixed for the worker threads implementation.

@cnavy2
Copy link

cnavy2 commented Nov 21, 2023

@marian-r In the above workaround by setting use_child_process: true parallel execution looks similar to what we have in Nightwtach 2.6.19 . So, I am not sure if we can proceed with Nightwatch Upgrade to 3 with this settings.

@gravityvi Could you please help us by letting us know by when this will be fixed?

Thanks in Advance.

@gravityvi
Copy link
Member

@cnavy2 @aakanksha88 I will try to allot some time to this. I have been a little busy with my day job. Most probably I will take this up over the weekend 😄

@gravityvi gravityvi self-assigned this Dec 8, 2023
@cnavy2
Copy link

cnavy2 commented Jan 11, 2024

Hi @gravityvi, Could you please prioritize this bug and provide fix for this. It was a blocker for us to upgrade to Nightwtach.js 3.
Thanks In Advance.

@gravityvi
Copy link
Member

Hey @cnavy2 @marian-r @aakanksha88 👋🏻 , I have a raised a PR to fix this issue.

@marian-r
Copy link
Contributor

Awesome, thank you very much 👍

@cnavy2
Copy link

cnavy2 commented Jan 27, 2024

Big Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants