Reputation: 425
I have application.property file in project
[email protected]
password=123456
baseId=4e1c-a459-0885d5849686
serviceId=49ca-a348-38ef3dc89a16
and when I run my test I want to change only password field and get it from system variable. how can I change it?
Upvotes: 0
Views: 192
Reputation: 13893
One option is to use profiles. Enabling the test
profile you can define a different value in application-test.properties
, which would look something like that
[email protected]
password=${PWD}
baseId=4e1c-a459-0885d5849686
serviceId=49ca-a348-38ef3dc89a16
PWD is an environment variable
Upvotes: 1