Skip to content

Commit 8033a84

Browse files
Integrated GP and Smoke Testing
1 parent c9e3713 commit 8033a84

3 files changed

Lines changed: 33 additions & 31 deletions

File tree

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,6 @@ jobs:
6464
exit 1
6565
fi
6666
67-
# Validate test suite is implemented
68-
if [ "${{ env.test_suite }}" == "Smoke-Testing" ]; then
69-
echo "ERROR: Smoke-Testing is not yet implemented"
70-
echo "Available test suites: GoldenPath-Testing"
71-
exit 1
72-
fi
73-
7467
echo "Testing URL: ${{ env.url }}"
7568
echo "Test Suite: ${{ env.test_suite }}"
7669
@@ -103,6 +96,8 @@ jobs:
10396
id: test1
10497
run: |
10598
if [ "${{ env.test_suite }}" == "GoldenPath-Testing" ]; then
99+
xvfb-run pytest -m goldenpath --headed --html=report/report.html --self-contained-html
100+
else
106101
xvfb-run pytest --headed --html=report/report.html --self-contained-html
107102
fi
108103
working-directory: tests/e2e-test
@@ -118,6 +113,8 @@ jobs:
118113
if: ${{ steps.test1.outcome == 'failure' }}
119114
run: |
120115
if [ "${{ env.test_suite }}" == "GoldenPath-Testing" ]; then
116+
xvfb-run pytest -m goldenpath --headed --html=report/report.html --self-contained-html
117+
else
121118
xvfb-run pytest --headed --html=report/report.html --self-contained-html
122119
fi
123120
working-directory: tests/e2e-test
@@ -133,6 +130,8 @@ jobs:
133130
if: ${{ steps.test2.outcome == 'failure' }}
134131
run: |
135132
if [ "${{ env.test_suite }}" == "GoldenPath-Testing" ]; then
133+
xvfb-run pytest -m goldenpath --headed --html=report/report.html --self-contained-html
134+
else
136135
xvfb-run pytest --headed --html=report/report.html --self-contained-html
137136
fi
138137
working-directory: tests/e2e-test

tests/e2e-test/pytest.ini

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

tests/e2e-test/tests/test_dkm_functional.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def capture_screenshot(page, step_name, test_prefix="test"):
4242
pass
4343

4444

45-
@pytest.mark.smoke
45+
@pytest.mark.goldenpath
4646
def test_golden_path_dkm(login_logout, request):
4747
"""
4848
Test Case 10591: Golden Path-DKM-test golden path demo script works properly
@@ -283,7 +283,7 @@ def test_golden_path_dkm(login_logout, request):
283283
logger.removeHandler(handler)
284284

285285

286-
@pytest.mark.smoke
286+
287287
def test_upload_default_github_data(login_logout, request):
288288
"""
289289
Test Case 10661: DKM-Upload default GitHub repo sample data
@@ -350,7 +350,7 @@ def test_upload_default_github_data(login_logout, request):
350350
logger.removeHandler(handler)
351351

352352

353-
@pytest.mark.smoke
353+
354354
def test_search_functionality(login_logout, request):
355355
"""
356356
Test Case 10671: DKM-Verify the search functionality
@@ -416,7 +416,7 @@ def test_search_functionality(login_logout, request):
416416
logger.removeHandler(handler)
417417

418418

419-
@pytest.mark.smoke
419+
420420
def test_chat_selected_document(login_logout, request):
421421
"""
422422
Test Case 10704: DKM-Test chat selected document
@@ -496,7 +496,7 @@ def test_chat_selected_document(login_logout, request):
496496
logger.removeHandler(handler)
497497

498498

499-
@pytest.mark.smoke
499+
500500
def test_chat_multiple_selected_documents(login_logout, request):
501501
"""
502502
Test Case 10705: DKM-Test chat multiple selected documents
@@ -575,7 +575,7 @@ def test_chat_multiple_selected_documents(login_logout, request):
575575
logger.removeHandler(handler)
576576

577577

578-
@pytest.mark.smoke
578+
579579
def test_chat_all_documents(login_logout, request):
580580
"""
581581
Test Case 10706: DKM-Test chat all documents
@@ -634,7 +634,7 @@ def test_chat_all_documents(login_logout, request):
634634
logger.removeHandler(handler)
635635

636636

637-
@pytest.mark.smoke
637+
638638
def test_jailbreak_questions(login_logout, request):
639639
"""
640640
Test Case 10707: DKM-Test questions to jailbreak
@@ -702,7 +702,7 @@ def test_jailbreak_questions(login_logout, request):
702702
logger.removeHandler(handler)
703703

704704

705-
@pytest.mark.smoke
705+
706706
def test_web_knowledge_questions(login_logout, request):
707707
"""
708708
Test Case 10708: DKM-Test questions to ask web knowledge
@@ -761,7 +761,7 @@ def test_web_knowledge_questions(login_logout, request):
761761
logger.removeHandler(handler)
762762

763763

764-
@pytest.mark.smoke
764+
765765
def test_send_button_disabled_by_default(login_logout, request):
766766
"""
767767
Test Case 14111: Bug-13861-DKM - Send prompt icon should be disabled by default
@@ -827,7 +827,7 @@ def test_send_button_disabled_by_default(login_logout, request):
827827
logger.removeHandler(handler)
828828

829829

830-
@pytest.mark.smoke
830+
831831
def test_validate_empty_spaces_chat_input(login_logout, request):
832832
"""
833833
Test Case 26217: DKM - Validate chat input handling for Empty / only-spaces
@@ -899,7 +899,7 @@ def test_validate_empty_spaces_chat_input(login_logout, request):
899899
logger.removeHandler(handler)
900900

901901

902-
@pytest.mark.smoke
902+
903903
def test_upload_different_file_types(login_logout, request):
904904
"""
905905
Test Case 10664: DKM-Upload one file of each supported filetype
@@ -964,7 +964,7 @@ def test_upload_different_file_types(login_logout, request):
964964
logger.removeHandler(handler)
965965

966966

967-
@pytest.mark.smoke
967+
968968
def test_upload_large_file(login_logout, request):
969969
"""
970970
Test Case 10665: OOS_DKM-Upload very large file size
@@ -1030,7 +1030,7 @@ def test_upload_large_file(login_logout, request):
10301030
logger.removeHandler(handler)
10311031

10321032

1033-
@pytest.mark.smoke
1033+
10341034
def test_upload_zero_byte_file(login_logout, request):
10351035
"""
10361036
Test Case 10666: DKM-Upload zero byte file
@@ -1085,7 +1085,7 @@ def test_upload_zero_byte_file(login_logout, request):
10851085
logger.removeHandler(handler)
10861086

10871087

1088-
@pytest.mark.smoke
1088+
10891089
def test_upload_unsupported_file(login_logout, request):
10901090
"""
10911091
Test Case 10667: DKM-Upload unsupported file
@@ -1140,7 +1140,7 @@ def test_upload_unsupported_file(login_logout, request):
11401140
logger.removeHandler(handler)
11411141

11421142

1143-
@pytest.mark.smoke
1143+
11441144
def test_documents_scrolling_pagination(login_logout, request):
11451145
"""
11461146
Test Case 10670: DKM-test documents section scrolling and pagination
@@ -1201,7 +1201,7 @@ def test_documents_scrolling_pagination(login_logout, request):
12011201
logger.removeHandler(handler)
12021202

12031203

1204-
@pytest.mark.smoke
1204+
12051205
def test_search_with_time_filter(login_logout, request):
12061206
"""
12071207
Test Case 10672: DKM-Test search documents with time filter
@@ -1272,7 +1272,7 @@ def test_search_with_time_filter(login_logout, request):
12721272
logger.removeHandler(handler)
12731273

12741274

1275-
@pytest.mark.smoke
1275+
12761276
def test_left_pane_filters(login_logout, request):
12771277
"""
12781278
Test Case 10700: DKM-Test left pane filters
@@ -1341,7 +1341,7 @@ def test_left_pane_filters(login_logout, request):
13411341
logger.removeHandler(handler)
13421342

13431343

1344-
@pytest.mark.smoke
1344+
13451345
def test_left_pane_and_search_filters(login_logout, request):
13461346
"""
13471347
Test Case 10702: DKM-Test left pane filters collision with search filters
@@ -1412,7 +1412,7 @@ def test_left_pane_and_search_filters(login_logout, request):
14121412
logger.removeHandler(handler)
14131413

14141414

1415-
@pytest.mark.smoke
1415+
14161416
def test_document_details_preview(login_logout, request):
14171417
"""
14181418
Test Case 10703: DKM-Test document details preview
@@ -1492,7 +1492,7 @@ def test_document_details_preview(login_logout, request):
14921492
logger.removeHandler(handler)
14931493

14941494

1495-
@pytest.mark.smoke
1495+
14961496
def test_confirm_references_citations(login_logout, request):
14971497
"""
14981498
Test Case 10710: DKM-Confirm references or citations in response
@@ -1564,7 +1564,7 @@ def test_confirm_references_citations(login_logout, request):
15641564
logger.removeHandler(handler)
15651565

15661566

1567-
@pytest.mark.smoke
1567+
15681568
def test_bug_sensitive_question_stuck(login_logout, request):
15691569
"""
15701570
Test Case 13539: Bug 12794 - Response Not Generated for Sensitive Question
@@ -1630,7 +1630,7 @@ def test_bug_sensitive_question_stuck(login_logout, request):
16301630
logger.removeHandler(handler)
16311631

16321632

1633-
@pytest.mark.smoke
1633+
16341634
def test_bug_chat_session_cleared(login_logout, request):
16351635
"""
16361636
Test Case 14704: Bug-13797-DKM-Chat session cleared when switch tabs
@@ -1706,7 +1706,7 @@ def test_bug_chat_session_cleared(login_logout, request):
17061706
logger.removeHandler(handler)
17071707

17081708

1709-
@pytest.mark.smoke
1709+
17101710
def test_bug_text_file_download(login_logout, request):
17111711
"""
17121712
Test Case 16787: Bug 16600 - Text file getting downloaded on click
@@ -1768,7 +1768,7 @@ def test_bug_text_file_download(login_logout, request):
17681768
logger.removeHandler(handler)
17691769

17701770

1771-
@pytest.mark.smoke
1771+
17721772
def test_bug_clear_all_button(login_logout, request):
17731773
"""
17741774
Test Case 16788: Bug 16599 - Clear All Button should reset search box

0 commit comments

Comments
 (0)