Forum Discussion
prakashk
13 years agoOccasional Contributor
Hi,
Yes, we can do descriptive programming in Test Complete Tool.
Here are the example for Gmail Login Page:
1st Step: Click on Map Object icon -> Drag the Target Point to the Object -> Save a whole Page Object in Name Mapping.
Ex: Map Name: pageGmailLogin
After Saving the Page Object then Name Mapping shows Tree Model. like--> sys-IEXPLORE-pageGmailLogin
Sub GmailLogin()
Set iexplore = Aliases.IEXPLORE
Set Page = iexplore.pageGmailLogin
Page.Wait
' Enter User Name
NameProperty = Array("ObjectType", "ObjectIdentifier")
ValueProperty = Array("Textbox", "Email")
UserName = Page.FindAllChildren(NameProperty, ValueProperty, 7)
UserName (0).SetText ("prakash")
End Sub
'For Finding Objects, we need to click on object spy, and pass the Unique Name Properties and Value Properties
'7 = Depth of the User Name
Hope this will needful for you.
Thanks,
Prakash
prakashraju06@gmail.com
Yes, we can do descriptive programming in Test Complete Tool.
Here are the example for Gmail Login Page:
1st Step: Click on Map Object icon -> Drag the Target Point to the Object -> Save a whole Page Object in Name Mapping.
Ex: Map Name: pageGmailLogin
After Saving the Page Object then Name Mapping shows Tree Model. like--> sys-IEXPLORE-pageGmailLogin
Sub GmailLogin()
Set iexplore = Aliases.IEXPLORE
Set Page = iexplore.pageGmailLogin
Page.Wait
' Enter User Name
NameProperty = Array("ObjectType", "ObjectIdentifier")
ValueProperty = Array("Textbox", "Email")
UserName = Page.FindAllChildren(NameProperty, ValueProperty, 7)
UserName (0).SetText ("prakash")
End Sub
'For Finding Objects, we need to click on object spy, and pass the Unique Name Properties and Value Properties
'7 = Depth of the User Name
Hope this will needful for you.
Thanks,
Prakash
prakashraju06@gmail.com
Related Content
- 4 months ago
- 14 years ago
Recent Discussions
- 13 hours ago
- 2 days ago