Unable to run tests on multiple environments on Cucumber Nightwatch.js #4027
Replies: 5 comments 1 reply
-
Can you share your nightwatch.conf.js? |
Beta Was this translation helpful? Give feedback.
-
require('dotenv').config();
}, selenium: { globals: { }, output_folder: 'tests_output', // See https://nightwatchjs.org/guide/concepts/page-object-model.html // See https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-commands.html // See https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-assertions.html // See https://nightwatchjs.org/guide/extending-nightwatch/adding-plugins.html // See https://nightwatchjs.org/guide/concepts/test-globals.html webdriver: {}, test_workers: { test_settings: {
}; |
Beta Was this translation helpful? Give feedback.
-
I had some suggestionsThis is the first issue I felttest_runner is not a browser specific thing and also there are two different test_runners in your nightwatch.config.js. One is in default environment and the other in firefox environment. Please move it out of test_settings, and paste above test_settings. Once try this.Parallel Execution: You're trying to run tests in parallel with --parallel 2. Try running the tests without parallel execution to see if that's causing the issue. If this worked, that is the issue with nightwatch, We will raise an issue. feature_pathAfter moving, test_runner out of test_settings not solved your problem, check whether feature_path contains files correctly. We might be sometimes dumbHave you installed this package?
DisclaimerI am also new to nightwatch. If these solutions not helped you. Please give reply. We will solve this issue together. If the problem is with core we will raise an issue. ReferenceFor reference please read the documentation of integrating Cucumber JS. Click Here!! For further debugging assistance, please provide formatted configuration and package.json files. In comments it's kind of hard |
Beta Was this translation helpful? Give feedback.
-
Hi, The issue is resolved in Nightwatch version- 3.5.0 Thanks & Regards, |
Beta Was this translation helpful? Give feedback.
-
The issue is resolved with the latest release. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have been trying to run cucumber tests on multiple environments since many days, but I could not find a solution.
I am getting error if I try to run with tags and also with step definition file. Nothing is working.
Could anyone please help me with the solution?
Thanks,
Venkata Pravinya
Beta Was this translation helpful? Give feedback.
All reactions