【问题标题】:Mutiple request is generated in single click in Jmeter在 Jmeter 中单击生成多个请求
【发布时间】:2018-04-18 11:20:33
【问题描述】:

我正在尝试通过 Jmeter 编写脚本。早些时候,在我编写过脚本的所有应用程序中,只生成了一个相关请求,并且在 jmeter 中有一个请求,检索了该页面上的所有信息以继续处理进一步的请求。

但是现在在这个应用程序中,当我使用 Jmeter 进行录制时,单击一次后,jmeter 脚本中会生成多个请求(例如 3 到 10 个),并且当通过 jemter 运行时,没有一个单独具有完全响应。

  1. 这是一个什么样的应用程序?这样做有什么好处?
  2. 我怎样才能以最有效的方式处理这个问题?

例如,单击下面是在 jmeter 的 HTTP 记录器中生成的请求。

http://xxxx:9081/vam-ui
http://xxx:9081/vam-rest/common/getAPIAddresses
http://xxx:9081/vam-rest/authenticate
http://xxx:9081/vam-rest/getuserinfo
68 /AASWeb/rest/aas/v1/authentication/authenticateUser
69 /AASWeb/rest/aas/v1/authentication/authenticateUser
70 /AASWeb/rest/aas/v1/authentication/getUserProfile
71 /AASWeb/rest/aas/v1/authentication/getUserProfile
73 /AASWeb/rest/aas/v1/authorization/getUserUIAuthorization
74 /AASWeb/rest/aas/v1/authorization/getUserUIAuthorization
75 /AccountWeb/rest/account/v1/operation/getSystemDate
76 /CustomerWeb/rest/customer/v1/customer/searchRootCustomers
77 /AccountWeb/rest/account/v1/account/searchAccountsService
80 /AccountWeb/rest/account/v1/operation/getSystemDate
78 /uiframework-web/api/rest/dashboard/v1/listAvailableDashboards
79 /uiframework-web/api/rest/dashboard/v1/getUserRecentSearches
82 /CustomerWeb/rest/customer/v1/customer/searchRootCustomers
83 /uiframework-web/api/rest/dashboard/v1/listAvailableDashboards
84 /uiframework-web/api/rest/dashboard/v1/getUserRecentSearches
85 /uiframework-web/api/rest/dashboard/v1/listAvailableDashboards
86 /uiframework-web/api/rest/dashboard/v1/getUserRecentSearches
88 /uiframework-web/api/rest/dashboard/v1/listAvailableDashboards
89 /uiframework-web/api/rest/dashboard/v1/getUserRecentSearches

【问题讨论】:

  • 例如:一键点击Jmeter记录器生成的请求如下:

标签: java request jmeter response


【解决方案1】:

重播场景的正确方法是:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多