Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
314 views
by Expert (572 points)
In TestComplete, how do I compare two strings? And if my condition is satisfied, I want to perform next step.

1 Answer

0 like 0 dislike
by Expert (572 points)

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


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...