Forum Discussion
krupa_luke
12 years agoOccasional Contributor
Hi,
I have been working with QTP (UFT) for years and now I am slowly uncovering capabilities of TestComplete.
Descriptive programming (defining test objects via properties and corresponding values) was one of the first things I was interested in.
In QTP (UFT), syntax of descriptive programming looked like this:
Browser("prop1:=val1", "prop2:=val2")
... the same in testComplete:
Sys.Browser(prop1="val1", prop2=val2)
Note:
Please, notice that in case of val1 I used apostrophe ("val1"), while in case of val2 I did not. So in used syntax example above val1 is a String data type while val2 is an integer.
example:
Sys.Browser(ObjectIdentifier="iexplore", BrowserIndex=1)
Hope this helps :-)
I have been working with QTP (UFT) for years and now I am slowly uncovering capabilities of TestComplete.
Descriptive programming (defining test objects via properties and corresponding values) was one of the first things I was interested in.
In QTP (UFT), syntax of descriptive programming looked like this:
Browser("prop1:=val1", "prop2:=val2")
... the same in testComplete:
Sys.Browser(prop1="val1", prop2=val2)
Note:
Please, notice that in case of val1 I used apostrophe ("val1"), while in case of val2 I did not. So in used syntax example above val1 is a String data type while val2 is an integer.
example:
Sys.Browser(ObjectIdentifier="iexplore", BrowserIndex=1)
Hope this helps :-)
Related Content
- 5 months ago
- 14 years ago
Recent Discussions
- 4 days ago
- 4 days ago
- 7 days ago