|
@@ -61,6 +61,7 @@ def execute(run_file, globals_file):
|
|
|
# Execute the program using TestRun
|
|
|
lUUID = uuid4()
|
|
|
lTestRun = TestRun(run_file, globalSettingsFileNameAndPath=globals_file, uuid=lUUID)
|
|
|
+ return lTestRun
|
|
|
|
|
|
|
|
|
# Testing Output Functions
|
|
@@ -239,7 +240,8 @@ def test_full_BaangtWebDemo():
|
|
|
|
|
|
def test_NestedIfElse_with_NoBrowser():
|
|
|
run_file = str(input_dir.joinpath("CompleteBaangtWebdemo_else.xlsx"))
|
|
|
- execute(run_file, globals_file=Path(input_dir).joinpath("globalsNoBrowser.json"))
|
|
|
+ testRun = execute(run_file, globals_file=Path(input_dir).joinpath("globalsNoBrowser.json"))
|
|
|
+ assert testRun.statistics.teststep_executed == 18, "If/Else/Endif are not working as expected"
|
|
|
new_file = folder_monitor.getNewFiles()
|
|
|
assert new_file
|
|
|
output_file = output_dir.joinpath(new_file[0][0]).as_posix()
|