diff --git a/test/ui-test/src/utils/FileManager.py b/test/ui-test/src/utils/FileManager.py index 2a9497ca08..19686eb88f 100644 --- a/test/ui-test/src/utils/FileManager.py +++ b/test/ui-test/src/utils/FileManager.py @@ -3,7 +3,7 @@ import os.path as path def erase_directory(dir): - directory = path.abspath(path.join(__file__ , "../../../../../" + dir)) + directory = path.abspath(path.join(__file__ , dir)) if (os.path.isdir(directory)): print(directory) try: diff --git a/test/ui-test/testSuites/suite_statusLogin/shared/scripts/bdd_hooks.py b/test/ui-test/testSuites/suite_statusLogin/shared/scripts/bdd_hooks.py index 8a88d2de20..9208b5c63b 100644 --- a/test/ui-test/testSuites/suite_statusLogin/shared/scripts/bdd_hooks.py +++ b/test/ui-test/testSuites/suite_statusLogin/shared/scripts/bdd_hooks.py @@ -12,7 +12,7 @@ _appClosureTimeout = 2 #[seconds] @OnScenarioStart def hook(context): - erase_directory("Status/data") + erase_directory("../../../../../Status/data") startApplication(_statusDektopAppName) context.userData = {}