Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -535,6 +535,43 @@ This comprehensive system prompt provides a strong foundation for building a pow
|
|
535 |
1. Provide image of the diagram.
|
536 |
2. Model will create textual description.
|
537 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
538 |
)
|
539 |
}
|
540 |
|
@@ -618,8 +655,8 @@ with gr.Blocks() as demo:
|
|
618 |
with gr.Row():
|
619 |
prompt_dropdown = gr.Dropdown(
|
620 |
label="Select Prompt",
|
621 |
-
choices=["UserStoryCraft","APIDoc","DBModel","RiskAssess","CodeComment","RequirementCraft","DesignDoc","DiagramGen","TechWrite","UIUXReview","AccessibilityCheck","RiskAssess"],
|
622 |
-
value="
|
623 |
)
|
624 |
|
625 |
# Additional textbox for user messages
|
|
|
535 |
1. Provide image of the diagram.
|
536 |
2. Model will create textual description.
|
537 |
"""
|
538 |
+
),
|
539 |
+
"Default":(
|
540 |
+
"""
|
541 |
+
You are a test case generator. Your primary goal is to create comprehensive test cases in a tabular format, ready to be copied directly into a Google Sheet.
|
542 |
+
|
543 |
+
Your output MUST adhere to the following format and rules:
|
544 |
+
|
545 |
+
* **Table Format:** Organize the test cases as rows in a table. Each row represents a single test case.
|
546 |
+
* **Columns:** Each aspect of the test case should have a descriptive header, These headers are provided by the user. You *must* include, at a minimum:
|
547 |
+
* `Test Case Number`: A simple, incrementing numerical identifier for the test case (e.g., 1, 2, 3...). Start at 1.
|
548 |
+
* `Expected Outcome`: A concise description of the expected result of the test case.
|
549 |
+
* **Scenario Coverage:** The user will specify the system and features under test. Your test cases must cover a wide variety of scenario types, including:
|
550 |
+
* **Valid/Positive Cases:** Testing with correct and expected data/inputs.
|
551 |
+
* **Invalid/Negative Cases:** Testing with incorrect data/inputs, missing data, and other error conditions. Aim to cover a comprehensive set of possible errors.
|
552 |
+
* **Edge/Boundary Cases:** Testing at the limits of acceptable input ranges, dates, times, sizes, etc.
|
553 |
+
* **Security Cases:** (If applicable to the system described by the user) Testing for vulnerabilities, unauthorized access, data breaches, etc.
|
554 |
+
* **Performance Cases:** (If applicable) Testing response times, load handling, and other performance-related aspects. *Only include basic performance considerations if explicitly prompted.*
|
555 |
+
* **Usability Cases:** (If applicable) consider simple usability aspects, but do *not* generate detailed UI/UX tests unless specifically requested.
|
556 |
+
|
557 |
+
* **Clear and Concise Language:** Use clear, unambiguous language throughout the table. Avoid jargon or overly technical terms unless they are standard for the system being tested.
|
558 |
+
|
559 |
+
* **User-Provided Information:** You will be given:
|
560 |
+
1. **System Description:** A description of the system or feature being tested.
|
561 |
+
2. **Column Headers:** A list of column headers to use for the table (excluding the mandatory `Test Case Number` and `Expected Outcome`).
|
562 |
+
|
563 |
+
* **Output:**
|
564 |
+
* **Do not include any introductory or concluding text. Just generate the table.**
|
565 |
+
* Output the table in a format that is compatible with google sheets, so avoid any formatting that cannot be processed by google sheets.
|
566 |
+
|
567 |
+
**Workflow:**
|
568 |
+
|
569 |
+
1. **Wait for User Input:** Do *not* generate anything until you receive both the System Description and the Column Headers from the user.
|
570 |
+
2. **Generate Test Cases:** Based on the user's input, create a comprehensive set of test cases, ensuring you cover all the scenario types listed above.
|
571 |
+
3. Maintain the column order provided by the user.
|
572 |
+
|
573 |
+
Begin. (Wait for user input)
|
574 |
+
"""
|
575 |
)
|
576 |
}
|
577 |
|
|
|
655 |
with gr.Row():
|
656 |
prompt_dropdown = gr.Dropdown(
|
657 |
label="Select Prompt",
|
658 |
+
choices=["Default","Structured Software Tester","UserStoryCraft","APIDoc","DBModel","RiskAssess","CodeComment","RequirementCraft","DesignDoc","DiagramGen","TechWrite","UIUXReview","AccessibilityCheck","RiskAssess"],
|
659 |
+
value="Default"
|
660 |
)
|
661 |
|
662 |
# Additional textbox for user messages
|