SiKing
12 years agoCommunity Expert
[Resolved] missing results log file
I have a testcase where I need to run the individual steps in different order based on some criteria. I am using a Groovy script to determine the order of steps, using something like:
Everything works just the way I want.
However, when I run my testcase from CLI (testrunner.bat) with the -a or -A switch, I do not get any result log files for any of my steps. I am wondering: is this by design? How can I get the result log files?
def macAddress = context.expand( '${retrieve devices#sMacAddress}' )
def mdn = context.expand( '${retrieve devices#sMDN}' )
def customerId = context.expand( '${retrieve devices#biCustomerID}' )
if (macAddress != null && !macAddress.isEmpty()) {
def result = testRunner.testCase.getTestStepByName("findDeviceByMacAddress").run(testRunner, context)
}
if (mdn != null && !mdn.isEmpty()) {
def result = testRunner.testCase.getTestStepByName("findDeviceByPhoneNumber").run(testRunner, context)
}
if (customerId != null && !customerId.isEmpty()) {
def result = testRunner.testCase.getTestStepByName("findDevicesByCustomerId").run(testRunner, context)
}
Everything works just the way I want.
However, when I run my testcase from CLI (testrunner.bat) with the -a or -A switch, I do not get any result log files for any of my steps. I am wondering: is this by design? How can I get the result log files?