本文介绍了如何在JMeter中解析Response xml并将结果作为动态参数发送到另一个http请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Jmeter的新手.我从服务器获取的响应为xml.现在,我需要将对下一个http请求的响应中得到的一些值作为post参数传递.请为此建议我.

i'm new to Jmeter . I'm getting the response as xml from the server. Now I need to pass the some of the values which i'm getting in the response to the next http request as post parameters . Please suggest me on this .

推荐答案

在JMeter中,您无需外部即可处理XML数据,它提供了内置的 XPath提取器

You don't need anything external to deal with XML data in JMeter, it provides built-in XPath Extractor

但是,您需要学习XPath.进行以下操作可能会有所帮助:

However you need to learn XPath. Following things may help a lot:

  • XPath Tutorial - a great place to start
  • XPath Checker Firefox Plugin - visual XPath evaluator
  • Online XPath Tester Free online XPath Tester

这篇关于如何在JMeter中解析Response xml并将结果作为动态参数发送到另一个http请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 06:38