Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
14 years ago

testcase/testsuite rename event

Hello,
I need to create an event listener for a testcase or testsuite rename

I am following the example here and have this example working
http://www.soapui.org/Developers-Corner ... -in-soapui

How can I modify this example such that whenever there is a testcase/testsuite rename, I print out some message to the log.

I would also like to print something to the console if anything is modified in the testcase like add/delete/update teststeps. so an event listener for detecting testcase changes.

Thanks

1 Reply

  • Hi Ali,

    - to detect name changes you need to add property listeners to each TestStep for the "name" property
    - to detect testcase changes you can either add a property-listener to the TestCase and listen for changes to the "testSteps" property, or you can add a TestSuiteListener to the containing TestSuite which will get notified in the corresponding methods.

    Hope this helps!

    regards,

    /Ole
    SmartBear Software