Skip to content

Commit f524d48

Browse files
Merge pull request #169 from AutomationSolutionz/auto_teardown
Auto teardown
2 parents 5ec6ae3 + 32c84f5 commit f524d48

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
### [Current changes]
66
- _
77

8+
### [15.0.2][April 26, 2022]
9+
- **[Add]** `%|zeuz_auto_teardown|%` variable is added for turning off auto teardown
10+
811
### [15.0.1][April 26, 2022]
912
- **[Change]** Screenshot image quality upgraded to resolution 1920,1080
1013

Framework/MainDriverApi.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,8 @@ def run_test_case(
898898

899899
if not CommonUtil.debug_status: # if normal run, then write log file and cleanup driver instances
900900
CommonUtil.Join_Thread_and_Return_Result("screenshot") # Let the capturing screenshot end in thread
901-
cleanup_driver_instances() # clean up drivers
901+
if shared.Get_Shared_Variables("zeuz_auto_teardown").strip().lower() in ("on", "yes", "true", "ok", "enable"):
902+
cleanup_driver_instances() # clean up drivers
902903
shared.Clean_Up_Shared_Variables() # clean up shared variables
903904
if ConfigModule.get_config_value("RunDefinition", "local_run") == "False":
904905

@@ -1419,6 +1420,7 @@ def main(device_dict, user_info_object):
14191420
rerun_on_fail = ConfigModule.get_config_value("RunDefinition", "rerun_on_fail")
14201421
rerun_on_fail = False if rerun_on_fail.lower() == "false" else True
14211422
CommonUtil.upload_on_fail, CommonUtil.rerun_on_fail = send_log_file_only_for_fail, rerun_on_fail
1423+
shared.Set_Shared_Variables("zeuz_auto_teardown", "on")
14221424

14231425
all_testcases_info = run_id_info["test_cases"]
14241426
TestSetStartTime = time.time()

Framework/Version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[ZeuZ Python Version]
2-
version = 15.0.1
2+
version = 15.0.2
33
[Release Date]
44
date = April 26, 2022

0 commit comments

Comments
 (0)