Contains assertion with option "Use Token as regular expression" not working
I reported a similar case a while ago but never got a response there - so again:
The "Contains Assertion" with "Use token as regular expression" is not working!
E.g. I have a case where I need to assert that the response contains either:
<status>OK</status>
or
<status>WARNING</status>
Phrased as a regular expression I would describe this as:
<status>((OK)|(WARNING))</status>
... but if I enter that into the content field of a "Contains assertion" the assertion NEVER matches.
I also tried:
.*<status>((OK)|(WARNING))</status>.*
... but same result: no match. :-(
I verified that regexp with a tool (RegEx-Buddy) and that regexp *does* match the above strings.
So, what am I missing here? How can one specify a reg-exp that does match in a contains assertion?
Hi endorium,
The requirements for running SoapUI Pro (with Fixed license) and TestComplete tests from Jenkins are mutually exclusive, indeed. TestComplete requires the Jenkins service to run under the Local System account, and SoapUI Pro - under a user account that is a requirement of the licensing system and the Fixed license type.
You can overcome this conflict by using the Floating license type instead of Fixed. Once you have your SoapUI Pro Floating license you will need to:
1. Run the Jenkins service to run under the Local System account;
2. Add a build step that checks out the license before the test execution as it's described here: https://smartbear-cc.force.com/portal/KbArticleViewer?name=How-to-check-out-Ready-API-floating-license-automatically&sp=all
In this case, the license will be applied under the Local System account and TestRunner will be able to use it.
To learn more about Floating licenses please reach out to your Sales rep or submit a request here: https://smartbear.com/product/ready-api/demo-request/