Forum Discussion
tristaanogre
13 years agoEsteemed Contributor
Actually, they are not that much different. I suspect that QTP is utlizing their object repository behind the scenes. You can achieve the same thing with TestComplete with some modification of the aliases. Done properly, you could end up with code, in TC, that looks like this:
It's a matter of telescoping down the hierarchy of your aliases and just calling the values directly rather than assigning them as variables.
TestedApps.Page1.Run
Aliases.IEXPLORE.ToUrl("http://192.168.0.218:8080/jmapadmin/login.jsp?error=not_logged_in")
Call Aliases.IEXPLORE.pageJmapAdmin.textboxUsername.SetText("administrator")
Call Aliases.IEXPLORE.pageJmapAdmin.textnodeLogin.Click(10, 11)
Call Aliases.IEXPLORE.pageJmapAdmin1.linkTools.Click
Call Aliases.IEXPLORE.pageJmapAdmin1.textnodeDeployment.Click(82,9)
Call Aliases.IEXPLORE.pageJmapAdmin.linkLogout.Click
Call Aliases.IEXPLORE.pageJmapAdmin.Wait
Call Aliases.IEXPLORE.IEFrame.Close
It's a matter of telescoping down the hierarchy of your aliases and just calling the values directly rather than assigning them as variables.
Related Content
- 2 years ago
- 11 months ago
- 2 years ago
Recent Discussions
- 60 minutes ago
- 6 hours ago