Skip to content

Commit 0330728

Browse files
Added Smoke Testing Cases
1 parent fb96331 commit 0330728

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

.github/workflows/test-automation-v2.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ jobs:
9191
- name: Run tests(1)
9292
id: test1
9393
run: |
94-
xvfb-run pytest --headed --html=report/report.html --self-contained-html
94+
if [ "${{ inputs.TEST_SUITE }}" == "GoldenPath-Testing" ]; then
95+
xvfb-run pytest -m gp --html=report/report.html --self-contained-html
96+
else
97+
xvfb-run pytest --html=report/report.html --self-contained-html
98+
fi
9599
working-directory: tests/e2e-test
96100
continue-on-error: true
97101

@@ -104,7 +108,11 @@ jobs:
104108
id: test2
105109
if: ${{ steps.test1.outcome == 'failure' }}
106110
run: |
107-
xvfb-run pytest --headed --html=report/report.html --self-contained-html
111+
if [ "${{ inputs.TEST_SUITE }}" == "GoldenPath-Testing" ]; then
112+
xvfb-run pytest -m gp --html=report/report.html --self-contained-html
113+
else
114+
xvfb-run pytest --html=report/report.html --self-contained-html
115+
fi
108116
working-directory: tests/e2e-test
109117
continue-on-error: true
110118

@@ -117,7 +125,11 @@ jobs:
117125
id: test3
118126
if: ${{ steps.test2.outcome == 'failure' }}
119127
run: |
120-
xvfb-run pytest --headed --html=report/report.html --self-contained-html
128+
if [ "${{ inputs.TEST_SUITE }}" == "GoldenPath-Testing" ]; then
129+
xvfb-run pytest -m gp --html=report/report.html --self-contained-html
130+
else
131+
xvfb-run pytest --html=report/report.html --self-contained-html
132+
fi
121133
working-directory: tests/e2e-test
122134

123135
- name: Upload test report

tests/e2e-test/pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ log_cli_level = INFO
44
log_file = logs/tests.log
55
log_file_level = INFO
66
addopts = -p no:warnings
7+
8+
markers = gp: Golden Path tests

tests/e2e-test/tests/test_MACAE_Smoke_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
logger = logging.getLogger(__name__)
1212

1313

14-
14+
@pytest.mark.gp
1515
def test_retail_customer_success_workflow(login_logout, request):
1616
"""
1717
Validate Golden path for MACAE-v3.
@@ -444,7 +444,6 @@ def test_validate_source_text_not_visible(login_logout, request):
444444
raise
445445

446446

447-
448447
def test_rai_validation_unable_to_create_plan(login_logout, request):
449448
"""
450449
Validate RAI (Responsible AI) validation for 'Unable to create plan' message across all teams.

0 commit comments

Comments
 (0)