healenium / healenium-example-javascript

Apache License 2.0
1 stars 1 forks source link

[Need support]: Execute case error #3

Open bdzxhhh opened 1 year ago

bdzxhhh commented 1 year ago

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

rohit-vrrr commented 1 year ago

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 commented 1 year ago

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

orb-277 commented 1 year ago

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)