Forum Discussion
sergeykh
13 years agoOccasional Contributor
After more digging around I found the solution.
In the called test case you can the calling step name, or the test case name with this code:
if(context.hasProperty("#CallingRunTestCaseStep#")){
log.info context.getProperty("#CallingRunTestCaseStep#").getLabel();
log.info context.getProperty("#CallingRunTestCaseStep#").getTestCase().getLabel();
}
Using this params the trace will be much more readble
In the called test case you can the calling step name, or the test case name with this code:
if(context.hasProperty("#CallingRunTestCaseStep#")){
log.info context.getProperty("#CallingRunTestCaseStep#").getLabel();
log.info context.getProperty("#CallingRunTestCaseStep#").getTestCase().getLabel();
}
Using this params the trace will be much more readble