I have an Object script called SUT. In that script I want to have a loadProductSuite that will basically load the suite for the product we are testing (We support 2 products at this time). The problem is that when I call this function it opens the suite, but from what I’ve read it then closes it once that handler is finished. Is there any way to force it to not close it so that the suite is available from the calling script?
Here is basically what I am trying to do:
//Note: mytestscript is a script in one of the product suites, but it is possible that a test script with the same name exists in both product suites so I only want to load the product suite for the product I am testing
main controller script
SUT.initialize()
SUT.loadProductSuite()
RunWithNewResults mytestscript
########################
SUT script
to handle initialize
// Note: not relevant to quesiton except that we set a my product
// here so the SUT knows what product it is testing
end initialize
to loadProductSuite
if my product equals “VAS”
OpenSuite("/Users/testuser/dev/vasqa/Eggplant/vas.suite")
else if my product equal “QMXSCCM”
OpenSuite("/Users/testuser/dev/qmxqa/Eggplant/qmx.suite")
else
log "Don’t know what to do with product: " & my product
end if
end loadProduct Suite
#############################
When I run my main controller script I see in the following output:
opensuite /Users/testuser/dev/vasqa/Eggplant/vas.suite
Exception Unable to locat script name: mytestscript