Jmeter - XPath Extractor

在一组测试操作中,有时候当前的测试Case需要使用上一测试Case产生的的变量,这个时候我们就需要使用XPath Extractor

XPath Extractor
引用名称: TOKEN
XPath query: //form[@name="userform"]/input[@name="token"]/@value
(XPath query的用法参见Apache的文档)

Http Request
Parameters:
  Name: token
  Value: ${TOKEN}

http://test-china.org/topics/28
http://jmeter.apache.org/usermanual/component_reference.html#XPath_Extractor

猜你喜欢

转载自xmeteor.iteye.com/blog/1756464