77 required : true
88 type : string
99 description : " Web URL for Content Processing"
10+ TEST_SUITE :
11+ required : false
12+ type : string
13+ default : " GoldenPath-Testing"
14+ description : " Test suite to run: 'Smoke-Testing', 'GoldenPath-Testing' "
1015 secrets :
1116 EMAILNOTIFICATION_LOGICAPP_URL_TA :
1217 required : false
2227env :
2328 url : ${{ inputs.CP_WEB_URL }}
2429 accelerator_name : " Content Processing"
30+ test_suite : ${{ inputs.TEST_SUITE }}
2531
2632jobs :
2733 test :
5864 exit 1
5965 fi
6066 echo "Testing URL: ${{ env.url }}"
67+ echo "Test Suite: ${{ env.test_suite }}"
6168
6269
6370 - name : Wait for Application to be Ready
8794 - name : Run tests(1)
8895 id : test1
8996 run : |
90- xvfb-run pytest --headed --html=report/report.html --self-contained-html
97+ if [ "${{ env.test_suite }}" == "GoldenPath-Testing" ]; then
98+ xvfb-run pytest -m gp --headed --html=report/report.html --self-contained-html
99+ else
100+ xvfb-run pytest --headed --html=report/report.html --self-contained-html
101+ fi
91102 working-directory : tests/e2e-test
92103 continue-on-error : true
93104
@@ -100,7 +111,11 @@ jobs:
100111 id : test2
101112 if : ${{ steps.test1.outcome == 'failure' }}
102113 run : |
103- xvfb-run pytest --headed --html=report/report.html --self-contained-html
114+ if [ "${{ env.test_suite }}" == "GoldenPath-Testing" ]; then
115+ xvfb-run pytest -m gp --headed --html=report/report.html --self-contained-html
116+ else
117+ xvfb-run pytest --headed --html=report/report.html --self-contained-html
118+ fi
104119 working-directory : tests/e2e-test
105120 continue-on-error : true
106121
@@ -113,7 +128,11 @@ jobs:
113128 id : test3
114129 if : ${{ steps.test2.outcome == 'failure' }}
115130 run : |
116- xvfb-run pytest --headed --html=report/report.html --self-contained-html
131+ if [ "${{ env.test_suite }}" == "GoldenPath-Testing" ]; then
132+ xvfb-run pytest -m gp --headed --html=report/report.html --self-contained-html
133+ else
134+ xvfb-run pytest --headed --html=report/report.html --self-contained-html
135+ fi
117136 working-directory : tests/e2e-test
118137
119138 - name : Upload test report
@@ -127,7 +146,12 @@ jobs:
127146 - name : Generate E2E Test Summary
128147 if : always()
129148 run : |
130- echo "## 🧪 E2E Test Job Summary" >> $GITHUB_STEP_SUMMARY
149+ # Determine test suite type for title
150+ if [ "${{ env.test_suite }}" == "GoldenPath-Testing" ]; then
151+ echo "## 🧪 E2E Test Job Summary : Golden Path Testing" >> $GITHUB_STEP_SUMMARY
152+ else
153+ echo "## 🧪 E2E Test Job Summary : Smoke Testing" >> $GITHUB_STEP_SUMMARY
154+ fi
131155 echo "" >> $GITHUB_STEP_SUMMARY
132156 echo "| Field | Value |" >> $GITHUB_STEP_SUMMARY
133157 echo "|-------|--------|" >> $GITHUB_STEP_SUMMARY
@@ -141,6 +165,7 @@ jobs:
141165 fi
142166
143167 echo "| **Target URL** | [${{ env.url }}](${{ env.url }}) |" >> $GITHUB_STEP_SUMMARY
168+ echo "| **Test Suite** | \`${{ env.test_suite }}\` |" >> $GITHUB_STEP_SUMMARY
144169 echo "| **Test Report** | [Download Artifact](${{ steps.upload_report.outputs.artifact-url }}) |" >> $GITHUB_STEP_SUMMARY
145170 echo "" >> $GITHUB_STEP_SUMMARY
146171
0 commit comments