Forum Discussion
Hello Joachim,
you could for example get the name of the computer where test is being run with Sys.HostName.
Then you could use the condition to enable a checkpoint or not:
var machineName = Sys.HostName; if(machineName != "myMachine") { Regions.myRegion.Check(Regions.myRegion(Aliases.browser.myPage, 111, 222, 333,444, false)); }
You could store the Sys.HostName in your Project variables somewhere at test start and then use that as well.
Hope this helps.
Marin
Hey Marin,
the pc name is no problem, it is stored in a variable.
The problem is, that the region checkpoints are called from keyword tests.
So your solution will not be possible.
This has to be done somehow in the event handler (which I already use to do different stuff), but I do not really have an idea how to implement this.
The main problem is, that TestComplete tries 4 seconds (auto-wait timeout) if the region is correct.
Only Afterwards I can do some if... else... stuff via Eventhandler.
Is there any possiblity to make TestComplete completely skip the region checkpoints called from keyword tests? (without setting auto-wait timeout to 0s)
Best regards,
Joachim
- HKosova10 years agoSmartBear Alumni (Retired)
jsc wrote:
the pc name is no problem, it is stored in a variable.
The problem is, that the region checkpoints are called from keyword tests.
Keyword tests have If...Then switches to run operations conditionally:
- jsc10 years agoRegular Contributor
Hi Helen,
this is not an option as I would have to insert this at every region checkpoint. (~900 checkpoints)
I need a solution, that solves this problem generally. Most probably this is not possible as I do not have an idea how to solve this...
Best regards,
Joachim
Related Content
Recent Discussions
- 22 hours agoMW_Didata