Skip to content

Instantly share code, notes, and snippets.

@damienomurchu
Created July 4, 2019 13:45
Show Gist options
  • Save damienomurchu/954c857d782d285edb5b6f293b3b55ce to your computer and use it in GitHub Desktop.
Save damienomurchu/954c857d782d285edb5b6f293b3b55ce to your computer and use it in GitHub Desktop.
╭─ ~/qe/integreatly-qe/test-suites/ui-testsuite ‹dep-lockdown*› 
╰─$ npm test tests/20_apicurito/apicurito-console-login.js                                   1 ↵

> nightwatch-test@1.0.0 test /home/damienmurphy/qe/integreatly-qe/test-suites/ui-testsuite
> nightwatch "tests/20_apicurito/apicurito-console-login.js"


[20 Apicurito/Apicurito Console Login] Test Suite
=================================================
info: Waiting for 0.33 minutes.
info: Trying to obtain Dashboard URLs
    POST  /wd/hub/session/9b0455f916036441b1a3c39326033764/url - ECONNRESET
Error: socket hang up
    at createHangUpError (_http_client.js:323:15)
    at Socket.socketCloseListener (_http_client.js:364:25)
 Error while running .navigateTo() protocol action: An unknown error has occurred.

^C
╭─ ~/qe/integreatly-qe/test-suites/ui-testsuite ‹dep-lockdown*› 
╰─$ npm test tests/20_apicurito/apicurito-console-login.js                                 130 ↵

> nightwatch-test@1.0.0 test /home/damienmurphy/qe/integreatly-qe/test-suites/ui-testsuite
> nightwatch "tests/20_apicurito/apicurito-console-login.js"


[20 Apicurito/Apicurito Console Login] Test Suite
=================================================
info: Waiting for 0.33 minutes.
info: Trying to obtain Dashboard URLs
✔ Element <body> was visible after 49 milliseconds.
✔ Element <input[id=username]> was visible after 40 milliseconds.
✔ Element <body> was visible after 38 milliseconds.
✔ Element <.integr8ly-installed-apps-view-list> was visible after 38 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-2-fuse-aggregator-and-api-management"]> was visible after 38 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-1A-integrate-event-and-api-driven-apps"]> was visible after 42 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-publishing-walkthroughs"]> was visible after 41 milliseconds.
Running:  Login to Apicurito console

    POST  /wd/hub/session/82df7ca09ad624dac5c834d5d1052f06/url - ECONNRESET
Error: socket hang up
    at createHangUpError (_http_client.js:323:15)
    at Socket.socketCloseListener (_http_client.js:364:25)
 Error while running .navigateTo() protocol action: An unknown error has occurred.

✔ Element <body> was visible after 13137 milliseconds.
✔ Testing if element <body> contains text: "Apicurito"  - 77 ms.

OK. 2 assertions passed. (1m 13s / 73869ms)
╭─ ~/qe/integreatly-qe/test-suites/ui-testsuite ‹dep-lockdown*› 
╰─$ npm test tests/30_three_scale/three_scale-login.js    

> nightwatch-test@1.0.0 test /home/damienmurphy/qe/integreatly-qe/test-suites/ui-testsuite
> nightwatch "tests/30_three_scale/three_scale-login.js"


[30 Three Scale/Three Scale Login] Test Suite
=============================================
info: Waiting for 0.33 minutes.
info: Trying to obtain Dashboard URLs
✔ Element <body> was visible after 38 milliseconds.
✔ Element <input[id=username]> was visible after 68 milliseconds.
✔ Element <body> was visible after 43 milliseconds.
✔ Element <.integr8ly-installed-apps-view-list> was visible after 657 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-2-fuse-aggregator-and-api-management"]> was visible after 55 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-1A-integrate-event-and-api-driven-apps"]> was visible after 41 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-publishing-walkthroughs"]> was visible after 37 milliseconds.
Running:  Login to 3scale console

    POST  /wd/hub/session/9acc1cef32aebdb5ec711f5ab6b8dcf5/url - ECONNRESET
Error: socket hang up
    at createHangUpError (_http_client.js:323:15)
    at Socket.socketCloseListener (_http_client.js:364:25)
 Error while running .navigateTo() protocol action: An unknown error has occurred.

✔ Element <body> was visible after 14424 milliseconds.
✔ Element <input[id=username]> was visible after 68 milliseconds.
✔ Element <body> was visible after 44 milliseconds.
✔ Element <.integr8ly-installed-apps-view-list> was visible after 609 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-2-fuse-aggregator-and-api-management"]> was visible after 37 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-1A-integrate-event-and-api-driven-apps"]> was visible after 38 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-publishing-walkthroughs"]> was visible after 37 milliseconds.
✔ Element <body> was visible after 31 milliseconds.
✔ Element <a[class=authorizeLink]> was visible after 36 milliseconds.
✔ Element <input[id=session_username]> was not present after 27 milliseconds.

OK. 10 assertions passed. (1m 40s / 100046ms)
 ─ ~/qe/integreatly-qe/test-suites/ui-testsuite ‹dep-lockdown*› 
╰─$ npm test tests/40_che/che-console-login.js                                               1 ↵

> nightwatch-test@1.0.0 test /home/damienmurphy/qe/integreatly-qe/test-suites/ui-testsuite
> nightwatch "tests/40_che/che-console-login.js"


[40 Che/Che Console Login] Test Suite
=====================================
info: Waiting for 0.33 minutes.
✔ Element <body> was visible after 40 milliseconds.
info: Trying to obtain Dashboard URLs
✔ Element <input[id=username]> was visible after 55 milliseconds.
✔ Element <body> was visible after 138 milliseconds.
✔ Element <.integr8ly-installed-apps-view-list> was visible after 490 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-2-fuse-aggregator-and-api-management"]> was visible after 48 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-1A-integrate-event-and-api-driven-apps"]> was visible after 54 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-publishing-walkthroughs"]> was visible after 66 milliseconds.
Running:  Login to che console

✔ Element <body> was visible after 34 milliseconds.
✔ Element <input[id=username]> was visible after 1029 milliseconds.
✖ Timed out while waiting for element <input[class="btn btn-primary btn-block btn-lg"]> to be present for 3000 milliseconds. - expected "visible" but got: "not found"
    at NightwatchAPI.<anonymous> (/home/damienmurphy/qe/integreatly-qe/test-suites/ui-testsuite/utils/commands/che/cheConsoleLogin.js:22:10)
    at process._tickCallback (internal/process/next_tick.js:68:7) 


FAILED: 1 assertions failed and  2 passed (9.751s)
   Error while running "waitForElementVisible" command: Timed out while waiting for element <input[class="btn btn-primary btn-block btn-lg"]> to be present for 3000 milliseconds. - expected "visible" but got: "not found"
       at process._tickCallback (internal/process/next_tick.js:68:7)
_________________________________________________

TEST FAILURE:  1 assertions failed, 9 passed. 42.262s

 ✖ 40_che/che-console-login
 – Login to che console (9.751s)
   Timed out while waiting for element <input[class="btn btn-primary btn-block btn-lg"]> to be present for 3000 milliseconds. - expected "visible" but got: "not found"
       at NightwatchAPI.<anonymous> (/home/damienmurphy/qe/integreatly-qe/test-suites/ui-testsuite/utils/commands/che/cheConsoleLogin.js:22:10)
       at process._tickCallback (internal/process/next_tick.js:68:7)

npm ERR! Test failed.  See above for more details.
╰─$ npm test tests/50_enmasse/enmasse-console-login.js                                       1 ↵

> nightwatch-test@1.0.0 test /home/damienmurphy/qe/integreatly-qe/test-suites/ui-testsuite
> nightwatch "tests/50_enmasse/enmasse-console-login.js"


[50 Enmasse/Enmasse Console Login] Test Suite
=============================================
info: Waiting for 0.33 minutes.
✔ Element <body> was visible after 38 milliseconds.
✔ Element <input[id=username]> was visible after 40 milliseconds.
✔ Element <body> was visible after 36 milliseconds.
✔ Element <.integr8ly-installed-apps-view-list> was visible after 1174 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-2-fuse-aggregator-and-api-management"]> was visible after 45 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-1A-integrate-event-and-api-driven-apps"]> was visible after 73 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-publishing-walkthroughs"]> was visible after 49 milliseconds.
info: Trying to obtain Dashboard URLs
Running:  Login to Enmasse console

✔ Element <body> was visible after 36 milliseconds.
✔ Element <body> was visible after 31 milliseconds.
✔ Testing if element <body> contains text: "Addresses"  - 85 ms.

OK. 3 assertions passed. (9.125s)
╰─$ npm test tests/60_launcher/launcher-console-login.js                                     1 ↵

> nightwatch-test@1.0.0 test /home/damienmurphy/qe/integreatly-qe/test-suites/ui-testsuite
> nightwatch "tests/60_launcher/launcher-console-login.js"


[60 Launcher/Launcher Console Login] Test Suite
===============================================
info: Waiting for 0.33 minutes.
✔ Element <body> was visible after 39 milliseconds.
✔ Element <input[id=username]> was visible after 38 milliseconds.
✔ Element <body> was visible after 35 milliseconds.
✔ Element <.integr8ly-installed-apps-view-list> was visible after 1903 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-2-fuse-aggregator-and-api-managemen
t"]> was visible after 39 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-1A-integrate-event-and-api-driven-a
pps"]> was visible after 35 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-publishing-walkthroughs"]> was visi
ble after 49 milliseconds.
info: Trying to obtain Dashboard URLs
Running:  Login to Launcher console

✔ Element <li[id="loggedout"]> was visible afte
r 39 milliseconds.
✔ Element <a[id=login]> was visible after 36 mi
lliseconds.
✔ Element <input[id=username]> was visible afte
r 40 milliseconds.
✔ Element <input[id=password]> was visible afte
r 47 milliseconds.
✔ Element <input[id="kc-login"]> was visible af
ter 35 milliseconds.
✖ Timed out while waiting for element <input[class="btn btn-primary btn-block btn-lg"]> to be present for 3000 milliseconds. - expected "visible" but got: "not found"
    at NightwatchAPI.<anonymous> (/home/damienmurphy/qe/integreatly-qe/test-suites/ui-testsuite/utils/commands/launcher/launcherConsoleLogin.js:24:14)
    at process._tickCallback (internal/process/next_tick.js:68:7) 


FAILED: 1 assertions failed and  5 passed (17.038s)
   Error while running "waitForElementVisible" command: Timed out while waiting for element <input[class="btn btn-primary btn-block btn-lg"]> to be present for 3000 milliseconds. - expected "visible" but got: "not found"
       at process._tickCallback (internal/process/next_tick.js:68:7)
_________________________________________________

TEST FAILURE:  1 assertions failed, 12 passed. 40.486s

 ✖ 60_launcher/launcher-console-login
 – Login to Launcher console (17.038s)
   Timed out while waiting for element <input[class="btn btn-primary btn-block btn-lg"]> to be present for 3000 milliseconds. - expected "visible" but got: "not found"
       at NightwatchAPI.<anonymous> (/home/damienmurphy/qe/integreatly-qe/test-suites/ui-testsuite/utils/commands/launcher/launcherConsoleLogin.js:24:14)
       at process._tickCallback (internal/process/next_tick.js:68:7)

npm ERR! Test failed.  See above for more details.
╰─$ npm test tests/70_sso_access/sso-console-access.js

> nightwatch-test@1.0.0 test /home/damienmurphy/qe/integreatly-qe/test-suites/ui-testsuite
> nightwatch "tests/70_sso_access/sso-console-access.js"


[70 Sso Access/Sso Console Access] Test Suite
=============================================
info: Waiting for 0.33 minutes.
✔ Element <body> was visible after 39 milliseconds.
✔ Element <input[id=username]> was visible after 39 milliseconds.
✔ Element <body> was visible after 43 milliseconds.
✔ Element <.integr8ly-installed-apps-view-list> was visible after 802 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-2-fuse-aggregator-and-api-management"]> was visible after 39 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-1A-integrate-event-and-api-driven-apps"]> was visible after 41 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-publishing-walkthroughs"]> was visible after 35 milliseconds.
info: Trying to obtain Dashboard URLs
Running:  Check SSO access

✔ Element <body> was visible after 44 milliseconds.
✔ Element <input[id=username]> was visible after 41 milliseconds.
✔ Element <body> was visible after 30 milliseconds.
✔ Element <.integr8ly-installed-apps-view-list> was visible after 863 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-2-fuse-aggregator-and-api-management"]> was visible after 37 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-1A-integrate-event-and-api-driven-apps"]> was visible after 35 milliseconds.
✔ Element <div[id="tutorial-web-app-walkthroughs-walkthroughs-publishing-walkthroughs"]> was visible after 42 milliseconds.
✔ Element <body> was visible after 34 milliseconds.
✔ Element <input[class="btn btn-primary btn-lg"]> was visible after 35 milliseconds.
✔ Element <#stacks-item> was visible after 3347 milliseconds.
✔ Element <.stack-list> was visible after 82 milliseconds.
✔ Testing if element <.stack-list> contains text: "Java"  - 316 ms.
✔ Element <body> was visible after 40 milliseconds.
✔ Testing if element <syndesis-root> is visible  - 37 ms.
✔ Element <body> was visible after 29 milliseconds.
✔ Testing if element <body> contains text: "Apicurito"  - 63 ms.
✔ Element <body> was visible after 34 milliseconds.
✔ Element <a[class=authorizeLink]> was visible after 54 milliseconds.
✔ Element <input[id=session_username]> was not present after 17 milliseconds.
✔ Element <body> was visible after 34 milliseconds.
✔ Testing if element <body> contains text: "Addresses"  - 78 ms.
✔ Element <li[id="loggedin"]> was visible after 37 milliseconds.
✔ Testing if element <body> contains text: "Continuous application delivery"  - 73 ms.
✔ Testing if element <body> contains text: "built and deployed on OpenShift"  - 71 ms.

OK. 24 assertions passed. (47.807s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment