jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karthik110885 <karthik110...@gmail.com>
Subject Re: Issue with Response assertion for HTTP Request Sampler
Date Fri, 16 Sep 2011 07:51:30 GMT
Hi Deepak / ZK,

Thanks for the response.

@ Deepak - Yes, what you said is correct. Am trying to accomplish something
like Substring. Should have used Substring only :) I tried using it now, but
still facing with the same error :(

@ ZK - 

Actual response:

"
						
                     
Response in 547 msecs
 <textarea name="output" rows="10" cols="35"
disable="true"><CompanyCode.GetDetail.Response
xmlns="urn:sap-com:document:sap:business.response">
   <COMPANYCODE_ADDRESS>
      <ADDR_NO>0000000121</ADDR_NO>
      <FORMOFADDR>Firma</FORMOFADDR>
      <NAME>Ides AG</NAME>
      <NAME_2>Martin Steiner, Kathrin Walther,</NAME_2>
      <NAME_3>Bernd Zecha, Dondogmaa Lchamdondog</NAME_3>
      <NAME_4>IDES intern</NAME_4>
      <C_O_NAME/>
      <CITY>Frankfurt</CITY>
      <DISTRICT/>
      <CITY_NO/>
      <POSTL_COD1>60441</POSTL_COD1>
      <POSTL_COD2>60070</POSTL_COD2>
      <POSTL_COD3/>
      <PO_BOX>160529</PO_BOX>
      <PO_BOX_CIT/>
      <DELIV_DIS/>
      <STREET>Lyoner Stern 231</STREET>
      <STREET_NO/>
      <STR_ABBR/>
      <HOUSE_NO/>
      <STR_SUPPL1/>
      <STR_SUPPL2/>
      <LOCATION/>
      <BUILDING/>
      <FLOOR/>
      <ROOM_NO/>
      <COUNTRY>DE</COUNTRY>
      <LANGU>D</LANGU>
      <REGION>06</REGION>
      <SORT1>IDES</SORT1>
      <SORT2/>
      <TIME_ZONE>CET</TIME_ZONE>
      <TAXJURCODE/>
      <ADR_NOTES/>
      <COMM_TYPE/>
      <TEL1_NUMBR/>
      <TEL1_EXT/>
      <FAX_NUMBER/>
      <FAX_EXTENS/>
   </COMPANYCODE_ADDRESS>
   <COMPANYCODE_DETAIL>
      <COMP_CODE>1000</COMP_CODE>
      <COMP_NAME>IDES AG</COMP_NAME>
      <CITY>Frankfurt</CITY>
      <COUNTRY>DE</COUNTRY>
      <CURRENCY>EUR</CURRENCY>
      <LANGU>D</LANGU>
      <CHRT_ACCTS>INT</CHRT_ACCTS>
      <FY_VARIANT>K4</FY_VARIANT>
      <VAT_REG_NO>DE123456789</VAT_REG_NO>
      <COMPANY>001000</COMPANY>
      <ADDR_NO>0000000121</ADDR_NO>
      <COUNTRY_ISO>DE</COUNTRY_ISO>
      <CURRENCY_ISO>EUR</CURRENCY_ISO>
      <LANGU_ISO>DE</LANGU_ISO>
   </COMPANYCODE_DETAIL>
   <RETURN>
      <TYPE/>
      <CODE/>
      <MESSAGE/>
      <LOG_NO/>
      <LOG_MSG_NO>000000</LOG_MSG_NO>
      <MESSAGE_V1/>
      <MESSAGE_V2/>
      <MESSAGE_V3/>
      <MESSAGE_V4/>
   </RETURN>
</CompanyCode.GetDetail.Response></textarea>"

Value in Response Assertion:

"<CompanyCode.GetDetail.Response
xmlns="urn:sap-com:document:sap:business.response">
   <COMPANYCODE_ADDRESS>
      <ADDR_NO>0000000121</ADDR_NO>
      <FORMOFADDR>Firma</FORMOFADDR>
      <NAME>Ides AG</NAME>
      <NAME_2>Martin Steiner, Kathrin Walther,</NAME_2>
      <NAME_3>Bernd Zecha, Dondogmaa Lchamdondog</NAME_3>
      <NAME_4>IDES intern</NAME_4>
      <C_O_NAME/>
      <CITY>Frankfurt</CITY>
      <DISTRICT/>
      <CITY_NO/>
      <POSTL_COD1>60441</POSTL_COD1>
      <POSTL_COD2>60070</POSTL_COD2>
      <POSTL_COD3/>
      <PO_BOX>160529</PO_BOX>
      <PO_BOX_CIT/>
      <DELIV_DIS/>
      <STREET>Lyoner Stern 231</STREET>
      <STREET_NO/>
      <STR_ABBR/>
      <HOUSE_NO/>
      <STR_SUPPL1/>
      <STR_SUPPL2/>
      <LOCATION/>
      <BUILDING/>
      <FLOOR/>
      <ROOM_NO/>
      <COUNTRY>DE</COUNTRY>
      <LANGU>D</LANGU>
      <REGION>06</REGION>
      <SORT1>IDES</SORT1>
      <SORT2/>
      <TIME_ZONE>CET</TIME_ZONE>
      <TAXJURCODE/>
      <ADR_NOTES/>
      <COMM_TYPE/>
      <TEL1_NUMBR/>
      <TEL1_EXT/>
      <FAX_NUMBER/>
      <FAX_EXTENS/>
   </COMPANYCODE_ADDRESS>
   <COMPANYCODE_DETAIL>
      <COMP_CODE>1000</COMP_CODE>
      <COMP_NAME>IDES AG</COMP_NAME>
      <CITY>Frankfurt</CITY>
      <COUNTRY>DE</COUNTRY>
      <CURRENCY>EUR</CURRENCY>
      <LANGU>D</LANGU>
      <CHRT_ACCTS>INT</CHRT_ACCTS>
      <FY_VARIANT>K4</FY_VARIANT>
      <VAT_REG_NO>DE123456789</VAT_REG_NO>
      <COMPANY>001000</COMPANY>
      <ADDR_NO>0000000121</ADDR_NO>
      <COUNTRY_ISO>DE</COUNTRY_ISO>
      <CURRENCY_ISO>EUR</CURRENCY_ISO>
      <LANGU_ISO>DE</LANGU_ISO>
   </COMPANYCODE_DETAIL>
   <RETURN>
      <TYPE/>
      <CODE/>
      <MESSAGE/>
      <LOG_NO/>
      <LOG_MSG_NO>000000</LOG_MSG_NO>
      <MESSAGE_V1/>
      <MESSAGE_V2/>
      <MESSAGE_V3/>
      <MESSAGE_V4/>
   </RETURN>
</CompanyCode.GetDetail.Response>"

I have tried using Substring as Deepak suggested. But it still throws an
error.

Thanks again for your response and help

--
View this message in context: http://jmeter.512774.n5.nabble.com/Issue-with-Response-assertion-for-HTTP-Request-Sampler-tp4803205p4809834.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message