Forum Discussion
nmrao
Champion Level 3
EmilDK,
You have use as ${#Project#DbUsername}
For more details, refer documentation here:
https://www.soapui.org/scripting---properties/property-expansion.html
You have use as ${#Project#DbUsername}
For more details, refer documentation here:
https://www.soapui.org/scripting---properties/property-expansion.html
EmilDK
8 years agoOccasional Contributor
Sorry for being inaccurate - I am using "${#Project#DbPassword}".
It works when putting in the properties manually under "Custom Properties" - but I can't set it automatically through JUnit.
- nmrao8 years agoChampion Level 3
- EmilDK8 years agoOccasional Contributor
This is the Custom (project) Properties I'm referring to in my SOAP UI tests which runs fine.
But I need to change these properties through my JUnit project so I can execute my tests automatically on different environments(that has different usernames/passwords). However, it seems like the TestRunner.setProjectProperties() has no effect.
- nmrao8 years agoChampion Level 3Requesting you again for the code used in junit which you are talking about.
Related Content
- 10 years ago
Recent Discussions
- 15 years ago