Determine whether a TestCase is run from the Command Line, as a LoadTest, etc.
SoapUI FAQ
(Continued from previous question...)
Determine whether a TestCase is run from the Command Line, as a LoadTest, etc.
1.if( com.eviware.soapui.SoapUI.isCommandLine() )
2.{
3. log.info "This code is executed by Command Line SoapUI"
4.}
5.if( context.LoadTestContext != null )
6.{
7. log.info "This code is executed from a LoadTest"
8.}
(Continued on next question...)
Other Interview Questions
|