cucumber - Maven build configuration Team city - Pass variable to feature file -
i have cucumber feature file scenario performing smoke test , track server should passed dynamically , below https://tk2.dev.summitenergy.com should passed parameter variable( not hardcoded)
scenario: ra login functionality given open firefox , start "https://tk2.dev.summitenergy.com" when enter "atesting" , "testing@2" user should login successfully
for have given "maven_opts="-dprop=%teamcity.project.id%" mvn surefire:test" in additional command line parameters feild while build configuration , not sure if correct way
can please suggest me correct way
thanks ramesh
as cucumber in maven executed junit test, please try set following value in additional maven command line parameters
-dargline="-dprop=%teamcity.project.id%"
note, not need put maven_opts
field's value also, goals separate field, too. test
goal should specified
Comments
Post a Comment