Yêu cầu thg 9 10, 2019 1:42 CH 391 0 1
  • 391 0 1
0

how to measure loading time page in Robot Framework

Chia sẻ
  • 391 0 1

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

thg 9 11, 2019 4:00 SA

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

thg 9 16, 2019 7:11 SA

@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

1 CÂU TRẢ LỜI


Đã trả lời thg 11 13, 2019 7:18 SA
-1

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.

Chia sẻ
Viblo
Hãy đăng ký một tài khoản Viblo để nhận được nhiều bài viết thú vị hơn.
Đăng kí