Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion testui/support/appium_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def __init__(self):
self.__automation_name = None
self.logger_name = None
self.__full_reset = False
self.__no_reset = True
self.__debug = False
self.soft_assert = False
# TODO: Investigate if functionality can be implemented or should be
Expand Down Expand Up @@ -128,6 +129,15 @@ def set_full_reset(self, full_reset: bool):
self.__full_reset = full_reset
return self

def set_no_reset(self, no_reset: bool):
"""
Set no reset
:param no_reset: True or False
:return: self
"""
self.__no_reset = no_reset
return self

def set_appium_url(self, appium_url: str):
"""
Set appium url
Expand Down Expand Up @@ -293,7 +303,7 @@ def __set_common_caps(self):
if self.__full_reset:
self.__desired_capabilities["appium:enforceAppInstall"] = True
else:
self.__desired_capabilities["appium:noReset"] = True
self.__desired_capabilities["appium:noReset"] = self.__no_reset
if self.__version is not None:
self.__desired_capabilities["appium:platformVersion"] = self.__version
if self.udid is not None:
Expand Down
Loading