1
vote
Test Automation framework built using Java, Selenium, Cucumber and Maven. How to execute the tests based on env.properties file?
You still need to pass the argument: You mvn install command doesn't do this.
But you don't need surefire for this.
You can simply run:
mvn install -Denv='qa'
or
mvn install -Denv='uat'
Then System....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cucumber-java × 6testng × 3
cucumber × 3
automated-testing × 2
selenium-webdriver × 2
testng-dataprovider × 2
java × 1
maven × 1
api × 1
rest-assured × 1
parallel-execution × 1