Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Regular Expression for sending conditional response..

Senthil
Senthil Posts: 27
edited October 2019 in Virtualize

Hi Team,

Below is the incoming request, I need to identify the postcode number and send the valid response.




lt;PostCode>2009</PostCode> <Country>AU</Country> <AddressSince>2017-09-01</AddressSince> </Address> </AddressList> <ContactDetail> <TelephoneNumber></TelephoneNumber> <MobileNumber>0413278999</MobileNumber> <FacsimileNumber></FacsimileNumber> <EmailAddress>test@def.com</EmailAddress> &


I tried with the below format, but it did not work. Not sure how to add regular expression to my condition. My response is based on the postcode number. Can you please help me here.

contains("amp;gt;5999",(/:Envelope/:Body/:InstinctFraudCheck_XMLString/:inputXMLString/text()))

Thanks
Senthil kumar. M

Comments