Skip to content

Commit bb762a6

Browse files
smoke testing scenarios
1 parent 45e35e3 commit bb762a6

10 files changed

Lines changed: 3089 additions & 13 deletions

File tree

azure.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ environment:
22
name: document-generation
33
location: eastus
44

5-
name: document-generation
6-
metadata:
7-
template: document-generation@1.0
5+
# name: document-generation
6+
# metadata:
7+
# template: document-generation@1.0
88

99
requiredVersions:
1010
azd: '>= 1.18.0'

infra/scripts/run_create_index_scripts.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ fi
145145
# Determine the correct Python command
146146
if command -v python3 && python3 --version &> /dev/null; then
147147
PYTHON_CMD="python3"
148-
elif command -v python && python --version &> /dev/null; then
148+
elif command -v python && py --version &> /dev/null; then
149149
PYTHON_CMD="python"
150150
else
151151
echo "Python is not installed on this system. Or it is not added in the PATH."
@@ -181,15 +181,15 @@ error_flag=false
181181
# Run the scripts
182182
echo "Running the python scripts"
183183
echo "Creating the search index"
184-
python infra/scripts/index_scripts/01_create_search_index.py
184+
py infra/scripts/index_scripts/01_create_search_index.py
185185
if [ $? -ne 0 ]; then
186186
echo "Error: 01_create_search_index.py failed."
187187
error_flag=true
188188
fi
189189

190190
if [ "$error_flag" = false ]; then
191191
echo "Processing the data"
192-
python infra/scripts/index_scripts/02_process_data.py
192+
py infra/scripts/index_scripts/02_process_data.py
193193
if [ $? -ne 0 ]; then
194194
echo "Error: 02_process_data.py failed."
195195
error_flag=true

logs/tests.log

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
INFO tests.test_st_docgen_tc:test_st_docgen_tc.py:628 Step 1: Verify login is successful and Document Generation page is displayed
2+
INFO tests.test_st_docgen_tc:test_st_docgen_tc.py:633 Execution Time for 'Validate home page is loaded': 9.17s
3+
INFO tests.test_st_docgen_tc:test_st_docgen_tc.py:636 Step 2: Navigate to Generate page
4+
INFO tests.test_st_docgen_tc:test_st_docgen_tc.py:640 Generate chat conversation page is displayed successfully
5+
INFO tests.test_st_docgen_tc:test_st_docgen_tc.py:642 Execution Time for 'Navigate to Generate page': 11.32s
6+
INFO tests.test_st_docgen_tc:test_st_docgen_tc.py:645 Step 3: Click on 'Show template history' button
7+
INFO tests.test_st_docgen_tc:test_st_docgen_tc.py:650 Template history window with saved history threads is displayed
8+
INFO tests.test_st_docgen_tc:test_st_docgen_tc.py:652 Execution Time for 'Show template history': 2.26s
9+
INFO tests.test_st_docgen_tc:test_st_docgen_tc.py:655 Step 4: Select a session thread and click on Delete icon
10+
INFO pages.generatePage:generatePage.py:193 Clicked delete icon on thread at index 0
11+
INFO pages.generatePage:generatePage.py:198 Delete confirmation dialog appeared
12+
INFO pages.generatePage:generatePage.py:203 Delete confirmation text verified
13+
INFO pages.generatePage:generatePage.py:209 Clicked Delete in confirmation dialog
14+
INFO pages.generatePage:generatePage.py:213 Delete confirmation dialog closed
15+
INFO pages.generatePage:generatePage.py:220 Thread at index 0 successfully deleted. Thread count decreased from 4 to 3
16+
INFO tests.test_st_docgen_tc:test_st_docgen_tc.py:665 Execution Time for 'Click delete icon': 7.71s
17+
INFO tests.test_st_docgen_tc:test_st_docgen_tc.py:667 Test - Template history delete functionality completed successfully

0 commit comments

Comments
 (0)