how to provide test data based on Environment into API Call?
I have rest call which will take country as input parameter. At the same time i have dev and test environments.
When dev environment active , my country should take USA as value ,in case test environment is active then country should take Canada as input in parasoft SOA test. Can you help me on this
Answers
-
Define two environments in your tst file, one called "dev" and one called "test". Definite a variable in each one called "country" with the one in "dev" set to "USA" and the one in "test" set to "Canada". In your REST call, use ${country} for the value. You can configure which environment is enabled at test execution time in various ways. See the following for detail:
Configuring Testing in Different Environments
Running Tests in Different Environments0