How to pass parameters(set in eclipse run configurations) through maven commands in cucumber framework | Selenium Forum
S
sowndarya Posted on 19/08/2019

Hi Team,

In my automation frame work(cucumber + Junit), following are some parameters set in Eclipse Run configurations.

-Dbuild.env=URL

-Dconfig.dir=C:\SVN-today\wi-test\src\main\resources

-Dcucumber.options="--tags @uat2"

-Dinstall.dir=C:\SVN-today\wi-test\src\main\resources

 

When i tried passing the below command in cmd, the build is getting successful but the script is not executing, Please find attached the screenshot of the command prompt result.

mvn test -Dbuild.env=URL -Dconfig.dir=C:\SVN-today\wi-test\src\main\resources -Dcucumber.options="--tags @mepoe2e --tags @uat2" -Dinstall.dir=C:\SVN-today\wi-test\src\main\resources

 

Could you please let me know how to pass these parameters through maven commands in command line!!!


A
Ashish Thakur Replied on 03/09/2019

Is it executing with normal mvn command?