-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Include test duration in the basic_test_info.txt
file
Here's an example of a basic_test_info.txt
file, which does not currently show how long the test ran before it failed:
test_fail.py::FailingTests::test_find_army_of_robots_on_xkcd_desert_island
--------------------------------------------------------------------
Last Page: https://xkcd.com/731/
Browser: chrome (105.0.5195.125 / headless)
Driver: chromedriver (105.0.5195.52)
Timestamp: 1664654620 (Unix Timestamp)
Date: Saturday, October 1, 2022
Time: 4:03:40 PM (EDT, UTC-05:00)
--------------------------------------------------------------------
Traceback: File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/unittest/case.py", line 591, in run
self._callTestMethod(testMethod)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/unittest/case.py", line 549, in _callTestMethod
method()
File "/Users/michael/github/SeleniumBase/examples/test_fail.py", line 16, in test_find_army_of_robots_on_xkcd_desert_island
self.assert_element("div#ARMY_OF_ROBOTS", timeout=1)
File "/Users/michael/github/SeleniumBase/seleniumbase/fixtures/base_case.py", line 10414, in assert_element
self.wait_for_element_visible(selector, by=by, timeout=timeout)
File "/Users/michael/github/SeleniumBase/seleniumbase/fixtures/base_case.py", line 7786, in wait_for_element_visible
return page_actions.wait_for_element_visible(
File "/Users/michael/github/SeleniumBase/seleniumbase/fixtures/page_actions.py", line 421, in wait_for_element_visible
timeout_exception(NoSuchElementException, message)
File "/Users/michael/github/SeleniumBase/seleniumbase/fixtures/page_actions.py", line 190, in timeout_exception
raise exc(msg)
Exception: Message:
Element {div#ARMY_OF_ROBOTS} was not present after 1 second!