Skip to content

Commit

Permalink
Add DependencyLibrary to support test case/suite dependency (#1323)
Browse files Browse the repository at this point in the history
Robot Framework DependencyLibrary allows creating dependency between
test cases and test suites. For example, if test A must be executed
before test B (because B expect some resources created by A),
but test A failed - then test B will not be executed.

Using DependencyLibrary often in our sequential tests can save run and
diagnostic time due to failed tests that were dependent on others.

This commit includes a first use of `Depends On Test` KW in:
420__model_serving.robot suite.

Signed-off-by: manosnoam <nmanos@redhat.com>
  • Loading branch information
manosnoam authored Mar 27, 2024
1 parent 5db9e26 commit a3de25b
Show file tree
Hide file tree
Showing 4 changed files with 1,809 additions and 1,371 deletions.
1 change: 1 addition & 0 deletions ods_ci/tests/Resources/Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Library SeleniumLibrary
Library JupyterLibrary
Library OperatingSystem
Library DependencyLibrary
Library Process
Library RequestsLibrary
Library ../../libs/Helpers.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Verify Openvino_IR Model Via UI
[Documentation] Test the deployment of an openvino_ir model
[Tags] Smoke
... ODS-2054
Create Openvino Models server_name=${RUNTIME_NAME} model_name=${MODEL_NAME} project_name=${PRJ_TITLE}
Create Openvino Models server_name=${RUNTIME_NAME} model_name=${MODEL_NAME} project_name=${PRJ_TITLE}
... num_projects=1
[Teardown] Run Keyword If Test Failed Get Modelmesh Events And Logs
... server_name=${RUNTIME_NAME} project_title=${PRJ_TITLE}
Expand All @@ -54,6 +54,7 @@ Test Inference Without Token Authentication
... Intermittently failing: RHOAIENG-3115
[Tags] Smoke FlakyTest
... ODS-2053
Depends On Test Verify Openvino_IR Model Via UI
Run Keyword And Continue On Failure Verify Model Inference ${MODEL_NAME} ${INFERENCE_INPUT_OPENVINO}
... ${EXPECTED_INFERENCE_OUTPUT_OPENVINO} token_auth=${FALSE}
[Teardown] Run Keyword If Test Failed Get Modelmesh Events And Logs
Expand Down
Loading

0 comments on commit a3de25b

Please sign in to comment.