Spaces:
Sleeping
Sleeping
update app.py
Browse files
app.py
CHANGED
@@ -53,6 +53,7 @@ def generate_test_cases(method, url, headers, payload=""):
|
|
53 |
- Performance test considerations
|
54 |
- Boundary condition tests
|
55 |
- Error handling scenarios
|
|
|
56 |
"""
|
57 |
|
58 |
# Check if generator is available
|
@@ -85,7 +86,7 @@ iface = gr.Interface(
|
|
85 |
gr.Textbox(label="HTTP Method (GET, POST, etc.)", placeholder="e.g., GET, POST"),
|
86 |
gr.Textbox(label="API URL", placeholder="e.g., https://api.example.com/endpoint"),
|
87 |
gr.Textbox(label="Headers (JSON format)", placeholder='e.g., {"Content-Type": "application/json"}'),
|
88 |
-
gr.Textbox(label="Payload (JSON format)", placeholder='e.g., {"key": "value"}'
|
89 |
],
|
90 |
outputs="text",
|
91 |
title="API Test Case Generator",
|
|
|
53 |
- Performance test considerations
|
54 |
- Boundary condition tests
|
55 |
- Error handling scenarios
|
56 |
+
Provide detailed test case descriptions with expected inputs and anticipated outcomes.
|
57 |
"""
|
58 |
|
59 |
# Check if generator is available
|
|
|
86 |
gr.Textbox(label="HTTP Method (GET, POST, etc.)", placeholder="e.g., GET, POST"),
|
87 |
gr.Textbox(label="API URL", placeholder="e.g., https://api.example.com/endpoint"),
|
88 |
gr.Textbox(label="Headers (JSON format)", placeholder='e.g., {"Content-Type": "application/json"}'),
|
89 |
+
gr.Textbox(label="Payload (JSON format)", placeholder='e.g., {"key": "value"}'),
|
90 |
],
|
91 |
outputs="text",
|
92 |
title="API Test Case Generator",
|