srcatwh
13 years agoNew Contributor
Calling one project from another
Apologies for potentially daft question, but here goes.
Does anybody know how I can call a script in one project from another?
We have a project that has become so large that it is being split up into smaller projects, and when it was all in one project we could call the data set up scripts from another test suite e.g.
othersuite = testRunner.testCase.testSuite.project.testSuites[anotherSuite]
However, when this project is split into smaller projects, we would like to be able to call the data setup from one location, rather than having to copy it into all of these new small projects e.g.
otherproject = testRunner.testCase.testSuite.project.??.projects[anotherproject]
trouble is I don't know what ?? is, if it exists at all.
Thanks in advance.
Does anybody know how I can call a script in one project from another?
We have a project that has become so large that it is being split up into smaller projects, and when it was all in one project we could call the data set up scripts from another test suite e.g.
othersuite = testRunner.testCase.testSuite.project.testSuites[anotherSuite]
However, when this project is split into smaller projects, we would like to be able to call the data setup from one location, rather than having to copy it into all of these new small projects e.g.
otherproject = testRunner.testCase.testSuite.project.??.projects[anotherproject]
trouble is I don't know what ?? is, if it exists at all.
Thanks in advance.