Search code examples
javascriptweb-testing

Visual studio web performance test, javascript


I am recording web performance test on web page, and I need to count time since I click on button until the next wanted page is rendered. The problem is that I have a lot of client side logic that is triggered on the button click. So, some time is past while javascript is executing and after that request is being sent to server.

web performance test records only web request between client and server, javascript time is never recorded.

I need to record actual time since I click to button to next page opening(including javascript time)

Can that be done in Visual Studio Web performance? If not, is there some alternative?

Thanks a lot.


Solution

  • Telerik's Test Studio's new performance test feature measures client side processing time. We break out server-side and client-side times. Client times are based on a particular test step's total execution time less the server time for that step.

    As long as the next step in the test has the output of the current test's JavaScript as a prerequisite then that step's client time will include time needed for the JavaScript to finish its work. This would generally be the case unless the next step is a direct navigation step.

    (Disclosure: I work for Telerik as their Test Studio evangelist.)