paulie
10 years agoOccasional Contributor
Rename TestCase - call to script library fails
Is there a known issue with renaming TestCases?
When I rename a TestCase the last line below always fails.
If I clone a TestCase and rename the cloned TC in the Clone TestCase dialog the code works as per usual.
The cloned TC/renamed TC are in a different Testsuite to the Library scripts
When I rename a TestCase the last line below always fails.
If I clone a TestCase and rename the cloned TC in the Clone TestCase dialog the code works as per usual.
The cloned TC/renamed TC are in a different Testsuite to the Library scripts
// Get a reference to the library TestSuite
library = testRunner.testCase.testSuite.project.testSuites["Library"]
assert library != null
// Find the modules within the library
memberModule = library.testCases["All_methods"].testSteps["Members"]
assert memberModule != null
// Initialise the library - places instances in the context
memberModule.run(testRunner, context)
// get the instances from the context.
def myMembers = context.Members
assert myMembers != null