Asked Sep 10th, 1:42 PM 43 0 1
  • 43 0 1
0

how to measure loading time page in Robot Framework

Share
  • 43 0 1

Please, help me this problem, I am a fresher.

Sep 11th, 4:00 AM

@Gin Could you, please explain more about the issues that you've got?

0
| Reply
Share
Sep 16th, 7:11 AM

@huukimit That means write the test scrip in Robot Framework. And I have done it. If you do not mind, you will help me explain how to test database in Robot

0
| Reply
Share

1 ANSWERS


Answered Nov 13th, 7:18 AM
0

Just try this

Here is a simple example which measures the time that the page took to load some distinct element:

${start} = Get Current Date Open Browser https://ixquick.com/ Wait Until Page Contains Element //input[@id='query'] ${stop} = Get Current Date ${diff} = Subtract Date From Date ${stop} ${start} Log ${diff} You need Selenium2Library and DateTime library to run this. Adjust it to your needs, i.e. you have to find a definition of ready. This might be some HTML element to be present or some other criteria.

Share