Forum Discussion
abhishekc
13 years agoOccasional Contributor
Hi louis,
Here is an bit of script as an example-
If Regions.frmShowMessages1.Check(Regions.CreateRegionInfo(Aliases.eCC.frmShowMessages, 160, 41, 523, 54, true)) Or Regions.frmShowMessages2.Check(Regions.CreateRegionInfo(Aliases.eCC.frmShowMessages, 158, 37, 527, 57, true)) then
'some code'
end if
So here is two checkpoints so test complete checks for one and if it does't found immediatly then wait for next checkpoint and waits some more if it does not found immediatly.So it tooks too much time for executing.Even when i know that object comes immediatly so there is no reason to wait for it.
Here is an bit of script as an example-
If Regions.frmShowMessages1.Check(Regions.CreateRegionInfo(Aliases.eCC.frmShowMessages, 160, 41, 523, 54, true)) Or Regions.frmShowMessages2.Check(Regions.CreateRegionInfo(Aliases.eCC.frmShowMessages, 158, 37, 527, 57, true)) then
'some code'
end if
So here is two checkpoints so test complete checks for one and if it does't found immediatly then wait for next checkpoint and waits some more if it does not found immediatly.So it tooks too much time for executing.Even when i know that object comes immediatly so there is no reason to wait for it.