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

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -