Contributions
How to write virt script to take a particular operation based on request path
Hi, I have three operations in VIRT,i.e 1.search for match 2.search for match with Govt-ID 3. Search for match with Gender for the 1st operation i.e "search for match", below is the request that has to be taken: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <ns1:msgHeader xmlns:ns1="http://allstate.com/xml/standard/soapHeader/v1"> <ns1:msgId xmlns:ns1="http://allstate.com/xml/standard/soapHeader/v1">0AC50CA3-DC61-4DFC-0151-CD147C9B4339</ns1:msgId> <ns1:msgDateTime xmlns:ns1="http://allstate.com/xml/standard/soapHeader/v1">2015-12-29T03:40:30</ns1:msgDateTime> <ns1:sendingSystemCd xmlns:ns1="http://allstate.com/xml/standard/soapHeader/v1">1016</ns1:sendingSystemCd> <ns1:sendingSystemInfo xmlns:ns1="http://allstate.com/xml/standard/soapHeader/v1"> <ns1:systemId>lxv2044</ns1:systemId> </ns1:sendingSystemInfo> <ns1:versionExt xmlns:ns1="http://allstate.com/xml/standard/soapHeader/v1"> <ns1:userRoleCd>11</ns1:userRoleCd> <ns1:userId>a199832</ns1:userId> </ns1:versionExt> </ns1:msgHeader> </soapenv:Header> <soapenv:Body> <p812:SearchPartyByNameAndAddressForMatchRequest xmlns:p829="http://allstate.com/customerManagement/partyACORDProperties/v2" xmlns:p812="http://allstate.com/enterprise/customerManagement/searchParty"> <p829:TXLife> <p829:TXLifeRequest xmlns:p558="http://allstate.com/customerManagement/partyProperties/v2"> <p829:TransRefGUID>0AC50CA3-DC61-4DFC-0151-CD147C9B4338</p829:TransRefGUID> <p829:TransType tc="301">301</p829:TransType> <p829:TransSubType tc="29105">29105</p829:TransSubType> <p829:InquiryView> <p829:ObjectTypeInfo> <p829:ActualObjectType tc="0002">0002</p829:ActualObjectType> </p829:ObjectTypeInfo> <p829:ObjectTypeInfo> <p829:ActualObjectType tc="0018">0018</p829:ActualObjectType> </p829:ObjectTypeInfo> <p829:ObjectTypeInfo> <p829:ActualObjectType tc="0003">0003</p829:ActualObjectType> </p829:ObjectTypeInfo> <p829:ObjectTypeInfo> <p829:ActualObjectType tc="0115">0115</p829:ActualObjectType> </p829:ObjectTypeInfo> <p829:ObjectTypeInfo> <p829:ActualObjectType tc="0055">0055</p829:ActualObjectType> </p829:ObjectTypeInfo> <p829:ObjectTypeInfo> <p829:ActualObjectType tc="0243">0243</p829:ActualObjectType> </p829:ObjectTypeInfo> <p829:InquiryViewCode tc="0030">0030</p829:InquiryViewCode> </p829:InquiryView> <p829:MaxRecords>300</p829:MaxRecords> <p829:OLifE> <p829:Party id="P_201512241"> <p829:Person> <p829:BirthDate>1962-03-02</p829:BirthDate> </p829:Person> <p829:Address> <p829:Line1>DEEA90AICNB001</p829:Line1> <p829:City>Dover</p829:City> <p829:AddressState>DE</p829:AddressState> <p829:Zip>19901</p829:Zip> </p829:Address> <p829:PriorName> <p829:FirstName>WILLIAM</p829:FirstName> <p829:LastName>PHILLIPS</p829:LastName> </p829:PriorName> <p558:SourceTypeCode tc="011">011</p558:SourceTypeCode> </p829:Party> </p829:OLifE> </p829:TXLifeRequest> </p829:TXLife> </p812:SearchPartyByNameAndAddressForMatchRequest> </soapenv:Body> </soapenv:Envelope> --->for 2nd operation i.e "search for match with Govt-ID" , the virt has to take the same request but with govt id tag added to request body: <p829:GovtID/> -->for 3rd operationi.e "search for match with Gender", Virt has to take the same request but with govt id and Gender tag added to request body: <p829:GovtID/> <p829:Gender/> for 1st operation i have used xpath dispatch style, but when i use xpath dispatch style for 2nd operation it is not taking the request of2nd operationinstead it isthrowing default response of 1st operation when the request of 2nd operation is triggered. could someone please help me on this and let me know what method can be done for the 3 operations?1.1KViews0likes0CommentsValidating unique tag values in requests
how do we validate if we have more than 3 unique values in a request and throw the corresponding response. example: suppose there are 3tags in the request: address,city,state,that has unique values so which dispatch style has to be used in service V?7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes1CommentQuery on subtracting number of days from date passed
How do I use magic strings in Ready API as like in Devtest? for ex: Below format is used to subtract 32 days from the date passed i.e. 2012-05-25 {{=doDateDeltaFromCurrent("yyyy-MM-dd","-32D");/*2012-05-25*/}} So my query is how do we do this in Ready API? Could someone please help on this?7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes1Comment