Maven build configuration Team city - Pass variable to feature file

Answered

Hi

I have a cucumber feature file scenario for performing smoke test and a track server URL inside that which should be passed dynamically , below https://tk2.dev.summitenergy.com should be passed as a parameter variable( not hardcoded)

Scenario: RA Login functionality Given Open Firefox and start "https://tk2.dev.summitenergy.com"
When I enter "atesting" and "Testing@2"
Then user should be login successfully

for that i have given "MAVEN_OPTS="-Dprop=%teamcity.project.id%" mvn surefire:test" in theAdditional command line parameters feild while build configuration , I am not sure if it is the correct way to do

Can you please suggest me the correct way

Thanks Ramesh

0

Please sign in to leave a comment.