JMeter 响应数据提交以继续下一步操作
JMeter Response data submit to continue for next actions
我在Jmeetere遇到了一些问题,如果你们有什么建议请和我一起刮胡子。我为我的应用程序发送请求,然后在 link 打开后单击,在响应数据中我得到 Script is disabled。请点击提交继续
提交。提交响应数据是一个点击按钮,如果我点击它,它会转到应用程序站点。我试过BeanShell PreProcessor,还是没法解决。
谢谢
使用 HTML 视图查看结果树非常有限,因为 JMeter Reference specifies:
The HTML view attempts to render the response as HTML. The rendered HTML is likely to compare poorly to the view one would get in any web browser; however, it does provide a quick approximation that is helpful for initial result evaluation.
Images, style-sheets, etc. aren't downloaded.
此视图也不会 运行 任何 JS 脚本。例如,在您的情况下,作为 HTTP 请求的结果返回的页面似乎取决于 JavaScript,因此该页面的开发人员添加了一个 标记,如果您尝试加载,则会显示该标记JavaScript 不存在的页面。如果您查看页面的 Text 视图,您将看到返回的整个页面,其中包含如下内容:
....
<noscript>Script is disabled. Please click Submit to continue<button value="Submit" type="submit"/></noscript>
...
当您切换到 HTML 视图 时,它只会显示该部分,因为 JavaScript 不存在。
底线:HTML视图非常有限,不支持您的页面。使用 Text 视图来了解您的脚本 returns。
我在Jmeetere遇到了一些问题,如果你们有什么建议请和我一起刮胡子。我为我的应用程序发送请求,然后在 link 打开后单击,在响应数据中我得到 Script is disabled。请点击提交继续
提交。提交响应数据是一个点击按钮,如果我点击它,它会转到应用程序站点。我试过BeanShell PreProcessor,还是没法解决。
谢谢
使用 HTML 视图查看结果树非常有限,因为 JMeter Reference specifies:
The HTML view attempts to render the response as HTML. The rendered HTML is likely to compare poorly to the view one would get in any web browser; however, it does provide a quick approximation that is helpful for initial result evaluation. Images, style-sheets, etc. aren't downloaded.
此视图也不会 运行 任何 JS 脚本。例如,在您的情况下,作为 HTTP 请求的结果返回的页面似乎取决于 JavaScript,因此该页面的开发人员添加了一个 标记,如果您尝试加载,则会显示该标记JavaScript 不存在的页面。如果您查看页面的 Text 视图,您将看到返回的整个页面,其中包含如下内容:
....
<noscript>Script is disabled. Please click Submit to continue<button value="Submit" type="submit"/></noscript>
...
当您切换到 HTML 视图 时,它只会显示该部分,因为 JavaScript 不存在。
底线:HTML视图非常有限,不支持您的页面。使用 Text 视图来了解您的脚本 returns。