Forum Discussion
SmartBear_Suppo
Alumni
12 years agoHi,
You can do that using the following Groovy script below, please add this script to a Groovy test step in the Project you are using. Replace testCaseName value with the name of your test case you would like to find.
Regards,
Marcus
SmartBear Support
Is there a way to identify all the test suites which are using a test case
You can do that using the following Groovy script below, please add this script to a Groovy test step in the Project you are using. Replace testCaseName value with the name of your test case you would like to find.
def testCaseName = "TestCase datagen"
def proj = testRunner.testCase.testSuite.project
def suites = proj.getTestSuiteList()
for(suite in suites)
{
def testCases = suite.getTestCaseList();
for (testCase in testCases)
{
if(testCase.getName() == testCaseName)
{
log.info testCaseName + " found in suite " + suite.getName()
}
}
}
Regards,
Marcus
SmartBear Support