简体   繁体   English

JMeter使用BIRT报告进行测试

[英]JMeter testing with BIRT report

I'm writing scripts for Load Testing for an IBM maximo application. 我正在为IBM maximo应用程序编写用于负载测试的脚本。 This Application creates some BIRT reports and displays them in the same browser window but in a different tab. 该应用程序创建一些BIRT报告,并在同一浏览器窗口中但在不同选项卡中显示它们。

I'm clueless how to open these with JMeter http Request. 我不知道如何使用JMeter http Request打开它们。 I copied the same request in JMeter as I found in Fiddler, but encountered some errors in the response. 我在JMeter中复制了与Fiddler中相同的请求,但是在响应中遇到了一些错误。

My fiddler request is as follows: 我的提琴手要求如下:

reportFile=asset_meters.rptdesign&reportNum=1170&__newrun=true&comments=&fromEmail=no&where=%25EF%25BF%258E%25EF%25BF%25B9%2522%2513%2508%25136%25EF%25BE%25A8J%25EF%25BE%25A8%2501%25EF%25BF%25B5%25EF%25BE%2591%2527%25EF%25BF%2593y%25EF%25BF%25ACU%2523%2518x%251B%25EF%25BF%2580%25EF%25BF%2592%25EF%25BF%25BAh%250C%25EF%25BF%25A8o%25EF%25BE%25B6%2517%25EF%25BF%25A4*%25EF%25BE%25A0o%25EF%25BE%258BN%25EF%25BF%258A%25EF%25BE%25A8b3%25EF%25BF%25A8%250F%2505%25EF%25BE%25BFcU%2522&mroOrg=QRC&redir=%2Fmaximo%2Freport%2F%3F__report%3Dasset_meters.rptdesign%26appname%3DASSET%26__requestid%3D1550750628853%26uisessionid%3D17617%26csrftoken%3D8dkj0qdgphnd347jreegt21lj5&mroApp=ASSET&maxPass=%25EF%25BE%25AA%25EF%25BE%25A5%2529%25EF%25BF%2592h%2510%25EF%25BE%2596%25EF%25BE%2594&redirParams=repositoryType%3DEnterprise&customrptServerLogonPass=&smtpHost=localhost&localTZ=Africa%2FAlgiers&locale=en_US&p_asset=M100000000003&reportDesc=QR+-+Asset+Meters+%26+Installed+Information&mroUniqueKey=190221160348853_29579&extendedFields=false&Email_Choice=PDF&emails=&userName=maxadmin&ParmUserName=maxdemo&reportFolder=ASSET&qbrDisplayWhere=%28assetnum+like+%27%25M100000000003%25%27%29&schema=maxdemo&reportType=BIRT&appname=ASSET&ParmPassword=%25EF%25BE%25AA%25EF%25BE%25A5%2529%25EF%25BF%2592h%2510%25EF%25BE%2596%25EF%25BE%2594&mroSite=METRO&paramdelimiter=%7C%7C&paramstring=appHierarchy%3DASSET&__scheduleType=immediate&__reportname=asset_meters.rptdesign&isDuplex=0&baseTable=ASSET&customserverURL=&__overwrite=new&baseUrl=http%3A%2F%2F172.17.43.71%3A9080

JMeter Request is: JMeter的要求是:

reportFile=asset_meters.rptdesign&reportNum=1170&__newrun=true&comments=&fromEmail=no&where=%25EF%25BF%258E%25EF%25BF%25B9%2522%2513%2508%25136%25EF%25BE%25A8J%25EF%25BE%25A8%2501%25EF%25BF%25B5%25EF%25BE%2591%2527%25EF%25BF%2593y%25EF%25BF%25ACU%2523%2518x%251B%25EF%25BF%2580%25EF%25BF%2592%25EF%25BF%25BAh%250C%25EF%25BF%25A8o%25EF%25BE%25B6%2517%25EF%25BF%25A4*%25EF%25BE%25A0o%25EF%25BE%258BN%25EF%25BF%258A%25EF%25BE%25A8b3%25EF%25BF%25A8%250F%2505%25EF%25BE%25BFcU%2522&mroOrg=QRC&redir=%2Fmaximo%2Freport%2F%3F__report%3Dasset_meters.rptdesign%26appname%3DASSET%26__requestid%3D1550750847369%26uisessionid%3D17618%26csrftoken%3Detbohmkqeg5ufvpr1tvrv9qp9a&mroApp=ASSET&maxPass=%25EF%25BE%25AA%25EF%25BE%25A5%2529%25EF%25BF%2592h%2510%25EF%25BE%2596%25EF%25BE%2594&redirParams=repositoryType%3DEnterprise&customrptServerLogonPass=&smtpHost=localhost&localTZ=Africa%2FAlgiers&locale=en_US&p_asset=M100000000003&reportDesc=QR+-+Asset+Meters+%26+Installed+Information&mroUniqueKey=190221160727369_29580&extendedFields=false&Email_Choice=PDF&emails=&userName=maxadmin&ParmUserName=maxdemo&reportFolder=ASSET&qbrDisplayWhere=%28assetnum+like+%27%25M100000000003%25%27%29&schema=maxdemo&reportType=BIRT&appname=ASSET&ParmPassword=%25EF%25BE%25AA%25EF%25BE%25A5%2529%25EF%25BF%2592h%2510%25EF%25BE%2596%25EF%25BE%2594&mroSite=METRO&paramdelimiter=%7C%7C&paramstring=appHierarchy%3DASSET&__scheduleType=immediate&__reportname=asset_meters.rptdesign&isDuplex=0&baseTable=ASSET&customserverURL=&__overwrite=new&baseUrl=http%3A%2F%2F172.17.43.71%3A9080

The corresponding responses: 相应的回应:

Fiddler response is: 提琴手的回应是:

提琴手回应

JMeter response is: JMeter的回应是:

Jmeter响应

I checked in the server logs, but found nothing suspicious. 我检查了服务器日志,但没有发现可疑之处。

Then I observed in the JSON tab (in the Fiddler request) something like: 然后,我在JSON标签中(在Fiddler请求中)观察到了类似以下内容:

在此处输入图片说明

Is this is the bottleneck reason for me? 这是我的瓶颈原因吗?

How can I embed this in my JMeter request? 如何将其嵌入到我的JMeter请求中?

My expectation is that you need to implement correlation , to wit extract the dynamic values for the following parameters: 我的期望是您需要实现correlation ,以便为以下参数提取动态值:

  • __requestid
  • csrftoken
  • mroUniqueKey
  • etc. 等等

    1. Check previous response and carefully inspect it looking for the values of the (at least) aforementioned parameters 检查先前的响应并仔细检查它,以查找(至少)上述参数的值
    2. Extract them using suitable JMeter Post-Processors and store into JMeter Variables 使用合适的JMeter 后处理器提取它们并将其存储到JMeter变量中
    3. Replace hard-coded (recorded?) values in the HTTP Request with the values from step 2 HTTP请求中的硬编码(记录的?)值替换为步骤2中的值

Given you send the same request in JMeter as browser does (apart from dynamic parameters) you should be able to see the same response. 假设您在JMeter中发送的请求与浏览器相同(除了动态参数),您应该能够看到相同的响应。

Check out How to Handle Correlation in JMeter article to learn more about "correlation" concept 在JMeter文章中查看如何处理相关性,以了解有关“相关性”概念的更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM