ArvindSelvaraj
commited on
Commit
•
5188f5a
1
Parent(s):
2599152
Update backend.py
Browse files- backend.py +16 -2
backend.py
CHANGED
@@ -32,8 +32,22 @@ def generate_testcases(user_story):
|
|
32 |
:return: A list of dictionaries with test case information.
|
33 |
"""
|
34 |
few_shot_examples = """
|
35 |
-
"
|
36 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
"""
|
38 |
|
39 |
prompt = few_shot_examples + f"\nUser Story: {user_story}\n"
|
|
|
32 |
:return: A list of dictionaries with test case information.
|
33 |
"""
|
34 |
few_shot_examples = """
|
35 |
+
"if its not a DropBury or ODAC Portal User Story, then we perform testing in Tech360 iOS App"
|
36 |
+
"Generate as many as testcases possible minimum 6 ,maximum it can be anything"
|
37 |
+
"Understand the story thoroughly"
|
38 |
+
"If it's a DropBury or ODAC Portal User Story, then we perform testing in ODAC Portal"
|
39 |
+
|
40 |
+
Please generate test cases in the following format:
|
41 |
+
|
42 |
+
Test Case 1:
|
43 |
+
Preconditions: [Describe any preconditions here]
|
44 |
+
Steps: [List the steps required to perform the test]
|
45 |
+
Expected Result: [Describe the expected result of the test]
|
46 |
+
|
47 |
+
Test Case 2:
|
48 |
+
Preconditions: [Describe any preconditions here]
|
49 |
+
Steps: [List the steps required to perform the test]
|
50 |
+
Expected Result: [Describe the expected result of the test]
|
51 |
"""
|
52 |
|
53 |
prompt = few_shot_examples + f"\nUser Story: {user_story}\n"
|