ChristopheC
14 years agoContributor
Do While Loop
Hello,
I use TestComplete 8.70.727 with Vbscript and I have a
strange problem with a "Do While Loop".
The problem is using this :
A = False
B = 0
Do While ((A = False) Or (B < 5))
A = Regions.<Stores/Region>.Check(<object>)
B = B + 1
If (B = 5) Then
Log.Error("Check Timeout")
End If
Loop
I skirt the issue with :
Do While Not ((A = True) Or (B > 5))
A = Regions.<Stores/Region>.Check(<object>)
B = B + 1
If (B = 5) Then
Log.Error("Check Timeout")
End If
Loop
But I would like to understand where is the problem !
Best Regards
Christophe
I use TestComplete 8.70.727 with Vbscript and I have a
strange problem with a "Do While Loop".
The problem is using this :
A = False
B = 0
Do While ((A = False) Or (B < 5))
A = Regions.<Stores/Region>.Check(<object>)
B = B + 1
If (B = 5) Then
Log.Error("Check Timeout")
End If
Loop
I skirt the issue with :
Do While Not ((A = True) Or (B > 5))
A = Regions.<Stores/Region>.Check(<object>)
B = B + 1
If (B = 5) Then
Log.Error("Check Timeout")
End If
Loop
But I would like to understand where is the problem !
Best Regards
Christophe