【问题标题】:How to get html dynamic table data in response of jmeter如何获取响应jmeter的html动态表数据
【发布时间】:2016-08-23 11:56:01
【问题描述】:

我正在使用 JMeter 来测试应用程序。

同样,我访问了一些页面,动态表格内容应显示在视图结果中的响应数据上。

但是,除了 HTML 动态表之外,我还可以查看其他内容,所以请帮助获取动态表的内容。

我尝试使用正则表达式获取它,也尝试使用 XPath 提取来获取它。直到 <thead> 标记为止,它不会查看 <tbody> 中的值。

  1. Here I have wanted to get the trains details. As the table is dynamic we should be able to get the values in the response of jmeter. However I am not able to get this contents.
  2. In the same i tried to get the values of the special trains page using XPath so it gives me error of Illegal expression.
  3. Screenshot no.3

我没有使用任何不同的库来获取 html 表数据值。

我试图通过在正则表达式中使用表格来获取表格内容

Xpath 查询:“/html/body/table/tbody/tr2/td/div” 参考名称:Special_trains

所以它给出了输出 java.net.URISyntaxException: Illegal character in query at index 77: http://enquiry.indianrail.gov.in/ntes/specialTrains.jsp?scrollerDivSpltrn=Not found

同样的 div id 是:“scrollerDivSpltrn” 因此需要答案

【问题讨论】:

  • 你能展示一些响应样本吗?
  • 是否有不同的库用于绘制表格?或分享示例响应?

标签: html jmeter response performance-testing hidden


【解决方案1】:

您只需要正确提取表 id。一旦您能够提取该 id,您应该能够获取动态表。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-04
    • 1970-01-01
    • 2018-09-08
    • 1970-01-01
    相关资源
    最近更新 更多