Forum Discussion
baxatob
10 years agoCommunity Hero
Hi,
As about me, I am using regular expressions to solve such kind of tasks.
The general idea is to create a pattern, which will cover all possible valid data for you.
Something like:
pattern = "transid=([0-9]+), message=(Unable to Login|Able to login), sessionid=[-0-9]+, success=(true|false), servletver=(\d\.\d\.\d\.\d), interfacever=(\d\.\d\.\d\.\d)"
Then you need to check whether your actual value matches the pattern.
More about regex support in TestComplete: https://support.smartbear.com/viewarticle/75798/