How To Shorten the Length of a String Parameter
Hi, Everybody!...
I wish to load test a SOAP web service. One of the parameters needs to be unique for each invocation. I am presently using ${=java.util.UUID.randomUUID()}. Lamentably, I am getting the following error: String '<some UUID string>' is too long (length: 36, maximum allowed: 35).
How can I shorten the length of the parameter?
Please advise.
The problem is TestComplete looks for the exist property of Page("about:blank") it's there so you get log 1
But when TC looks for exist property of Page("alternative page") , it is looking a property in non existant object. so it crash.
To avode that you can use "WaitAliasChild" Method this will waite for defined time and then
If the specified object does not exist, the method returns a stub object with "exist =False"
you can arrange your function like below
function Test(){ if(Sys.Browser("iexplore").WaitAliasChild("alternative page", 10000).Exists ) { Log.Message("1"); } else{ Log.Message("2"); } }
However you may have to map the "alternative page" in name mappings.
If calling URL you can use TestObj.WaitPage(URL, Timeout) method.