diff --git a/v2/data/minimal_examples/skipped_tests/.gitignore b/v2/data/minimal_examples/skipped_tests/.gitignore new file mode 100644 index 00000000..811ab3fe --- /dev/null +++ b/v2/data/minimal_examples/skipped_tests/.gitignore @@ -0,0 +1,17 @@ +output/ +venv/ +temp/ +.rpa/ +.idea/ +.ipynb_checkpoints/ +*/.ipynb_checkpoints/* +.virtual_documents/ +*/.virtual_documents/* +.vscode +.DS_Store +*.pyc +*.zip +*/work-items-out/* +testrun/* +.~lock* +*.pkl diff --git a/v2/data/minimal_examples/skipped_tests/README.md b/v2/data/minimal_examples/skipped_tests/README.md new file mode 100644 index 00000000..44ba6f45 --- /dev/null +++ b/v2/data/minimal_examples/skipped_tests/README.md @@ -0,0 +1,5 @@ +# Example: skipped tests + +CMK-14680 + +Run this test with Robot Framework argument `--exitonfailure`. diff --git a/v2/data/minimal_examples/skipped_tests/conda.yaml b/v2/data/minimal_examples/skipped_tests/conda.yaml new file mode 100644 index 00000000..4d96eb7b --- /dev/null +++ b/v2/data/minimal_examples/skipped_tests/conda.yaml @@ -0,0 +1,13 @@ +# For more details on the format and content: +# https://github.com/robocorp/rcc/blob/master/docs/recipes.md#what-is-in-condayaml +# Tip: Adding a link to the release notes of the packages helps maintenance and security. + +channels: + - conda-forge + +dependencies: + - python=3.10.12 # https://pyreadiness.org/3.10 + - pip=23.2.1 # https://pip.pypa.io/en/stable/news + - truststore=0.7.0 # https://github.com/sethmlarson/truststore/blob/main/CHANGELOG.md + - pip: + - robotframework>=6 diff --git a/v2/data/minimal_examples/skipped_tests/log.html b/v2/data/minimal_examples/skipped_tests/log.html new file mode 100644 index 00000000..91f399da --- /dev/null +++ b/v2/data/minimal_examples/skipped_tests/log.html @@ -0,0 +1,2199 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Opening Robot Framework log failed

+ +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/v2/data/minimal_examples/skipped_tests/output.xml b/v2/data/minimal_examples/skipped_tests/output.xml new file mode 100644 index 00000000..183e4e23 --- /dev/null +++ b/v2/data/minimal_examples/skipped_tests/output.xml @@ -0,0 +1,88 @@ + + + + + + + +This is TestA doing nothing. +Logs the given message with the given level. +This is TestA doing nothing. + + + + + + +This is TestB doing nothing. +Logs the given message with the given level. +This is TestB doing nothing. + + + + + + +This is TestC doing nothing. +Logs the given message with the given level. +This is TestC doing nothing. + + + + + + + + + + + + +This is TestA doing nothing. +Logs the given message with the given level. +This is TestA doing nothing. + + + + + + +This is TestB doing nothing. +Logs the given message with the given level. +This is TestB doing nothing. + + + + + + +This is TestC doing nothing. +Logs the given message with the given level. +This is TestC doing nothing. + + + + + + + + + + + + +All Tests + + + + +Suite Mainfolder +Suite Mainfolder.Suite Folder1 +Suite Mainfolder.Suite Folder1.Demo +Suite Mainfolder.Suite Folder2 +Suite Mainfolder.Suite Folder2.Demo + + + + + diff --git a/v2/data/minimal_examples/skipped_tests/report.html b/v2/data/minimal_examples/skipped_tests/report.html new file mode 100644 index 00000000..89ff74ee --- /dev/null +++ b/v2/data/minimal_examples/skipped_tests/report.html @@ -0,0 +1,2462 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Opening Robot Framework report failed

+ +
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/v2/data/minimal_examples/skipped_tests/robot.yaml b/v2/data/minimal_examples/skipped_tests/robot.yaml new file mode 100644 index 00000000..aa177600 --- /dev/null +++ b/v2/data/minimal_examples/skipped_tests/robot.yaml @@ -0,0 +1,22 @@ +# For more details on the format and content: +# https://github.com/robocorp/rcc/blob/master/docs/recipes.md#what-is-in-robotyaml + +tasks: + # Task names here are used when executing the bots, renaming these is recommended. + Run all tasks: + shell: python -m robot --report NONE --outputdir output --logtitle "Task log" tasks.robot + +environmentConfigs: + - environment_windows_amd64_freeze.yaml + - environment_linux_amd64_freeze.yaml + - environment_darwin_amd64_freeze.yaml + - conda.yaml + +artifactsDir: output + +PATH: + - . +PYTHONPATH: + - . +ignoreFiles: + - .gitignore diff --git a/v2/data/minimal_examples/skipped_tests/suite.robot b/v2/data/minimal_examples/skipped_tests/suite.robot new file mode 100644 index 00000000..45d62fa7 --- /dev/null +++ b/v2/data/minimal_examples/skipped_tests/suite.robot @@ -0,0 +1,9 @@ +*** Test Cases *** +Download Customer Report + Fail msg="Raised an error in Test 1" + +Search Company Database + Log This is TestB doing nothing. + +Employee Module + Log This is TestC doing nothing. diff --git a/v2/data/minimal_examples/wrapped_keywords/.gitignore b/v2/data/minimal_examples/wrapped_keywords/.gitignore new file mode 100644 index 00000000..811ab3fe --- /dev/null +++ b/v2/data/minimal_examples/wrapped_keywords/.gitignore @@ -0,0 +1,17 @@ +output/ +venv/ +temp/ +.rpa/ +.idea/ +.ipynb_checkpoints/ +*/.ipynb_checkpoints/* +.virtual_documents/ +*/.virtual_documents/* +.vscode +.DS_Store +*.pyc +*.zip +*/work-items-out/* +testrun/* +.~lock* +*.pkl diff --git a/v2/data/minimal_examples/wrapped_keywords/README.md b/v2/data/minimal_examples/wrapped_keywords/README.md new file mode 100644 index 00000000..35105a9e --- /dev/null +++ b/v2/data/minimal_examples/wrapped_keywords/README.md @@ -0,0 +1,3 @@ +# Example: minimal_3tests + +An absolute minimal example showing a suite which tests a CRM system with three tests. \ No newline at end of file diff --git a/v2/data/minimal_examples/wrapped_keywords/conda.yaml b/v2/data/minimal_examples/wrapped_keywords/conda.yaml new file mode 100644 index 00000000..4d96eb7b --- /dev/null +++ b/v2/data/minimal_examples/wrapped_keywords/conda.yaml @@ -0,0 +1,13 @@ +# For more details on the format and content: +# https://github.com/robocorp/rcc/blob/master/docs/recipes.md#what-is-in-condayaml +# Tip: Adding a link to the release notes of the packages helps maintenance and security. + +channels: + - conda-forge + +dependencies: + - python=3.10.12 # https://pyreadiness.org/3.10 + - pip=23.2.1 # https://pip.pypa.io/en/stable/news + - truststore=0.7.0 # https://github.com/sethmlarson/truststore/blob/main/CHANGELOG.md + - pip: + - robotframework>=6 diff --git a/v2/data/minimal_examples/wrapped_keywords/log.html b/v2/data/minimal_examples/wrapped_keywords/log.html new file mode 100644 index 00000000..91f399da --- /dev/null +++ b/v2/data/minimal_examples/wrapped_keywords/log.html @@ -0,0 +1,2199 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Opening Robot Framework log failed

+ +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/v2/data/minimal_examples/wrapped_keywords/output.xml b/v2/data/minimal_examples/wrapped_keywords/output.xml new file mode 100644 index 00000000..183e4e23 --- /dev/null +++ b/v2/data/minimal_examples/wrapped_keywords/output.xml @@ -0,0 +1,88 @@ + + + + + + + +This is TestA doing nothing. +Logs the given message with the given level. +This is TestA doing nothing. + + + + + + +This is TestB doing nothing. +Logs the given message with the given level. +This is TestB doing nothing. + + + + + + +This is TestC doing nothing. +Logs the given message with the given level. +This is TestC doing nothing. + + + + + + + + + + + + +This is TestA doing nothing. +Logs the given message with the given level. +This is TestA doing nothing. + + + + + + +This is TestB doing nothing. +Logs the given message with the given level. +This is TestB doing nothing. + + + + + + +This is TestC doing nothing. +Logs the given message with the given level. +This is TestC doing nothing. + + + + + + + + + + + + +All Tests + + + + +Suite Mainfolder +Suite Mainfolder.Suite Folder1 +Suite Mainfolder.Suite Folder1.Demo +Suite Mainfolder.Suite Folder2 +Suite Mainfolder.Suite Folder2.Demo + + + + + diff --git a/v2/data/minimal_examples/wrapped_keywords/report.html b/v2/data/minimal_examples/wrapped_keywords/report.html new file mode 100644 index 00000000..89ff74ee --- /dev/null +++ b/v2/data/minimal_examples/wrapped_keywords/report.html @@ -0,0 +1,2462 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Opening Robot Framework report failed

+ +
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/v2/data/minimal_examples/wrapped_keywords/robot.yaml b/v2/data/minimal_examples/wrapped_keywords/robot.yaml new file mode 100644 index 00000000..aa177600 --- /dev/null +++ b/v2/data/minimal_examples/wrapped_keywords/robot.yaml @@ -0,0 +1,22 @@ +# For more details on the format and content: +# https://github.com/robocorp/rcc/blob/master/docs/recipes.md#what-is-in-robotyaml + +tasks: + # Task names here are used when executing the bots, renaming these is recommended. + Run all tasks: + shell: python -m robot --report NONE --outputdir output --logtitle "Task log" tasks.robot + +environmentConfigs: + - environment_windows_amd64_freeze.yaml + - environment_linux_amd64_freeze.yaml + - environment_darwin_amd64_freeze.yaml + - conda.yaml + +artifactsDir: output + +PATH: + - . +PYTHONPATH: + - . +ignoreFiles: + - .gitignore diff --git a/v2/data/minimal_examples/wrapped_keywords/suite.robot b/v2/data/minimal_examples/wrapped_keywords/suite.robot new file mode 100644 index 00000000..e988c963 --- /dev/null +++ b/v2/data/minimal_examples/wrapped_keywords/suite.robot @@ -0,0 +1,12 @@ +*** Test Cases *** +Test With An Ignored Error + Run Keyword And Ignore Error Fail + Log The test does not fail because the failed keyword was ignored. + +Test Which continues After Error + Run Keyword And Continue On Failure Fail + Log The test fails, but continued after a failure + +Test Which Gets Keyword Status + ${passed}= Run Keyword And Return Status Should Be Equal As Integers 1 2 + Log The test does not fail because only the keyword status was reuested.