Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
17 years ago

[Resolved] groovy question. get testcase name

Hello Ole,
We use mercury quality center to keep track of our test cases. mercury has an open API which lets you update the status of test cases. I made an executable which can be called through soapUI groovy script to update the status after a test run. I am using this script at the end of each test case. I have a few questions and would greatly appreciate your feedback.

1. How can I retrieve the testcase name from groovy script. I looked at the soapUI API but didnt see any method in TestCase interface that returns the method. I was doing something like testRunner.getTestCase().

2. I want to update the Quality center to 'pass/fail' based on if the the testcase in soapUI passed or failed. Can I retrieve some kind of status from soapuI test case ?

Thanks

Ali

11 Replies