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 }}" == "gp" ]; then
98+ echo "Running Golden Path Tests..."
99+ xvfb-run pytest -m gp --headed --html=report/report.html --self-contained-html
100+ else
101+ echo "Running All Tests..."
102+ xvfb-run pytest --headed --html=report/report.html --self-contained-html
103+ fi
91104 working-directory : tests/e2e-test
92105 continue-on-error : true
93106
@@ -100,7 +113,13 @@ jobs:
100113 id : test2
101114 if : ${{ steps.test1.outcome == 'failure' }}
102115 run : |
103- xvfb-run pytest --headed --html=report/report.html --self-contained-html
116+ if [ "${{ env.test_suite }}" == "gp" ]; then
117+ echo "Running Golden Path Tests..."
118+ xvfb-run pytest -m gp --headed --html=report/report.html --self-contained-html
119+ else
120+ echo "Running All Tests..."
121+ xvfb-run pytest --headed --html=report/report.html --self-contained-html
122+ fi
104123 working-directory : tests/e2e-test
105124 continue-on-error : true
106125
@@ -113,7 +132,13 @@ jobs:
113132 id : test3
114133 if : ${{ steps.test2.outcome == 'failure' }}
115134 run : |
116- xvfb-run pytest --headed --html=report/report.html --self-contained-html
135+ if [ "${{ env.test_suite }}" == "gp" ]; then
136+ echo "Running Golden Path Tests..."
137+ xvfb-run pytest -m gp --headed --html=report/report.html --self-contained-html
138+ else
139+ echo "Running All Tests..."
140+ xvfb-run pytest --headed --html=report/report.html --self-contained-html
141+ fi
117142 working-directory : tests/e2e-test
118143
119144 - name : Upload test report
@@ -127,7 +152,12 @@ jobs:
127152 - name : Generate E2E Test Summary
128153 if : always()
129154 run : |
130- echo "## 🧪 E2E Test Job Summary" >> $GITHUB_STEP_SUMMARY
155+ # Determine test suite type for title
156+ if [ "${{ env.test_suite }}" == "gp" ]; then
157+ echo "## 🧪 E2E Test Job Summary : Golden Path testing" >> $GITHUB_STEP_SUMMARY
158+ else
159+ echo "## 🧪 E2E Test Job Summary : Smoke testing" >> $GITHUB_STEP_SUMMARY
160+ fi
131161 echo "" >> $GITHUB_STEP_SUMMARY
132162 echo "| Field | Value |" >> $GITHUB_STEP_SUMMARY
133163 echo "|-------|--------|" >> $GITHUB_STEP_SUMMARY
@@ -141,6 +171,7 @@ jobs:
141171 fi
142172
143173 echo "| **Target URL** | [${{ env.url }}](${{ env.url }}) |" >> $GITHUB_STEP_SUMMARY
174+ echo "| **Test Suite** | \`${{ env.test_suite }}\` |" >> $GITHUB_STEP_SUMMARY
144175 echo "| **Test Report** | [Download Artifact](${{ steps.upload_report.outputs.artifact-url }}) |" >> $GITHUB_STEP_SUMMARY
145176 echo "" >> $GITHUB_STEP_SUMMARY
146177
0 commit comments