if then statement conditions
I am in the middle of a free trial period and have a question about the IF THEN statement for keyword scripts. I would like my code expression to essentially say this:
If ProjectSuite.Path "contains" the string "xyz" THEN
<do something>
but when i click on the conditions ellipses in the IF THEN specify conditions box all I see available are
equals
does not equal
greater than
greater than or equal to
less than
less than or equal to
is there no way to have the expression use the string function "contains" or the contains operator "~". My base scripting language is javascript. this is my first posted question. let me know if I need to provide any additional information to expedite this. thanks
Try this for your "contains".
Use Code Expression for Value 1 and enter the aqString.Find there. -1 for value 2 means the value was not found, so you want Does not equal.
https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqstring/find.html
If it was me, I'd create a new project suite with the new name.