SOAtest run as a project or tst file
Is there a way for Soa test to determine whether you are running it as a project folder that includes all. .tst file or a single .tst file. The reason for asking this is that I would like to set a common value that will exist on all .tst file if it’s run as on project folder and a different value set when it run on a .tst file.
Comments
-
There is no way for you to interrogate SOAtest to distinguish between the two cases. But you could do something like pass a system property on the command line that you set to different values depending on whether you are running a single .tst or a folder of .tst files - and then you could add a script within your .tst files to read the value of the system property and do something like set a SOAtest test variable.
0 -
Can you point me to the right direction. As I couldn't see the system properties in the soatestcli command line usage.
0 -
You pass a system property to soatestcli by passing an argument that looks like this:
-J-Dmy.system.property="myvalue"
Then you can read that system property within a script by using the following Java code:java.lang.System.getProperty("my.system.property")
0