suzanne_e_saund
11 years agoOccasional Contributor
How I use aliases in jscript has changed
I'm currently using JScript to write all of my object definitions. I was able to write my them as in the following example:
var EditIcon = Aliases.browser.pageTest3.Frame("body").Frame("rightview").Form("Form1").Table("Table1").Cell(1,0) and so on.
I do not wish to map every field because as I was told "TestComplete cannot handle the system being so dynamic". When I used Keyword Tests, the more fields that are mapped the more TestComplete screws up my tests. It no longer sees the fields and I have to re-map everything...very frustrating. This caused me to have to start over with a new project, this time using JScript.
Ever since I had to create a couple of Object Checkpoints in JScript, it seems I can't write my code as above. Now I have to write it as Aliases.browser.pageTest3.frameBody.frameRightview.formForm1 and so on. If the fields are not mapped, TestComplete cannot find them.
Could creating those Object Checkpoints have caused this problem? If so, how do I get back to the way I was writing my code before...short of starting everything all over again in a brand new project...which is unacceptable. I'm tired of restarting projects.
var EditIcon = Aliases.browser.pageTest3.Frame("body").Frame("rightview").Form("Form1").Table("Table1").Cell(1,0) and so on.
I do not wish to map every field because as I was told "TestComplete cannot handle the system being so dynamic". When I used Keyword Tests, the more fields that are mapped the more TestComplete screws up my tests. It no longer sees the fields and I have to re-map everything...very frustrating. This caused me to have to start over with a new project, this time using JScript.
Ever since I had to create a couple of Object Checkpoints in JScript, it seems I can't write my code as above. Now I have to write it as Aliases.browser.pageTest3.frameBody.frameRightview.formForm1 and so on. If the fields are not mapped, TestComplete cannot find them.
Could creating those Object Checkpoints have caused this problem? If so, how do I get back to the way I was writing my code before...short of starting everything all over again in a brand new project...which is unacceptable. I'm tired of restarting projects.