Created By  inflectra.adam 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.


Selected files will be attached to any email sent on saving ticket.

file selected files selected  () Delete Selected

  • Created:
  • by:

Select files to upload

Or drag and drop files here

Uploading …
Upload More?
There was an error.
Try again?

Save to upload the selected file(s)

Article Info
  • Last Updated: 11/19/2015
  • Article ID: KB176
  • Views: 1574