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

[Need support]: Execute case error #3

Open
bdzxhhh opened this issue Nov 22, 2022 · 3 comments
Open

[Need support]: Execute case error #3

bdzxhhh opened this issue Nov 22, 2022 · 3 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@bdzxhhh
Copy link

bdzxhhh commented Nov 22, 2022

Describe the problem

I clone the project https://github.com/healenium/healenium-example-javascrip. When I execute the command npm test an error is reported.

Healenium Proxy version

1.1.0

Healenium Backend version

3.2.4

Selenium version

No response

Logs appeared during using Healenium

npm test

> js_example@1.0.0 test
> jasmine

Started
FFFFFFFFFFFFFFFFFFFFFFFFFFF

Failures:
1) Tests healing locators using different CSS selectors CSS Attribute - Healing locators _1
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at processTicksAndRejections (node:internal/process/task_queues:96:5)

2) Tests healing locators using different CSS selectors CSS Id - Healing locators _2
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at processTicksAndRejections (node:internal/process/task_queues:96:5)

3) Tests healing locators using different CSS selectors CSS Element - Healing locators _3
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at processTicksAndRejections (node:internal/process/task_queues:96:5)
Suite error: Tests healing locators using different CSS selectors
  Message:
    Error: ECONNRESET socket hang up
  Stack:
        at ClientRequest.<anonymous> (/Users/lisa/github/healenium-example-javascript/node_modules/selenium-webdriver/http/index.js:294:15)
        at ClientRequest.emit (node:events:527:28)
        at Socket.socketOnEnd (node:_http_client:478:9)
        at Socket.emit (node:events:539:35)
        at endReadableNT (node:internal/streams/readable:1345:12)
        at processTicksAndRejections (node:internal/process/task_queues:83:21)
  Message:
    TypeError: Cannot read properties of undefined (reading 'quit')
  Stack:
        at UserContext.<anonymous> (file:///Users/lisa/github/healenium-example-javascript/tests/com/epam/healenium/jasmine/css_test.mjs:28:22)
        at <Jasmine>
        at processTicksAndRejections (node:internal/process/task_queues:96:5)

Additional context

No response

@bdzxhhh bdzxhhh added the help wanted Extra attention is needed label Nov 22, 2022
@rohit-vrrr
Copy link

Hi, I'm facing this similar issue when I run npm test.

Logs:

> js_example@1.0.0 test
> jasmine

Randomized with seed 36826
Started
FFFFFFFFFFFFFFFFFFFFFFFFFFF

Failures:
1) Tests healing locators using different types of XPath XPath with special characters - Healing Locators _1        
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

2) Tests healing locators using different types of XPath XPath Following - Healing Locators _2
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

3) Tests healing locators using different types of XPath XPath Contains - Healing Locators _3
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

4) Tests healing locators using different types of XPath XPath Following-Sibling - Healing Locators _4
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

5) Tests healing locators using different types of XPath XPath Ancestor:: - Healing Locators _5
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

6) Tests healing locators using different types of XPath XPath OR - Healing Locators _6
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

7) Tests healing locators using different types of XPath XPath And - Healing Locators _7
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

8) Tests healing locators using different types of XPath XPath Starts-with - Healing Locators _8
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

9) Tests healing locators using different types of XPath XPath Precending:: - Healing Locators _9
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

10) Tests healing locators using different types of XPath XPath Descendant:: - Healing Locators _10
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

11) Tests healing locators using different types of XPath XPath Hover - Healing Locators _11
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

12) Tests healing locators using different types of XPath XPath Not Contains - Healing Locators _12
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

13) Tests healing locators using different semantic locators Find element by Id - Healing locators _1
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

14) Tests healing locators using different semantic locators Find element by ClassName - Healing locators _2
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

15) Tests healing locators using different semantic locators Find element by LinkText - Healing locators _3
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

16) Tests healing locators using different semantic locators Find element by Name - Healing locators _4
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

17) Tests healing locators using different semantic locators Find element by PartialLinkText - Healing locators _5
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

18) Tests healing locators using different semantic locators Find element by TagName - Healing locators _6
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

19) Tests healing locators using different CSS selectors CSS Attribute - Healing locators _1
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

20) Tests healing locators using different CSS selectors CSS Id - Healing locators _2
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

21) Tests healing locators using different CSS selectors CSS Element - Healing locators _3
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

22) Tests healing locators using different CSS selectors CSS Disabled - Healing locators _4
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

23) Tests healing locators using different CSS selectors CSS Enabled - Healing locators _5
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

24) Tests healing locators using different CSS selectors CSS Checked - Healing locators _6
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

25) Tests healing locators using different CSS selectors CSS Hover - Healing locators _7
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

26) Tests healing locators using different CSS selectors CSS ClassName - Healing locators _8
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

27) Tests healing locators using different CSS selectors CSS Id Special Character - Healing locators _9
  Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
  Stack:
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Suite error: Tests healing locators using different types of XPath
  Message:
    WebDriverError: null
  Stack:
    error properties: Object({ remoteStacktrace: '' })
        at Object.throwDecodedError (C:\CODE\POC\healenium-example-javascript\node_modules\selenium-webdriver\lib\error.js:539:15)
        at parseHttpResponse (C:\CODE\POC\healenium-example-javascript\node_modules\selenium-webdriver\lib\http.js:647:13)
        at Executor.execute (C:\CODE\POC\healenium-example-javascript\node_modules\selenium-webdriver\lib\http.js:573:28)
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  Message:
    TypeError: Cannot read properties of undefined (reading 'quit')
  Stack:
        at UserContext.<anonymous> (file:///C:/CODE/POC/healenium-example-javascript/tests/com/epam/healenium/jasmine/xpath_test.mjs:24:22)
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Suite error: Tests healing locators using different semantic locators
  Message:
    WebDriverError: null
  Stack:
    error properties: Object({ remoteStacktrace: '' })
        at Object.throwDecodedError (C:\CODE\POC\healenium-example-javascript\node_modules\selenium-webdriver\lib\error.js:539:15)
        at parseHttpResponse (C:\CODE\POC\healenium-example-javascript\node_modules\selenium-webdriver\lib\http.js:647:13)
        at Executor.execute (C:\CODE\POC\healenium-example-javascript\node_modules\selenium-webdriver\lib\http.js:573:28)
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  Message:
    TypeError: Cannot read properties of undefined (reading 'quit')
  Stack:
        at UserContext.<anonymous> (file:///C:/CODE/POC/healenium-example-javascript/tests/com/epam/healenium/jasmine/semantic-locator_test.mjs:24:22)
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Suite error: Tests healing locators using different CSS selectors
  Message:
    WebDriverError: null
  Stack:
    error properties: Object({ remoteStacktrace: '' })
        at Object.throwDecodedError (C:\CODE\POC\healenium-example-javascript\node_modules\selenium-webdriver\lib\error.js:539:15)
        at parseHttpResponse (C:\CODE\POC\healenium-example-javascript\node_modules\selenium-webdriver\lib\http.js:647:13)
        at Executor.execute (C:\CODE\POC\healenium-example-javascript\node_modules\selenium-webdriver\lib\http.js:573:28)
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  Message:
    TypeError: Cannot read properties of undefined (reading 'quit')
  Stack:
        at UserContext.<anonymous> (file:///C:/CODE/POC/healenium-example-javascript/tests/com/epam/healenium/jasmine/css_test.mjs:28:22)
        at <Jasmine>
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

27 specs, 30 failures
Finished in 0.065 seconds
Randomized with seed 36826 (jasmine --random=true --seed=36826)

Any help with this would be appreciated.

@Alex-Reif
Copy link
Contributor

Hi @bdzxhhh , @rohit-vrrr , what version of selenium do you use ?

@orb-277
Copy link

orb-277 commented Jul 29, 2023

I am also facing a similar problem.
npm test

js_example@1.0.0 test
jasmine

Randomized with seed 31654
Started
FFFFFFFFFFFFFFFFFFFFFFFFFFFF

Failures:

  1. Tests healing locators using different semantic locators Find element by Id - Healing locators _1
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  2. Tests healing locators using different semantic locators Find element by ClassName - Healing locators _2
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  3. Tests healing locators using different semantic locators Find element by LinkText - Healing locators _3
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  4. Tests healing locators using different semantic locators Find element by Name - Healing locators _4
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  5. Tests healing locators using different semantic locators Find element by PartialLinkText - Healing locators _5
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  6. Tests healing locators using different semantic locators Find element by TagName - Healing locators _6
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  7. Tests healing locators using different types of XPath XPath with special characters - Healing Locators _1
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  8. Tests healing locators using different types of XPath XPath Following - Healing Locators _2
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  9. Tests healing locators using different types of XPath XPath Contains - Healing Locators _3
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  10. Tests healing locators using different types of XPath XPath Following-Sibling - Healing Locators _4
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  11. Tests healing locators using different types of XPath XPath Ancestor:: - Healing Locators _5
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  12. Tests healing locators using different types of XPath XPath OR - Healing Locators _6
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  13. Tests healing locators using different types of XPath XPath And - Healing Locators _7
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  14. Tests healing locators using different types of XPath XPath Starts-with - Healing Locators _8
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  15. Tests healing locators using different types of XPath XPath Precending:: - Healing Locators _9
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  16. Tests healing locators using different types of XPath XPath Descendant:: - Healing Locators _10
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  17. Tests healing locators using different types of XPath XPath Hover - Healing Locators _11
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  18. Tests healing locators using different types of XPath XPath Not Contains - Healing Locators _12
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  19. Wait Tests - Conditional wait for simple locator Conditional wait for simple locator
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  20. Tests healing locators using different CSS selectors CSS Attribute - Healing locators _1
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  21. Tests healing locators using different CSS selectors CSS Id - Healing locators _2
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  22. Tests healing locators using different CSS selectors CSS Element - Healing locators _3
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  23. Tests healing locators using different CSS selectors CSS Disabled - Healing locators _4
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  24. Tests healing locators using different CSS selectors CSS Enabled - Healing locators _5
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  25. Tests healing locators using different CSS selectors CSS Checked - Healing locators _6
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  26. Tests healing locators using different CSS selectors CSS Hover - Healing locators _7
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  27. Tests healing locators using different CSS selectors CSS ClassName - Healing locators _8
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

  28. Tests healing locators using different CSS selectors CSS Id Special Character - Healing locators _9
    Message:
    Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it.
    Stack:
    at

Suite error: Tests healing locators using different semantic locators
Message:
Error: Timeout - Async function did not complete within 5000ms (set by jasmine.DEFAULT_TIMEOUT_INTERVAL)
Stack:
at
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
Message:
TypeError: Cannot read properties of undefined (reading 'quit')
Stack:
at UserContext. (file:///home/omkar/healenium-example-javascript/tests/com/epam/healenium/jasmine/semantic-locator_test.mjs:24:22)
at
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)

Suite error: Tests healing locators using different types of XPath
Message:
Error: Timeout - Async function did not complete within 5000ms (set by jasmine.DEFAULT_TIMEOUT_INTERVAL)
Stack:
at
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
Message:
TypeError: Cannot read properties of undefined (reading 'quit')
Stack:
at UserContext. (file:///home/omkar/healenium-example-javascript/tests/com/epam/healenium/jasmine/xpath_test.mjs:24:22)
at
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)

Suite error: Wait Tests - Conditional wait for simple locator
Message:
WebDriverError: java.net.ConnectException: connection timed out: hlm-selenoid/172.18.0.4:4444
Stack:
error properties: Object({ remoteStacktrace: '' })
at Object.throwDecodedError (/home/omkar/healenium-example-javascript/node_modules/selenium-webdriver/lib/error.js:524:15)
at parseHttpResponse (/home/omkar/healenium-example-javascript/node_modules/selenium-webdriver/lib/http.js:587:13)
at Executor.execute (/home/omkar/healenium-example-javascript/node_modules/selenium-webdriver/lib/http.js:515:28)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Message:
Error: Timeout - Async function did not complete within 5000ms (set by jasmine.DEFAULT_TIMEOUT_INTERVAL)
Stack:
at
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
Message:
TypeError: Cannot read properties of undefined (reading 'quit')
Stack:
at UserContext. (file:///home/omkar/healenium-example-javascript/tests/com/epam/healenium/jasmine/wait_test.mjs:28:22)
at
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)

Suite error: Tests healing locators using different CSS selectors
Message:
Error: Timeout - Async function did not complete within undefinedms (set by jasmine.DEFAULT_TIMEOUT_INTERVAL)
Stack:
at
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
Message:
TypeError: Cannot read properties of undefined (reading 'quit')
Stack:
at UserContext. (file:///home/omkar/healenium-example-javascript/tests/com/epam/healenium/jasmine/css_test.mjs:28:22)
at
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)

28 specs, 32 failures
Finished in 15.048 seconds
Randomized with seed 31654 (jasmine --random=true --seed=31654)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants