Skip to content

Dynamically Run your tests on different environments by getting environment as an argument from testng.xml or maven command

Notifications You must be signed in to change notification settings

WasifIsrar/MultipleEnvironment_AutomationFramework

Repository files navigation

When we have multiple environments to run our tests on. We need to pass values for that respective environment dynamically. We can use properties file to store that data in respective environment file. To get that data we use Owner Library to Set that value to a variable and then get that value. We use TestNG to run our tests by passing environment as a parameter either through TestNg.xml file or maven command.

The Action is written to take environment as an argument as a choice parameter and pass that to maven command. Execute the action to see the output as PIN IS: 6 digit pin for respective environment

About

Dynamically Run your tests on different environments by getting environment as an argument from testng.xml or maven command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages