access the response from a web coded performance test

后端 未结 1 962
清酒与你
清酒与你 2021-02-09 06:01
WebTestRequest request1 = new WebTestRequest((this.Context[\"Environment\"].ToString() + \"/IBWeb/DefaultSB.aspx\"));
request1.Headers.Add(new WebTestRequestHeader(\"Ref         


        
相关标签:
1条回答
  • 2021-02-09 06:40

    add PostRequest event handler

    request1.PostRequest += new EventHandler<PostRequestEventArgs>(request1_PostRequest);
    

    handler method:

    void request1_PostRequest(object sender, PostRequestEventArgs e)
    {
        String responseBody = e.Response.BodyString;
    }
    
    0 讨论(0)
提交回复
热议问题