Knowledge Base Article

Home Page > Knowledge Base > Rapise

Home Page > Knowledge Base > Rapise > Rapise Web

Article Measuring browser performance with Rapise

by Adam S on Thursday, November 19, 2015

How do you get the exact time that Rapise takes to load a page? Now, the reports summary shows the overall execution time but if you have pause times between steps then these times are added to the total time of that a page took to display. Customers have asked if Rapise has some kind of function that will allow them to see only the transaction time between pages without the pause times. Does Rapise have something like that? This article provides a solution to these cases.
The test script attached to this KB article introduces the function:

Dump page load time:


You can call it at any time after a web action is performed (Navigator.Navigate or SeS(‘…’).DoClick()) and you want to check the page loading time or see information about the loaded resources.

There are a couple more uses of this function.

Dump page load time and resources:


By default this function returns the page load time in milliseconds as a number. So you can use it later for additional validations. A extra benefit of this function is that information about the timings is also written into the report.

     var tm = NavPerformance();

     Tester.Assert("Navigation took less than a second", tm<1000);

To return page load and write nothing to the report:

     var tm = NavPerformance(false, true);

Implementation of this function is in the .user.js file of the attached test. If you have complex test set you may put it into a common .js file for all your tests.

Article Info
Last Updated: 11/19/2015
Article ID: KB176
# Views: 376
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2017 | Licensed to Inflectra Corporation.