Ask a Question

start test case form event


start test case form event

I want to do some DEBUG of the DB state.. so after each TestCase I NEED dump data of one DB table.. This is done in some test case and the response in XML is stupidly dump in to

So I have some test case "dump_DB_data" in test suite "Reusable"..

How to run full test case? 

I just found a way, how to execute single test step in there.. But I need full test case..


Next problem is, that event scripts haves other context.. I am unable to call there ... there is no run method available..


def testCase = testRunner.testCase.testSuite.project.getTestSuiteByName("Reusable").getTestCaseByName("dump_DB_roles")
def properties = new ()
def async = false
String testSuiteName = testRunner.testCase.testSuite.getName();


// this condition is here to avoid, that test case will be executed in never ending cycle.. Is not required to be started once parent testSuite is the same called Reusable.. because there are just test case like methods reused in my tests.

if (!testSuiteName.equals("Reusable")) { "execute the test" (properties, async)
else { "not executed"}

Showing results for 
Search instead for 
Did you mean: