Can SilkTest pass a variable between Testcases within a Testplan?
This is not possible. Any value passed into a testcase will reset when the testcase is exited. The best way to accomplish this would be to use a main() function to call the testcases. This will allow you to basically call the testcases as functions and maintain the value within the Main() function e.g.
[ ] boolean bTest = false [ ] [-] testcase TestA () appstate none [ ] bTest = True [ ] print (bTest) [ ] [-] testcase TestB () appstate none [ ] print (bTest) [ ] [-] main() [ ] TestA() [ ] TestB()
This will set the variable bTest to false initially, when the first testcase is run it is changed to true. When the second testcase is run, the value will persist from the previous testcase and remain true.