File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -4955,12 +4955,6 @@ def setUp(self, masterqa_mode=False):
4955
4955
""" >>> "pip install -r requirements.txt"\n """
4956
4956
""" >>> "python setup.py install" """ )
4957
4957
4958
- # Configure the test time limit (if used)
4959
- self .set_time_limit (self .time_limit )
4960
-
4961
- # Set the start time for the test (in ms)
4962
- sb_config .start_time_ms = int (time .time () * 1000.0 )
4963
-
4964
4958
# Parse the settings file
4965
4959
if self .settings_file :
4966
4960
settings_parser .set_settings (self .settings_file )
@@ -5049,6 +5043,14 @@ def setUp(self, masterqa_mode=False):
5049
5043
if self ._reuse_session :
5050
5044
sb_config .shared_driver = self .driver
5051
5045
5046
+ # Configure the test time limit (if used).
5047
+ self .set_time_limit (self .time_limit )
5048
+
5049
+ # Set the start time for the test (in ms).
5050
+ # Although the pytest clock starts before setUp() begins,
5051
+ # the time-limit clock starts at the end of the setUp() method.
5052
+ sb_config .start_time_ms = int (time .time () * 1000.0 )
5053
+
5052
5054
def __set_last_page_screenshot (self ):
5053
5055
""" self.__last_page_screenshot is only for pytest html report logs
5054
5056
self.__last_page_screenshot_png is for all screenshot log files """
You can’t perform that action at this time.
0 commit comments