Open shansb-dev opened 5 years ago
I tried to reach out to you yesterday on slack, anyway, I wanted to know if this persists or after the first time you use it, it runs smoothly.
Hello corevo thank you for your reply. Yes it still persists on each execution. When using the --debug option it can be seen that the selenium-side-runner waits or maybe does sth without logging debug messages between the vulnerability check and the first jest debugging messages.
Okay this seems to be an issue with the last few versions 3.7.x, selenium-side-runner 3.6.1 works as expected.
Thank you for the information, if you could try narrowing it further to the specific version that broke it, that would be very helpful, I'm assuming 3.7.1 regressed.
I tried each of the last few versions. 3.7.3 and 3.7.1 both started immediately like they should, but these versions threw an exception in jest-junit (-> output junit-xml). Therefore I will stick to 3.6.1 for now.
Error: Could not resolve a module for a custom reporter.
Module name: jest-junit
at options.reporters.reporters.map.reporterConfig (/usr/local/lib/node_modules/selenium-side-runner/node_modules/jest-config/build/normalize.js:464:15)
at Array.map (<anonymous>)
at normalizeReporters (/usr/local/lib/node_modules/selenium-side-runner/node_modules/jest-config/build/normalize.js:447:33)
at normalize (/usr/local/lib/node_modules/selenium-side-runner/node_modules/jest-config/build/normalize.js:534:5)
at readConfig (/usr/local/lib/node_modules/selenium-side-runner/node_modules/jest-config/build/index.js:163:46)
at readConfigs (/usr/local/lib/node_modules/selenium-side-runner/node_modules/jest-config/build/index.js:372:26)
at /usr/local/lib/node_modules/selenium-side-runner/node_modules/@jest/core/build/cli/index.js:155:58
at Generator.next (<anonymous>)
at asyncGeneratorStep (/usr/local/lib/node_modules/selenium-side-runner/node_modules/@jest/core/build/cli/index.js:108:24)
at _next (/usr/local/lib/node_modules/selenium-side-runner/node_modules/@jest/core/build/cli/index.js:128:9)
Unable to reproduce locally. Will need to look into it further.
@shansb-dev Does this issue happen in the version 3.12.1
of the runner?
The problem still exists, no matter if --debug is applied or not. Which nodejs version is recommended?
My environment: node --version v8.11.3 selenium-side-runner -V 3.16.0 jest --version 25.1.0
Updating to nodejs 12 solved the problem.
🐛 Bug Report
After install of selenium-side-runner I am experiencing a huge delay between the cmd execution and the tests execution. When using the --debug flag it takes ~5 minutest until the jest debug messages appear and the selenium test are finally executed. Does anybody have an idea why?
To Reproduce
selenium-side-runner --debug -c "browserName=chrome chromeOptions.args=[no-sandbox, headless]" test.side
(It probably does not make any difference which capabilities are set but my machine is only able to run it headless.)
Expected behavior
Test should start more or less immediately.
Project file reproducing this issue (highly encouraged)
Any .side file will do, e.g.
{ "id": "12d70a4d-f0e6-40dd-9cd3-293f0c255ba9", "version": "2.0", "name": "test", "url": "https://www.google.com", "tests": [{ "id": "a2b75cbd-7ec5-43af-9e98-528cfd9d2d9a", "name": "test", "commands": [{ "id": "6292a107-1de3-4119-a166-262aa26939da", "comment": "", "command": "open", "target": "/", "targets": [], "value": "" }] }], "suites": [{ "id": "f685240e-7d02-4db1-a6f0-6195a22b2f45", "name": "Test", "persistSession": false, "parallel": false, "timeout": 300, "tests": ["a2b75cbd-7ec5-43af-9e98-528cfd9d2d9a"] }], "urls": ["https://www.google.com/"], "plugins": [] }
Environment
Distributor ID: Ubuntu Description: Ubuntu 16.04.6 LTS Release: 16.04 Codename: xenial Selenium IDE 3.7.4 NODE v10.15.3 NPM 6.4.1 Google Chrome 74.0.3729.157 selenium-side-runner 3.7.4 ChromeDriver 74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29})