We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
I post the solution found with the help of mikef , that works!
Using https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqstring/strmatches.html to compare the structure, using regex. For example :
inputString = "Result Id: n=3sdfsdf;i=9161634395asdf01"
returnValue = aqString.StrMatches("Result Id: n=.*;i=.*",inputString)
Log.Message(returnValue)
Is this what you are trying to validate? That both these conditions are true
I would do it in two separate checks and check that they are both true
aqString.Find(InputString, SubString, StartPosition, CaseSensitive)
something like
if
(
(aqString.Find("Result: Id: n=3;i=916169501","Id: n",7)) <> -1
and
(aqString.Find("Result: Id: n=3;i=916169501",";i=",10)) <> -1
)
then
do string ok stuff
else
do string not ok stuff