I'm fairly new to rational software and I was wondering if anyone knows how to pass a variable from a program under test. I have an error flag I want to set in a certain part of my program and then use that value in my testing code to determine what the test code should do next.
Look in the index of the Visual Test help facility for the phrase Global variable:
Declares global variables or arrays. GLOBAL variables can be accessed inside SUB and FUNCTION procedures located in your test code.
GLOBAL variable [ ( subscripts ) ] [ AS datatype ] [ , variable [ ( subscripts ) ] [ AS datatype ] , ... ]
The GLOBAL statement must appear before any SUB or FUNCTION statement that uses the declared variables. The declaration rules are the same as those for the DIM statement. Unlike the DIM statement, GLOBAL must not appear inside a SUB or FUNCTION (this causes a parse-time error).
Michael - Armageddon was yesterday, today we have a serious problem!