g_cause
10 years agoNew Contributor
Object not found errors - Non-standard URL's and TestComplete
The web application we are testing has not followed internet URL conventions and instead of using Query Parameters they are embedding their VersionNo, SessionId and Username in their URL i.e.
Aliases["browser"]["pageAppcontract70153GrantCause7"]["formForm1"]["tableContractexplorercontentPnlm"]["table"]["cellContractexplorercontentPnlma"]["textnodeNew"]
The SessionId is dynamic so the subsequent run shows:
Aliases["browser"]["pageAppcontract70153GrantCause8"]["formForm1"]["tableContractexplorercontentPnlm"]["table"]["cellContractexplorercontentPnlma"]["textnodeNew"]
As a result the test then fails saying Object not found.
Also if they change the version number on the next patch release it will fall over i.e.
Aliases["browser"]["pageAppcontract70154GrantCause8"]["formForm1"]["tableContractexplorercontentPnlm"]["table"]["cellContractexplorercontentPnlma"]["textnodeNew"]
We need a way of ignoring this via a wildcard or some other mechanism i.e.
Aliases["browser"]["pageAppcontract*"]["formForm1"]["tableContractexplorercontentPnlm"]["table"]["cellContractexplorercontentPnlma"]["textnodeNew"]
Any suggestions on how we get around this?
Aliases["browser"]["pageAppcontract70153GrantCause7"]["formForm1"]["tableContractexplorercontentPnlm"]["table"]["cellContractexplorercontentPnlma"]["textnodeNew"]
The SessionId is dynamic so the subsequent run shows:
Aliases["browser"]["pageAppcontract70153GrantCause8"]["formForm1"]["tableContractexplorercontentPnlm"]["table"]["cellContractexplorercontentPnlma"]["textnodeNew"]
As a result the test then fails saying Object not found.
Also if they change the version number on the next patch release it will fall over i.e.
Aliases["browser"]["pageAppcontract70154GrantCause8"]["formForm1"]["tableContractexplorercontentPnlm"]["table"]["cellContractexplorercontentPnlma"]["textnodeNew"]
We need a way of ignoring this via a wildcard or some other mechanism i.e.
Aliases["browser"]["pageAppcontract*"]["formForm1"]["tableContractexplorercontentPnlm"]["table"]["cellContractexplorercontentPnlma"]["textnodeNew"]
Any suggestions on how we get around this?