How do I GetROProperty from the active Java d/box
... if it is not stored in QTP object repository?
Here is the code:
Function RSA_SysErrorHandler ()
Dim error_Number, error_Code as Variant
error_Code = JavaWindow("VHA Outpatient Scheduling").JavaDialog("RSA Error").JavaStaticText(*).GetROProperty("attached text")
if instr ( error_Code, "RSA-AUTH-0018") then error_Number = "1"
I'm also not sure if I can use a regular expression * to identify any JavaStaticText object thet's active.
2) Do I have to insert a call to this function to all actions called from the test run or just in the beginning of the test run something like:
On Error Resume Next
Call RSA_SysErrorHandler ()
Re: How do I GetROProperty from the active Java d/box
I would like to withdraw the first question since I'm going to use a descriptive programming to eliminate this problem. I see the syntax problems as well. However second question is still valid. Thanks!