nmrao
4 years agoChampion Level 3
Is there way to find if the test is invoked from command line or from UI
Hello,
Trying a different solution in relation to the following thread
Here, using Load Script at Project level.
Reading some arguments from java system properties in the solution.
def setArugmentsFromCommandLine = { arguments.keySet().each { arguments[it] = System.properties[it] } }
This is OK if test are executed from command line.
But for those using UI, there is problem as users neither they invoke the UI tool with system arguments, nor they set values for these properties.
In order to handle the case, need to know in the script of Load Script whether tests invoked from UI or not. So, it can be handled conditionally.
Any help is appreciated!