How to run Nightwatch tests in Jenkins?












-1















How can I integrate Nightwatch with Jenkins, and run the tests from Jenkins? What are the correct commands that I should use?



I have selected 'Execute Windows Batch Command' and tried to run 'echo' followed by the usual commands that I run in cmd, but no success.










share|improve this question























  • Would be great to provide us with information of what you tried, commands and actual output.

    – Stratos Ion
    Nov 23 '18 at 14:25











  • In the Build section of the job's configuration, I used the exact command that I would normally use in the Command Line to run the tests(e.g. cd "C:/xampp/htdocs/webapp/tests/nightwatch"). I used similar commands to start Selenium. In the Console output, the build it's successful, but my test is supposed to launch an internet browser page, which it doesn't. Any idea how to make it launch the browser?

    – Mihaela
    Nov 28 '18 at 16:50
















-1















How can I integrate Nightwatch with Jenkins, and run the tests from Jenkins? What are the correct commands that I should use?



I have selected 'Execute Windows Batch Command' and tried to run 'echo' followed by the usual commands that I run in cmd, but no success.










share|improve this question























  • Would be great to provide us with information of what you tried, commands and actual output.

    – Stratos Ion
    Nov 23 '18 at 14:25











  • In the Build section of the job's configuration, I used the exact command that I would normally use in the Command Line to run the tests(e.g. cd "C:/xampp/htdocs/webapp/tests/nightwatch"). I used similar commands to start Selenium. In the Console output, the build it's successful, but my test is supposed to launch an internet browser page, which it doesn't. Any idea how to make it launch the browser?

    – Mihaela
    Nov 28 '18 at 16:50














-1












-1








-1


1






How can I integrate Nightwatch with Jenkins, and run the tests from Jenkins? What are the correct commands that I should use?



I have selected 'Execute Windows Batch Command' and tried to run 'echo' followed by the usual commands that I run in cmd, but no success.










share|improve this question














How can I integrate Nightwatch with Jenkins, and run the tests from Jenkins? What are the correct commands that I should use?



I have selected 'Execute Windows Batch Command' and tried to run 'echo' followed by the usual commands that I run in cmd, but no success.







jenkins nightwatch.js






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 16 '18 at 10:52









MihaelaMihaela

93




93













  • Would be great to provide us with information of what you tried, commands and actual output.

    – Stratos Ion
    Nov 23 '18 at 14:25











  • In the Build section of the job's configuration, I used the exact command that I would normally use in the Command Line to run the tests(e.g. cd "C:/xampp/htdocs/webapp/tests/nightwatch"). I used similar commands to start Selenium. In the Console output, the build it's successful, but my test is supposed to launch an internet browser page, which it doesn't. Any idea how to make it launch the browser?

    – Mihaela
    Nov 28 '18 at 16:50



















  • Would be great to provide us with information of what you tried, commands and actual output.

    – Stratos Ion
    Nov 23 '18 at 14:25











  • In the Build section of the job's configuration, I used the exact command that I would normally use in the Command Line to run the tests(e.g. cd "C:/xampp/htdocs/webapp/tests/nightwatch"). I used similar commands to start Selenium. In the Console output, the build it's successful, but my test is supposed to launch an internet browser page, which it doesn't. Any idea how to make it launch the browser?

    – Mihaela
    Nov 28 '18 at 16:50

















Would be great to provide us with information of what you tried, commands and actual output.

– Stratos Ion
Nov 23 '18 at 14:25





Would be great to provide us with information of what you tried, commands and actual output.

– Stratos Ion
Nov 23 '18 at 14:25













In the Build section of the job's configuration, I used the exact command that I would normally use in the Command Line to run the tests(e.g. cd "C:/xampp/htdocs/webapp/tests/nightwatch"). I used similar commands to start Selenium. In the Console output, the build it's successful, but my test is supposed to launch an internet browser page, which it doesn't. Any idea how to make it launch the browser?

– Mihaela
Nov 28 '18 at 16:50





In the Build section of the job's configuration, I used the exact command that I would normally use in the Command Line to run the tests(e.g. cd "C:/xampp/htdocs/webapp/tests/nightwatch"). I used similar commands to start Selenium. In the Console output, the build it's successful, but my test is supposed to launch an internet browser page, which it doesn't. Any idea how to make it launch the browser?

– Mihaela
Nov 28 '18 at 16:50












1 Answer
1






active

oldest

votes


















0














Do you use selenium to run the nightwatch in the background?
Take a look at this link






share|improve this answer
























  • Hi. Yes, I used the following command to run Selenium in Jenkins: cd "C:xampp/htdocs/webapp/tests/nightwatch/selenium" selenium-server-standalone-3.9.1.jar When I look at the Console output it looks like it's doing it (run Selenium). But when it comes to running the actual test, it wouldn't launch the browser and the Console would just stall. As far as I know, Selenium should automatically run anyway when the test is run.

    – Mihaela
    Nov 16 '18 at 15:54













  • Hi. Did you even install selenium webdriver (chrome or firefox)? See this link: dzone.com/articles/test-automation-using-nightwatch

    – dalmo.santos
    Nov 16 '18 at 17:13











  • Yes. I had everything installed

    – Mihaela
    Nov 19 '18 at 10:41












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53336389%2fhow-to-run-nightwatch-tests-in-jenkins%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Do you use selenium to run the nightwatch in the background?
Take a look at this link






share|improve this answer
























  • Hi. Yes, I used the following command to run Selenium in Jenkins: cd "C:xampp/htdocs/webapp/tests/nightwatch/selenium" selenium-server-standalone-3.9.1.jar When I look at the Console output it looks like it's doing it (run Selenium). But when it comes to running the actual test, it wouldn't launch the browser and the Console would just stall. As far as I know, Selenium should automatically run anyway when the test is run.

    – Mihaela
    Nov 16 '18 at 15:54













  • Hi. Did you even install selenium webdriver (chrome or firefox)? See this link: dzone.com/articles/test-automation-using-nightwatch

    – dalmo.santos
    Nov 16 '18 at 17:13











  • Yes. I had everything installed

    – Mihaela
    Nov 19 '18 at 10:41
















0














Do you use selenium to run the nightwatch in the background?
Take a look at this link






share|improve this answer
























  • Hi. Yes, I used the following command to run Selenium in Jenkins: cd "C:xampp/htdocs/webapp/tests/nightwatch/selenium" selenium-server-standalone-3.9.1.jar When I look at the Console output it looks like it's doing it (run Selenium). But when it comes to running the actual test, it wouldn't launch the browser and the Console would just stall. As far as I know, Selenium should automatically run anyway when the test is run.

    – Mihaela
    Nov 16 '18 at 15:54













  • Hi. Did you even install selenium webdriver (chrome or firefox)? See this link: dzone.com/articles/test-automation-using-nightwatch

    – dalmo.santos
    Nov 16 '18 at 17:13











  • Yes. I had everything installed

    – Mihaela
    Nov 19 '18 at 10:41














0












0








0







Do you use selenium to run the nightwatch in the background?
Take a look at this link






share|improve this answer













Do you use selenium to run the nightwatch in the background?
Take a look at this link







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 16 '18 at 15:23









dalmo.santosdalmo.santos

247




247













  • Hi. Yes, I used the following command to run Selenium in Jenkins: cd "C:xampp/htdocs/webapp/tests/nightwatch/selenium" selenium-server-standalone-3.9.1.jar When I look at the Console output it looks like it's doing it (run Selenium). But when it comes to running the actual test, it wouldn't launch the browser and the Console would just stall. As far as I know, Selenium should automatically run anyway when the test is run.

    – Mihaela
    Nov 16 '18 at 15:54













  • Hi. Did you even install selenium webdriver (chrome or firefox)? See this link: dzone.com/articles/test-automation-using-nightwatch

    – dalmo.santos
    Nov 16 '18 at 17:13











  • Yes. I had everything installed

    – Mihaela
    Nov 19 '18 at 10:41



















  • Hi. Yes, I used the following command to run Selenium in Jenkins: cd "C:xampp/htdocs/webapp/tests/nightwatch/selenium" selenium-server-standalone-3.9.1.jar When I look at the Console output it looks like it's doing it (run Selenium). But when it comes to running the actual test, it wouldn't launch the browser and the Console would just stall. As far as I know, Selenium should automatically run anyway when the test is run.

    – Mihaela
    Nov 16 '18 at 15:54













  • Hi. Did you even install selenium webdriver (chrome or firefox)? See this link: dzone.com/articles/test-automation-using-nightwatch

    – dalmo.santos
    Nov 16 '18 at 17:13











  • Yes. I had everything installed

    – Mihaela
    Nov 19 '18 at 10:41

















Hi. Yes, I used the following command to run Selenium in Jenkins: cd "C:xampp/htdocs/webapp/tests/nightwatch/selenium" selenium-server-standalone-3.9.1.jar When I look at the Console output it looks like it's doing it (run Selenium). But when it comes to running the actual test, it wouldn't launch the browser and the Console would just stall. As far as I know, Selenium should automatically run anyway when the test is run.

– Mihaela
Nov 16 '18 at 15:54







Hi. Yes, I used the following command to run Selenium in Jenkins: cd "C:xampp/htdocs/webapp/tests/nightwatch/selenium" selenium-server-standalone-3.9.1.jar When I look at the Console output it looks like it's doing it (run Selenium). But when it comes to running the actual test, it wouldn't launch the browser and the Console would just stall. As far as I know, Selenium should automatically run anyway when the test is run.

– Mihaela
Nov 16 '18 at 15:54















Hi. Did you even install selenium webdriver (chrome or firefox)? See this link: dzone.com/articles/test-automation-using-nightwatch

– dalmo.santos
Nov 16 '18 at 17:13





Hi. Did you even install selenium webdriver (chrome or firefox)? See this link: dzone.com/articles/test-automation-using-nightwatch

– dalmo.santos
Nov 16 '18 at 17:13













Yes. I had everything installed

– Mihaela
Nov 19 '18 at 10:41





Yes. I had everything installed

– Mihaela
Nov 19 '18 at 10:41




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53336389%2fhow-to-run-nightwatch-tests-in-jenkins%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Bressuire

Vorschmack

Quarantine