08-03-2010, 12:28 PM
Hello. I have a problem with replacing the long lines and reusing the short lines in tests.
I have next approach:
'next line is written within GlobalVariables.qfl file, from where it is called in test scripts:
In test scripts I am calling it like this, e.g.:
NOW: when I am running the tests what are using such kind of description, the system do not see all the time the 'EnvironmentURL' object. Why can be that?! Maybe the GlobalVariables.qfl should be saved in .vbs extension..
Please Help, it is a very important problem for me now..
Any idea can be very useful.
Thanks a lot!
I have next approach:
'next line is written within GlobalVariables.qfl file, from where it is called in test scripts:
Code:
Set EnvironmentURL = Browser("URL:=http://test.st").Page("URL:=http://test.st")
In test scripts I am calling it like this, e.g.:
Code:
EnvironmentURL.WebEdit("name:=name_of_textfield").Set "test"
NOW: when I am running the tests what are using such kind of description, the system do not see all the time the 'EnvironmentURL' object. Why can be that?! Maybe the GlobalVariables.qfl should be saved in .vbs extension..
Please Help, it is a very important problem for me now..
Any idea can be very useful.
Thanks a lot!