Running mulitple tests in a folder (group) sequentially in nightwatch

460 views
Skip to first unread message

phoenix

unread,
Aug 13, 2017, 10:46:49 PM8/13/17
to NightwatchJs
Hi,
I have multiple tests in a subfolder , I would like to run them sequentially and not parallel.

Currently when i run the test from this folder by using command line , it says "starting child process " for each test and then multiple browser window open up .Some test have inter dependencies because of Data .One test will make other test fail .
To solve this issue i would like to these tests in one folder one by one but giving the command just once .

Is there a way to do that ???

I am very new to this and all if the test are not coded but generated using snaptest.io by recording .

Example :

Tests are lying in path c:/test

test1 
test2
test3
test4

I want it to run in a sequence like  test1 runs and finishes only then test2 starts etc ..

Currently of i run the test using command line , it runs all 4 of them in parallel .

i dont want that .

Hope i have asked the question clearly .


David Linse

unread,
Aug 14, 2017, 10:18:00 AM8/14/17
to nightw...@googlegroups.com
what's the command you're running to execute your tests ?

--
You received this message because you are subscribed to the Google Groups "NightwatchJs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nightwatchjs...@googlegroups.com.
To post to this group, send email to nightw...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nightwatchjs/d677999a-7481-47a3-8a52-f83f0616be6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eric Mumford

unread,
Aug 18, 2017, 12:50:31 AM8/18/17
to NightwatchJs
You've configured something in your .conf file that is different than default behavior.

I would suggest you follow the instructions to install Nightwatch from scratch in a new directory, copy your tests there, and run the command in that directory. Nightwatch default behavior is _not_ to spawn child processes to run tests in parallel. 

Posting your folder structure, config files, and commands would also help us help you.
Reply all
Reply to author
Forward
0 new messages