Note that there are some explanatory texts on larger screens.

plurals
  1. POLoadRunner xpath search in xml response
    primarykey
    data
    text
    <p>I need to pick up the value </p> <p>'myvalue'</p> <p>in this soap response:</p> <pre><code>&lt;/something&gt; &lt;id&gt;myvalue&lt;/id&gt; </code></pre> <p>Using LoadRunners lr_xml_get_values() function I want to get the value 'myvalue' from the response, and I thought this would work:</p> <pre><code>lr_xml_get_values("XML={response}", ValueParam=mv", "Query=//something/id/id", LAST); </code></pre> <p>But LoadRunner cannot find the value.</p> <p>I guess it has to do With the / in .</p> <p>So how do I specify (correctly) this xpath in LoadRunner?</p> <p>Here is the complete xml response</p> <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt; &lt;soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"&gt; &lt;wsa:Action&gt;http://gaylord.com/service/service/person/v1/hore/getmeinformationResponse&lt;/wsa:Action&gt; &lt;wsa:RelatesTo&gt;uuid:3de7a201-1544-4bfc-8445-c240353d6c38&lt;/wsa:RelatesTo&gt; &lt;/soapenv:Header&gt; &lt;soapenv:Body&gt; &lt;ns2:getmeinformationResponse xmlns:ns2="http://gaylord.com/service/service/person/v1/"&gt; &lt;response&gt; &lt;person xsi:type="ns4:Bruker" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns4="http://gaylord.com/service/service/person/v1/information"&gt; &lt;bankaccount endretAv="2701783" endringstidspunkt="2013-08-02T00:00:00.000+02:00" xsi:type="ns4:bankaccountswege"&gt; &lt;bankaccount&gt; &lt;bankaccountnummer&gt;7645786655&lt;/bankaccountnummer&gt; &lt;/bankaccount&gt; &lt;/bankaccount&gt; &lt;adress&gt; &lt;adresstome xsi:type="ns4:Gateadresse"&gt; &lt;count&gt;swe&lt;/count&gt; &lt;pust&gt;1361&lt;/pust&gt; &lt;fytti&gt;0219&lt;/fytti&gt; &lt;street&gt;roadtohell&lt;/street&gt; &lt;idiot&gt;92&lt;/idiot&gt; &lt;letter&gt;B&lt;/letter&gt; &lt;/adresstome&gt; &lt;/adress&gt; &lt;civil&gt; &lt;civil&gt;GIFT&lt;/civil&gt; &lt;/civil&gt; &lt;ghy endringstidspunkt="2002-05-22T00:00:00.000+02:00"&gt; &lt;land&gt;swe&lt;/land&gt; &lt;/ghy&gt; &lt;harFraRolleI&gt; &lt;harSammeBosted&gt;true&lt;/harSammeBosted&gt; &lt;tilRolle&gt;BARN&lt;/tilRolle&gt; &lt;tilPerson&gt; &lt;ident&gt; &lt;ident&gt;34785699875&lt;/ident&gt; &lt;type&gt;fnr&lt;/type&gt; &lt;/ident&gt; &lt;personnavn endretAv="AJOURHD" endringstidspunkt="2009-12-01T00:00:00.000+01:00"&gt; &lt;aftermath&gt;gaylord&lt;/aftermath&gt; &lt;forename&gt;miss&lt;/forename&gt; &lt;mid&gt;heys&lt;/mid&gt; &lt;sammensattNavn&gt;gaylord miss BRÅTEN&lt;/sammensattNavn&gt; &lt;/personnavn&gt; &lt;/tilPerson&gt; &lt;/harFraRolleI&gt; &lt;harFraRolleI&gt; &lt;harSammeBosted&gt;true&lt;/harSammeBosted&gt; &lt;tilRolle&gt;EKTE&lt;/tilRolle&gt; &lt;tilPerson&gt; &lt;ident&gt; &lt;ident&gt;34785699875&lt;/ident&gt; &lt;type&gt;fnr&lt;/type&gt; &lt;/ident&gt; &lt;personnavn endretAv="AJOURHD" endringstidspunkt="2011-08-25T00:00:00.000+02:00"&gt; &lt;aftermath&gt;gaylord&lt;/aftermath&gt; &lt;forename&gt;MARIANNE&lt;/forename&gt; &lt;mid&gt;heys&lt;/mid&gt; &lt;sammensattNavn&gt;gaylord MARIANNE BRÅTEN&lt;/sammensattNavn&gt; &lt;/personnavn&gt; &lt;/tilPerson&gt; &lt;/harFraRolleI&gt; &lt;harFraRolleI&gt; &lt;harSammeBosted&gt;false&lt;/harSammeBosted&gt; &lt;tilRolle&gt;FARA&lt;/tilRolle&gt; &lt;tilPerson&gt; &lt;ident&gt; &lt;ident&gt;34785699875&lt;/ident&gt; &lt;type&gt;fnr&lt;/type&gt; &lt;/ident&gt; &lt;personnavn endringstidspunkt="2002-05-22T00:00:00.000+02:00"&gt; &lt;aftermath&gt;gaylord&lt;/aftermath&gt; &lt;forename&gt;anton JÔRGEN&lt;/forename&gt; &lt;sammensattNavn&gt;gaylord anton JØRGEN&lt;/sammensattNavn&gt; &lt;/personnavn&gt; &lt;/tilPerson&gt; &lt;/harFraRolleI&gt; &lt;harFraRolleI&gt; &lt;harSammeBosted&gt;false&lt;/harSammeBosted&gt; &lt;tilRolle&gt;MORA&lt;/tilRolle&gt; &lt;tilPerson&gt; &lt;ident&gt; &lt;ident&gt;34785699875&lt;/ident&gt; &lt;type&gt;fnr&lt;/type&gt; &lt;/ident&gt; &lt;personnavn endringstidspunkt="2002-05-22T00:00:00.000+02:00"&gt; &lt;aftermath&gt;gorm&lt;/aftermath&gt; &lt;forename&gt;fru ELISABETH&lt;/forename&gt; &lt;sammensattNavn&gt;gorm fru ELISABETH&lt;/sammensattNavn&gt; &lt;/personnavn&gt; &lt;/tilPerson&gt; &lt;/harFraRolleI&gt; &lt;ident&gt; &lt;ident&gt;34785699875&lt;/ident&gt; &lt;type&gt;fnr&lt;/type&gt; &lt;/ident&gt; &lt;kjoenn&gt; &lt;kjoenn&gt;M&lt;/kjoenn&gt; &lt;/kjoenn&gt; &lt;personnavn endringstidspunkt="2002-05-22T00:00:00.000+02:00"&gt; &lt;aftermath&gt;gaylord&lt;/aftermath&gt; &lt;forename&gt;myron&lt;/forename&gt; &lt;mid&gt;gorm&lt;/mid&gt; &lt;sammensattNavn&gt;gaylord myron gorm&lt;/sammensattNavn&gt; &lt;/personnavn&gt; &lt;personstatus endringstidspunkt="2002-05-22T00:00:00.000+02:00"&gt; &lt;personstatus&gt;BOSA&lt;/personstatus&gt; &lt;/personstatus&gt; &lt;foedselsdato&gt; &lt;foedselsdato&gt;1978-01-27+01:00&lt;/foedselsdato&gt; &lt;/foedselsdato&gt; &lt;gjeldendePostadresseType&gt;adress&lt;/gjeldendePostadresseType&gt; &lt;harAnsvarligEnhet&gt; &lt;enhet&gt; &lt;organisasjonselementID&gt;0219&lt;/organisasjonselementID&gt; &lt;/enhet&gt; &lt;/harAnsvarligEnhet&gt; &lt;/person&gt; &lt;/response&gt; &lt;/ns2:getmeinformationResponse&gt; &lt;/soapenv:Body&gt; &lt;/soapenv:Envelope&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload