Forum Discussion
Hi,
Any more info about the variable that causes the problem? Where it is initialized? How? With what value? Is this a project/project suite variable? How it is used? Anything else that might provide others with some insights instead of just guessing?
Hi Alex,
all i'm trying to do is call out a function that returns me a boolean value. Please see the attached file, test is running fine when executing from test complete ,
thanks
- AlexKaras6 years agoChampion Level 3
Hi,
And what line errors out?
Meanwhile:
a) AuthPage is an object, so
sMainPage=Aliases.browser.AuthPage
must be changed to
Set sMainPage=Aliases.browser.AuthPage
b) PageObjExists return value is undefined if Else branch for the
If sPage.Exists
condition is executed;
c) As sPage parameter of the PageObjExists() function is an object, I am not sure what the result of string and object concatenation will be at the
Log.Error "PAGE NOT FOUND: "&sPage
line of code.
- salley6 years agoFrequent Contributor
Hi Alex,
a. sorry about typo , i've used: Set sMainPage=Aliases.browser.AuthPage.
b. Should i use "on error resume next"??
c.trying the object to return a boolen value.
Please see the updated code. what i'm trying to do is , when user log in to the system it takes some time to load th page, so i'm waiting for the page to load if page found then checking for the object
note: this code works fine when running from test complete, throwing error when running from qacomplete
thanks
- AlexKaras6 years agoChampion Level 3
Hi,
> Should i use "on error resume next"??
No. This is highly not recommended practice that may be used with extreme care in certain cases only. The reason is that the real place and actual error are hidden and this significantly complicates the search of the error root when the code fails somewhere later.
> throwing error
Where? At what line? What is the contents of the Additional Info pane in the test log?
Related Content
Recent Discussions
- 2 days agoGane195