other
Print to the log file: project name, testsuite name, test case name Groovy
def projName = testRunner.testCase.testSuite.project.name
def suiteName = testRunner.testCase.testSuite.name
def tcName = testRunner.testCase.name
// Use soapUI context object to log project endpoint and Database.
def endpoint = context.expand( '${#Project#endpoint}' )
def dB = context.expand( '${#Project#DB}' )
log.info "*********************************************************************"
log.info " Running Project: " + projName
log.info " Suite: " + suiteName
log.info " Testcase: " + tcName
log.info " Endpoint: " + endpoint
log.info " Database: " + dB
log.info "*********************************************************************"
Print the following info to the log file: SoapUI project name, testsuite name, test case name and endpoint to logs. Add to the beginning of all soapui scripts.
Was this helpful?