How to compare two strings in TestComplete?

Open 1 Answers 11 Views
0 1
In TestComplete, how do I compare two strings? And if my condition is satisfied, I want to perform next step.

1 Answer


If you just want to check that the string is not empty, you can use it as below.

if YourStringVariable Then

 ' Your statements here

  end If

If you want to compare two string and proceed then

if YourStringVariable = "YourStringValue" Then

'  Your statements here

 end If

answered by (461 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

We have resolved 1.2k+ Software Testing queries!

Top Contributors