none
Problem with recording AJAX calls in Visual Studio 13/15(Web Performance Testing)

    Question

  • Hello,

    I had Installed Visual Studio.

    I try to capture https request for web performance testing but it was recording lots of requests in background.

    Please help,how to record AJAX calls using VS 13/15 for Web Performance Test.

    Thanks,

    Venu


    • Edited by Venu.V Wednesday, May 11, 2016 5:48 AM
    Wednesday, May 11, 2016 5:46 AM

Answers

  • Hi Venu.V,

    First, we need to know that Web Performance Test works at the HTTP layer. So if the Ajax calls are all Http requests, they will be recorded in Web Performance Test.

    But client-side scripting that sets parameter values or results in additional HTTP requests, such as AJAX, does affect the load on the server and might require you to manually modify the Web Performance Test to simulate the scripting.

    Detailed information about Web Performance Test Engine, please refer to following link.

    https://msdn.microsoft.com/en-us/library/ff520100.aspx?f=255&MSPPError=-2147217396

    In addition, if the Ajax calls are executed by some elements which render by Javascript, they won't be recorded by Web Test Recorder. This is why the Ajax requests will be recorded and appended to the end of the test. In this situation, please try use Fiddler to record these requests and then export these requests to Visual Studio. Please refer to following thread, which provide some workaround for this situation. Hope it can help you.

    http://stackoverflow.com/questions/9922001/vsts-web-performance-test-ajax-requests-recorded-in-wrong-order

    Best Regards,
    Weiwei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, May 12, 2016 3:25 AM
    Moderator