Assertions with XPATH
Sorry if this is in wrong area, but I am new to SOAP UI os. I am currently trying to achieve a simple test case where if I call a service with no parameters, the response should not provide me any information back. Super simple. With that, I am trying to get an understanding of xpath assertions. I used xpath in selenium tests. But I do not understand what I am doing wrong on the Xpath match configuration screen. I see that when IclickDeclare, it provides me namespaces in XPath Expression box. It provides this: declare namespace soap='http://www.w3.org/2003/05/soap-envelope'; declare namespace ns1='https://ForceDevelopmentServices.ServiceCode.DCPDS.EducationData.DataContracts'; declare namespace ns2='http://schemas.microsoft.com/2003/10/Serialization/'; declare namespace ns3='http://tempuri.org/'; declare namespace ns4='https://USAF.A1.Personnel.ForceDevelopment.DAL.Services.Base'; Under Assertions, I used a online xpath tester http://www.freeformatter.com/xpath-tester.html#ad-output to get this xpath expression: //for1:SSAN/text() I would expect to place a ? in the expected results box, but when I click on Select from current I get an error message saying "Missing content to select from". I then tried to click on the 'Test' to see what happens, I get another error message saying "Missing Content" I looked over Query/Match, I did not get much from this view since it does not seem to do anything when I put in xpath query or Matching Value Any assistance would be greatly appreciated. Thanks in advance. alex <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:for="https://ForceDevelopmentServices.ServiceCode.DCPDS.EducationData.Interfaces" xmlns:for1="https://ForceDevelopmentServices.ServiceCode.DCPDS.EducationData.DataContracts"> <soap:Header/> <soap:Body> <for:GetAcquisitionsCertificationsBySSANResponse> <!--Optional:--> <for:GetAcquisitionsCertificationsBySSANResult> <!--Zero or more repetitions:--> <for1:DCPDSAcquisitionsCertification> <!--Optional:--> <for1:SSAN>?</for1:SSAN> <!--Optional:--> <for1:ACQ_DT_CAREER_LVL_ACHVD>?</for1:ACQ_DT_CAREER_LVL_ACHVD> <!--Optional:--> <for1:ACQ_CAREER_LEVEL_ACHVD_DESC>?</for1:ACQ_CAREER_LEVEL_ACHVD_DESC> <!--Optional:--> <for1:ACQ_CAREER_LVL_APPR_AUTH>?</for1:ACQ_CAREER_LVL_APPR_AUTH> <!--Optional:--> <for1:ACQ_CAREER_LVL_APPR_AUTH_DESC>?</for1:ACQ_CAREER_LVL_APPR_AUTH_DESC> <!--Optional:--> <for1:ACQ_CERT_CAREER_FIELD>?</for1:ACQ_CERT_CAREER_FIELD> <!--Optional:--> <for1:ACQ_CERT_CAREER_FIELD_DESC>?</for1:ACQ_CERT_CAREER_FIELD_DESC> </for1:DCPDSAcquisitionsCertification> </for:GetAcquisitionsCertificationsBySSANResult> </for:GetAcquisitionsCertificationsBySSANResponse> </soap:Body> </soap:Envelope>3.8KViews0likes4CommentsXpath working in online Xpath tester tools but not working in SoapUI
Dear Community Dwellers, I am trying to write an xpath in open sourceSOAPUI version for the below xml. <Group16DetailElectricity> <Block16DetailElectricity title="Details" energyText="Energie type:" energyType="Elektriciteit" typeProductText="Type product:" typeProduct="Elektriciteit vast TK1" eanCodeText="EAN-code:" eanCode="5400000" distributionText="asdasd:" distribution="" contactNumberText="Gebruikt" periodText="Periode:" periodFrom="2015-01-01" periodTill="20222-09-20" averagePriceText="asdsa:" averagePrice="0.0494" averagePriceUoM="€/kWh" totalDescriptionText="Totaal afrekening elektriciteit:" totalExclVATText="Totaal" totalExclVATText2="(excl. BTW)" totalExclVAT="329.28" totalInclVATText="Totaal" totalInclVATText2="(incl. BTW)" totalInclVAT="398.43"> <Product typeProduct="Elektriciteit vast TK1" periodFrom="20222-01-01" periodTill="2222-ss-20"/> <ConsumptionTable> <ConsumptionLine consumptionType="Dag1" consumptionValue="1233" consumptionUoM="kWh"/> <ConsumptionLine consumptionType="Dag2" consumptionValue="2222" consumptionUoM="kWh"/> <ConsumptionLine consumptionType="Dag3" consumptionValue="3213" consumptionUoM="kWh"/> <CosinusPhi consumptionType="Dag1" consumptionValue="1233"/> </ConsumptionTable> <TotalEnergyEssentTable tableDescription="Energiekost" periodFrom="2017-01-01" periodTill="2017-09-20" volumeText="Volume" unitPriceText="Eenheidsprijs" amountExclVATText="Excl. BTW" vatPercentText="% BTW" totalTable="329.28"> <TableLine tableLineDescription="Dag1" volume="1233.000" volumeUoM="kWh" unitPrice="0.04015" unitPriceUoM="€/kWh" amountExclVAT="49.50" vatPercent="21.00"/> <TableLine tableLineDescription="Dag2" volume="3213.000" volumeUoM="kWh" unitPrice="0.04533" unitPriceUoM="€/kWh" amountExclVAT="145.63" vatPercent="21.00"/> <TableLine tableLineDescription="Dag3" volume="1.000" volumeUoM="jaar" unitPrice="134.15000" unitPriceUoM="€/jaar" amountExclVAT="134.15" vatPercent="21.00"/> </TotalEnergyEssentTable> </Block16DetailElectricity> </Group16DetailElectricity> The xpath I wrote is working fine in all the online websites for xpath testing. Here is the piece if the code: Why i need Xpath? I want to extract the value of attribute - amountExclVAT based on the other attribute value (Dag1/Dag2/Dag3). The xpath i wrote is - //Block16DetailElectricity/TotalEnergyEssentTable/TableLine[@tableLineDescription='Dag1']/@amountExclVAT which doesnt work in SOAP UI and gives null response. Though the below xpath (//@amountExclVAT)[1/2/3] works fine and i can see the result. But the issue with working Xpath is that the position of the Tableline can change with every new request and we want to map the values specific to the TableLineDecsription with the previous XML. So the working soulution is not handy in this solution. My question is why my Xpath is not working in SoapUI and giving null error. Any help is appreciated. Thanks, AnkushSolved2.5KViews0likes5CommentsXpath Get last matching result
I have an xpath expression like this: //td[@div='id']/nobr[text()='TotalAR:'] Upon checking on the inspector element there are multiple matches, both on/td[@div='id'] andnobr[text()='TotalAR:']. I only need to get the last result as im sure thats what i need. Basically im trying to do something like this: //td[@div='id'][last()]/nobr[text()='TotalAR:'] how can i get the last result ?Solved1.5KViews0likes1CommentApostrophe in XPath
Im using a "FindChildByXPath" where the expression have an apostrophe object.FindChildByXPath("//div[text()='XY'Z']"); I tried the solution in previous forum -https://community.smartbear.com/t5/TestComplete-Functional-Web/Using-FindChildByXPath-with-apostrophe-in-XPath/td-p/116018 Unfortunately that doesnt work.Solved1.5KViews0likes2CommentsNPE in xpath match when using wildcards
Xpath math throws null pointer exception when test run multiple times. Note: it works the first time. We have many tests with wildcard match and only 2 or 3 have issues. Here is response xml: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:findCustomerAccountResponse xmlns:ns2="http://ws.api.meveo.org/"> <return> <actionStatus> <status>SUCCESS</status> </actionStatus> <customerAccount code="WS_FULL_104_PRE46_Payment"> <created>2017-10-20T12:05:40.623-03:00</created> <customer>WS_BASE_CUST</customer> <currency>EUR</currency> <language>FRA</language> <status>ACTIVE</status> <dateStatus>2017-10-20T12:05:40.621-03:00</dateStatus> <dateDunningLevel>2017-10-20T12:05:40.621-03:00</dateDunningLevel> <dunningLevel>R0</dunningLevel> <balance>0</balance> <totalInvoiceBalance>0</totalInvoiceBalance> <paymentMethods> <methodOfPayment paymentMethodType="DIRECTDEBIT"> <id>83</id> <disabled>false</disabled> <preferred>false</preferred> <customerAccountCode>WS_FULL_104_PRE46_Payment</customerAccountCode> <bankCoordinates> <bankCode>12456</bankCode> <branchCode>23456</branchCode> <accountNumber>34589324756</accountNumber> <key>45</key> <iban>1212</iban> <bic>67789456</bic> <accountOwner>Me and co</accountOwner> <bankName>Some bank</bankName> <bankId>78946</bankId> <issuerNumber>46789</issuerNumber> <issuerName>Some issuer</issuerName> <ics>5587</ics> </bankCoordinates> </methodOfPayment> <methodOfPayment paymentMethodType="DIRECTDEBIT"> <id>84</id> <disabled>false</disabled> <preferred>false</preferred> <customerAccountCode>WS_FULL_104_PRE46_Payment</customerAccountCode> <bankCoordinates> <bankCode>33333</bankCode> <branchCode>23456</branchCode> <accountNumber>34589324756</accountNumber> <key>45</key> <iban>1313</iban> <bic>67789456</bic> <accountOwner>Me and co</accountOwner> <bankName>Some bank</bankName> <bankId>78946</bankId> <issuerNumber>46789</issuerNumber> <issuerName>Some issuer</issuerName> <ics>5587</ics> </bankCoordinates> </methodOfPayment> <methodOfPayment paymentMethodType="WIRETRANSFER"> <id>82</id> <disabled>false</disabled> <preferred>true</preferred> <customerAccountCode>WS_FULL_104_PRE46_Payment</customerAccountCode> </methodOfPayment> </paymentMethods> <excludedFromPayment>false</excludedFromPayment> <paymentMethod>DIRECTDEBIT</paymentMethod> <billingAccounts> <billingAccount code="WS_FULL_104_PRE46_Payment-3"> <created>2017-10-20T12:05:41.721-03:00</created> <customerAccount>WS_FULL_104_PRE46_Payment</customerAccount> <billingCycle>CYC_INV_MT_1</billingCycle> <country>US</country> <language>ENG</language> <nextInvoiceDate>2016-04-01T00:00:00-03:00</nextInvoiceDate> <subscriptionDate>2016-01-01T00:00:00-03:00</subscriptionDate> <electronicBilling>false</electronicBilling> <status>ACTIVE</status> <statusDate>2017-10-20T12:05:41.721-03:00</statusDate> <paymentMethod>WIRETRANSFER</paymentMethod> <userAccounts/> </billingAccount> <billingAccount code="WS_FULL_104_PRE46_Payment-4"> <created>2017-10-20T12:05:42.195-03:00</created> <customerAccount>WS_FULL_104_PRE46_Payment</customerAccount> <billingCycle>CYC_INV_MT_1</billingCycle> <country>US</country> <language>ENG</language> <nextInvoiceDate>2016-04-01T00:00:00-03:00</nextInvoiceDate> <subscriptionDate>2016-01-01T00:00:00-03:00</subscriptionDate> <electronicBilling>false</electronicBilling> <status>ACTIVE</status> <statusDate>2017-10-20T12:05:42.194-03:00</statusDate> <paymentMethod>WIRETRANSFER</paymentMethod> <userAccounts/> </billingAccount> <billingAccount code="WS_FULL_104_PRE46_Payment-5"> <created>2017-10-20T12:05:42.666-03:00</created> <customerAccount>WS_FULL_104_PRE46_Payment</customerAccount> <billingCycle>CYC_INV_MT_1</billingCycle> <country>US</country> <language>ENG</language> <nextInvoiceDate>2016-04-01T00:00:00-03:00</nextInvoiceDate> <subscriptionDate>2016-01-01T00:00:00-03:00</subscriptionDate> <electronicBilling>false</electronicBilling> <status>ACTIVE</status> <statusDate>2017-10-20T12:05:42.666-03:00</statusDate> <paymentMethod>WIRETRANSFER</paymentMethod> <userAccounts/> </billingAccount> </billingAccounts> </customerAccount> </return> </ns2:findCustomerAccountResponse> </soap:Body> </soap:Envelope> Here is http log: Fri Oct 20 12:12:42 ART 2017:DEBUG:>> "POST /opencell/AccountWs HTTP/1.1[\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> "Content-Type: text/xml;charset=UTF-8[\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> "SOAPAction: ""[\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> "Authorization: Basic b3BlbmNlbGwuYWRtaW46b3BlbmNlbGwuYWRtaW4=[\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> "Content-Length: 338[\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> "Host: localhost:8080[\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> "Connection: Keep-Alive[\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> "[\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> "[\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> " [\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> " [\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> " [\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> " WS_FULL_104_PRE46_Payment[\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> " [\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> " [\r][\n]" Fri Oct 20 12:12:42 ART 2017:DEBUG:>> "" Fri Oct 20 12:12:44 ART 2017:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]" Fri Oct 20 12:12:44 ART 2017:DEBUG:<< "Expires: 0[\r][\n]" Fri Oct 20 12:12:44 ART 2017:DEBUG:<< "Cache-Control: no-cache, no-store, must-revalidate[\r][\n]" Fri Oct 20 12:12:44 ART 2017:DEBUG:<< "X-Powered-By: Undertow/1[\r][\n]" Fri Oct 20 12:12:44 ART 2017:DEBUG:<< "Server: WildFly/10[\r][\n]" Fri Oct 20 12:12:44 ART 2017:DEBUG:<< "Pragma: no-cache[\r][\n]" Fri Oct 20 12:12:44 ART 2017:DEBUG:<< "Date: Fri, 20 Oct 2017 15:12:44 GMT[\r][\n]" Fri Oct 20 12:12:44 ART 2017:DEBUG:<< "Connection: keep-alive[\r][\n]" Fri Oct 20 12:12:44 ART 2017:DEBUG:<< "Content-Type: text/xml;charset=UTF-8[\r][\n]" Fri Oct 20 12:12:44 ART 2017:DEBUG:<< "Content-Length: 3879[\r][\n]" Fri Oct 20 12:12:44 ART 2017:DEBUG:<< "[\r][\n]" Fri Oct 20 12:12:44 ART 2017:DEBUG:<< "SUCCESS2017-10-20T12:05:40.623-03:00WS_BASE_CUSTEURFRAACTIVE2017-10-20T12:05:40.621-03:002017-10-20T12:05:40.621-03:00R00083falsefalseWS_FULL_104_PRE46_Payment12456234563458932475645121267789456Me and coSome bank7894646789Some issuer558784falsefalseWS_FULL_104_PRE46_Payment33333234563458932475645131367789456Me and coSome bank7894646789Some issuer558782falsetrueWS_FULL_104_PRE46_PaymentfalseDIRECTDEBIT2017-10-20T12:05:41.721-03:00WS_FULL_104_PRE46_PaymentCYC_INV_MT_1USENG2016-04-01T00:00:00-03:002016-01-01T00:00:00-03:00falseACTIVE2017-10-20T12:05:41.721-03:00WIRETRANSFER<billi" <li="">Fri Oct 20 12:12:44 ART 2017:DEBUG:<< "ngAccount code="WS_FULL_104_PRE46_Payment-4">2017-10-20T12:05:42.195-03:00WS_FULL_104_PRE46_PaymentCYC_INV_MT_1USENG2016-04-01T00:00:00-03:002016-01-01T00:00:00-03:00falseACTIVE2017-10-20T12:05:42.194-03:00WIRETRANSFER2017-10-20T12:05:42.666-03:00WS_FULL_104_PRE46_PaymentCYC_INV_MT_1USENG2016-04-01T00:00:00-03:002016-01-01T00:00:00-03:00falseACTIVE2017-10-20T12:05:42.666-03:00WIRETRANSFER" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> "POST /opencell/AccountWs HTTP/1.1[\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> "Content-Type: text/xml;charset=UTF-8[\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> "SOAPAction: ""[\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> "Authorization: Basic b3BlbmNlbGwuYWRtaW46b3BlbmNlbGwuYWRtaW4=[\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> "Content-Length: 338[\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> "Host: localhost:8080[\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> "Connection: Keep-Alive[\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> "[\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> "[\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> " [\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> " [\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> " [\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> " WS_FULL_104_PRE46_Payment[\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> " [\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> " [\r][\n]" Fri Oct 20 12:27:22 ART 2017:DEBUG:>> "" Fri Oct 20 12:27:23 ART 2017:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]" Fri Oct 20 12:27:23 ART 2017:DEBUG:<< "Expires: 0[\r][\n]" Fri Oct 20 12:27:23 ART 2017:DEBUG:<< "Cache-Control: no-cache, no-store, must-revalidate[\r][\n]" Fri Oct 20 12:27:23 ART 2017:DEBUG:<< "X-Powered-By: Undertow/1[\r][\n]" Fri Oct 20 12:27:23 ART 2017:DEBUG:<< "Server: WildFly/10[\r][\n]" Fri Oct 20 12:27:23 ART 2017:DEBUG:<< "Pragma: no-cache[\r][\n]" Fri Oct 20 12:27:23 ART 2017:DEBUG:<< "Date: Fri, 20 Oct 2017 15:27:23 GMT[\r][\n]" Fri Oct 20 12:27:23 ART 2017:DEBUG:<< "Connection: keep-alive[\r][\n]" Fri Oct 20 12:27:23 ART 2017:DEBUG:<< "Content-Type: text/xml;charset=UTF-8[\r][\n]" Fri Oct 20 12:27:23 ART 2017:DEBUG:<< "Content-Length: 3879[\r][\n]" Fri Oct 20 12:27:23 ART 2017:DEBUG:<< "[\r][\n]" Fri Oct 20 12:27:23 ART 2017:DEBUG:<< "SUCCESS2017-10-20T12:05:40.623-03:00WS_BASE_CUSTEURFRAACTIVE2017-10-20T12:05:40.621-03:002017-10-20T12:05:40.621-03:00R00083falsefalseWS_FULL_104_PRE46_Payment12456234563458932475645121267789456Me and coSome bank7894646789Some issuer558784falsefalseWS_FULL_104_PRE46_Payment33333234563458932475645131367789456Me and coSome bank7894646789Some issuer558782falsetrueWS_FULL_104_PRE46_PaymentfalseDIRECTDEBIT2017-10-20T12:05:41.721-03:00WS_FULL_104_PRE46_PaymentCYC_INV_MT_1USENG2016-04-01T00:00:00-03:002016-01-01T00:00:00-03:00falseACTIVE2017-10-20T12:05:41.721-03:00WIRETRANSFER<billi" <li="">Fri Oct 20 12:27:23 ART 2017:DEBUG:<< "ngAccount code="WS_FULL_104_PRE46_Payment-4">2017-10-20T12:05:42.195-03:00WS_FULL_104_PRE46_PaymentCYC_INV_MT_1USENG2016-04-01T00:00:00-03:002016-01-01T00:00:00-03:00falseACTIVE2017-10-20T12:05:42.194-03:00WIRETRANSFER2017-10-20T12:05:42.666-03:00WS_FULL_104_PRE46_PaymentCYC_INV_MT_1USENG2016-04-01T00:00:00-03:002016-01-01T00:00:00-03:00falseACTIVE2017-10-20T12:05:42.666-03:00WIRETRANSFER" Here is xpath being matched: //paymentMethods/methodOfPayment[bankCoordinates/iban="1313"] Expected result has checked "Allow wildcards" If we have in expected result this value, it will throw NPE: <methodOfPayment paymentMethodType="DIRECTDEBIT" xmlns:ns2="http://ws.api.meveo.org/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <id>*</id> <disabled>false</disabled> <preferred>false</preferred> <customerAccountCode>*</customerAccountCode> <bankCoordinates> <bankCode>33333</bankCode> <branchCode>23456</branchCode> <accountNumber>34589324756</accountNumber> <key>45</key> <iban>1313</iban> <bic>67789456</bic> <accountOwner>Me and co</accountOwner> <bankName>Some bank</bankName> <bankId>78946</bankId> <issuerNumber>46789</issuerNumber> <issuerName>Some issuer</issuerName> <ics>5587</ics> </bankCoordinates> </methodOfPayment> If I have this, it will match. Note that the only value changed is <customerAccountCode>*</customerAccountCode> to <customerAccountCode>WS_FULL_104_PRE46_Payment</customerAccountCode>: <methodOfPayment paymentMethodType="DIRECTDEBIT" xmlns:ns2="http://ws.api.meveo.org/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <id>*</id> <disabled>false</disabled> <preferred>false</preferred> <customerAccountCode>WS_FULL_104_PRE46_Payment</customerAccountCode> <bankCoordinates> <bankCode>33333</bankCode> <branchCode>23456</branchCode> <accountNumber>34589324756</accountNumber> <key>45</key> <iban>1313</iban> <bic>67789456</bic> <accountOwner>Me and co</accountOwner> <bankName>Some bank</bankName> <bankId>78946</bankId> <issuerNumber>46789</issuerNumber> <issuerName>Some issuer</issuerName> <ics>5587</ics> </bankCoordinates> </methodOfPayment> Error log is empty. Thanks, Andrius1.4KViews0likes1CommentUsing multiple * wildcard in an xpath assertion throws NPE
Hi, I'm currently creating an assertion for an xpath result that contain multiple dates. And so I have: <created>*</created> <updated>*</updated> <updater>opencell.admin</updater> Which fails, but: <created>*</created> <updated>2018-04-17T09:14:18.190+08:00</updated> <updater>opencell.admin</updater> Succeed. Error I got was: XPathContains assertion failed for path [//return[1]/xxx/yyy[@code="zzz"]] : NullPointerException:null Seems like multiple instance of * wildcard doesn't work? Is there a workaround?690Views0likes0Comments