Forum Discussion

francisbrochu's avatar
francisbrochu
Occasional Contributor
8 years ago

is there a way to call a testsuite from another project

Hi, I have developed a Test Suite which is in fact a script library. The way I found to call it in my Groovy script is, for example : 

 

scripts = testRunner.testCase.testSuite.project.testSuites["Script Library"];
scripts.testCases["DataBase"].testSteps["Connect"].run(testRunner, context);
 
def sql = Sql.newInstance(context.connexion.path,context.connexion.username,context.connexion.password,context.connexion.driver)

How should I declare scripts if I want to call my library from another project ?

2 Replies