I created 3 jenkins jobs linked to the same github project, i'm using wdio v5 and cucumber, i want to run each job on a different port this is why i'm trying to pass the port from the jenkins post-build task : execute shell
I tryed this -- --seleniumArgs.seleniumArgs= ['-port', '7777']
then this
-- --seleniumArgs.seleniumArgs= ["-port", "7777"]
then
-- --seleniumArgs.seleniumArgs= '-port: 7777'
but nothing works
how to pass selenium-standalone port configuration from the command line
173 Views Asked by mehdi At
1
i found a solution :
so this is the wdio.conf.js file :
myArg will receive an array with the arguments passed in the command line
and this is the command
the 7777 is the argument number 2, thus the index 1 in the array, the index 0 is : wdio.conf.js, which is in the "test" script in package.json ===> "test": "wdio wdio.conf.js"