Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FT] Raise Alerts, if Page Load Is Too Slow #206

Open
netzulo opened this issue Oct 19, 2018 · 0 comments
Open

[FT] Raise Alerts, if Page Load Is Too Slow #206

netzulo opened this issue Oct 19, 2018 · 0 comments
Labels
Awaiting-Triage Pending of be labeled from a Collaborator Feature New functionality proposal TODO

Comments

@netzulo
Copy link
Owner

netzulo commented Oct 19, 2018

SPEC

Need a counter for PageBase that allows to ensure how much time took to open an url from selenium using qacode

Notes

import time
print("Open page: %s" % (page_url))
start_clock = time.clock()
gui_login_webpage(driver, page_url, username, password)
end_clock = time.clock()
elapsed_seconds = ((end_clock - start_clock) * 1000)
is_ok = True
if elapsed_seconds > max_load_seconds:
    print("ERROR: page load is too slow. It took %s seconds, more than %d seconds." \
          % ("{:.2f}".format(elapsed_seconds), max_load_seconds))
    is_ok = False
else:
    print("Page load took: %s seconds." % ("{:.2f}".format(elapsed_seconds)))
@netzulo netzulo added the Feature New functionality proposal label Oct 19, 2018
@netzulo netzulo self-assigned this Oct 19, 2018
@netzulo netzulo added the Awaiting-Triage Pending of be labeled from a Collaborator label Feb 9, 2020
@netzulo netzulo added the TODO label Feb 9, 2020
@netzulo netzulo removed their assignment Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting-Triage Pending of be labeled from a Collaborator Feature New functionality proposal TODO
Projects
None yet
Development

No branches or pull requests

1 participant