Can any one let me know how to use ensure result contain expression \assertion
In my response I am having string as "Took 140 seconds to run" number will change for each run so I have marked \d+
is it correct ?
Or expression I have to right something like ^Took \d+ seconds to run$, but this one is failing even my response have that string.
Both the expression are working in helper
My only concern is which is correct 1 or 2 screen shot, When I tried to applied the 1st one in assertion itss getting failed but second one is working for me but not sure whether is correct or not.
anyone can explain me this with example, that will help a lot.