Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/346.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在Jmeter中单击一次即可生成多个请求_Java_Request_Jmeter_Response - Fatal编程技术网

Java 在Jmeter中单击一次即可生成多个请求

Java 在Jmeter中单击一次即可生成多个请求,java,request,jmeter,response,Java,Request,Jmeter,Response,我试图通过Jmeter编写脚本。在我之前编写脚本的所有应用程序中,只生成了一个相关的请求,并且在jmeter中有一个req,检索该页面上的所有信息以继续处理进一步的请求 但现在在这个应用程序中,当我使用Jmeter录制时,在单击一次之后,Jmeter脚本(如3到10)中会生成多个请求,并且当通过Jeter运行时,没有一个单独的请求具有全部响应 这是什么样的申请?这样做的好处是什么 我怎样才能以最有效的方式处理这个问题 对于Eg,只需单击下面的按钮,即可在jmeter中的HTTP记录器中生成请求

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

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

  • 这是什么样的申请?这样做的好处是什么
  • 我怎样才能以最有效的方式处理这个问题
  • 对于Eg,只需单击下面的按钮,即可在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
    

    重放场景的正确方法是:

    • -测量累计执行时间
      • HTTP请求采样器(主调用)
      • -同时执行所有“嵌套”调用
        • HTTP请求1
        • HTTP请求2
        • HTTP请求3

    对于eg:one click,以下是Jmeter recorder中生成的请求: