I have found a lot of similar topics, but none quite explained fully how to go about passing a command line argument for tests.
Example) [In a command prompt window] (Using Win7 64bit)node nightwatch -t tests/mysite/smoketests/thistest.js
I
read that you can create a global.js file to execute specific commands
into the command line and I have created one with the following
properties:
module.exports = {
"default" : {
siteURL : ""
},
"envURL" : {
site1: "https://site1.com",
I
also read when executing on the command line, you could toss in the
flag "--env" and set it equal to an environment you want to launch on.
So my question, let's say that I want to launch my tests against
site2 for e2e testing; What would be passed to have that happen, or am I missing something?
node nightwatch --env=site2 -t tests/mysite/smoketests/thistest.js
I
am definitely new to nightwatch, automation testing and using node +
command line (I do have experience in javascript and scripting
languages)