jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lal Mani Kashyap" <Lal.Kash...@infogain.com>
Subject Need help in x-path extraxter in xml
Date Mon, 02 Jun 2014 10:01:16 GMT
Hi All,

 

I am getting response against xml request in Jmeter.

I need to validate the xml.

 

So I want to extract values with Post Processor (Xpath extractor) and
then like add xpath assertion.

 

Can anyone give an example which will me a lot  : my xml is given below

 

<?xml version="1.0" ?>

<Credit_Request xmlns="http://Zoot.zootweb.com/services">

  <Request_Header>

    <Request_Header_Info

        Request_Date_Time_GMT="2014-05-29T16:38:27.000000000"

        Request_Date_Time_Local="2014-05-29T11:38:27.000000000">

      <Header_Info

          Request_Response_Trans_ID="lYtQrlnzwdMTzUVH9y7"

          Service_Version_ID="02_00_00"/>

    </Request_Header_Info>

    <Requestor_Info

        Client_Ref_ID="000000000"

        Requestor_Channel_Code="STORE"

        Requestor_Location_ID="ABC 3-FLINT"

        Requestor_Location_State_Code="TX"

        Requestor_Organization_Code="ABC WAREHOUSE"

        Requestor_POS_System_ID="WEB"

        Requestor_User_ID="dev"/>

  </Request_Header>

  <Credit_Request_Info

      Consumer_Initiated_Flag="F"

      Requestor_Transaction_Amount="100.0">

    <Consumer_Info>

      <General_Consumer_Info

          Birth_Date="1987-11-11"

          Home_Telephone_Number="1111111111"

          SSN_Or_Tax_ID="999999911"

          Stated_Income_Frequency_Type="ANNUALLY"

          Stated_Income_Or_Revenue_Amount="1000">

        <Consumer_Name

            First_Name="dfd"

            Last_Name="dfd"/>

        <Current_Physical_Address

            Address_City="dfd"

            Address_Disposition_Type="OWN"

            Address_Line_1="dfd"

            Address_Postal_Code="12345"

            Address_State_Code="LA"

            Monthly_Payment="100"/>

      </General_Consumer_Info>

    </Consumer_Info>

  </Credit_Request_Info>

</Credit_Request>

 

Thanks & Regards,

  <http://www.infogain.com/> 

LAL MANI KASHYAP | Sr. Software Engineer

 


Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message