Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

How to compare two strings in TestComplete?

Open 1 Answers 18 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 (552 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.