Spaces:
Sleeping
Sleeping
Delete Sample_agent
Browse files- Sample_agent/test_case_generator_agent/.adk/session.db +0 -0
- Sample_agent/test_case_generator_agent/.env +0 -1
- Sample_agent/test_case_generator_agent/Dockerfile +0 -22
- Sample_agent/test_case_generator_agent/__init__.py +0 -1
- Sample_agent/test_case_generator_agent/__pycache__/__init__.cpython-312.pyc +0 -0
- Sample_agent/test_case_generator_agent/__pycache__/agent.cpython-312.pyc +0 -0
- Sample_agent/test_case_generator_agent/agent.py +0 -36
- Sample_agent/test_case_generator_agent/requirements.txt +0 -4
- Sample_agent/test_case_generator_agent/tmp/test_case_generator_agent/.adk/session.db +0 -0
- Sample_agent/test_case_generator_agent/tmp/test_case_generator_agent/.env +0 -1
- Sample_agent/test_case_generator_agent/tmp/test_case_generator_agent/__init__.py +0 -1
- Sample_agent/test_case_generator_agent/tmp/test_case_generator_agent/__pycache__/__init__.cpython-312.pyc +0 -0
- Sample_agent/test_case_generator_agent/tmp/test_case_generator_agent/__pycache__/agent.cpython-312.pyc +0 -0
- Sample_agent/test_case_generator_agent/tmp/test_case_generator_agent/agent.py +0 -36
Sample_agent/test_case_generator_agent/.adk/session.db
DELETED
|
Binary file (53.2 kB)
|
|
|
Sample_agent/test_case_generator_agent/.env
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
API_KEY=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
|
|
|
|
|
|
Sample_agent/test_case_generator_agent/Dockerfile
DELETED
|
@@ -1,22 +0,0 @@
|
|
| 1 |
-
# python base image
|
| 2 |
-
FROM python:3.10
|
| 3 |
-
|
| 4 |
-
# Set up the working directory
|
| 5 |
-
WORKDIR /app
|
| 6 |
-
|
| 7 |
-
# Copy all the files from this folder into the Docker container
|
| 8 |
-
COPY . /app
|
| 9 |
-
|
| 10 |
-
# Install the standard requirements
|
| 11 |
-
RUN pip install -r requirements.txt
|
| 12 |
-
# VERY IMPORTANT: If your 'adk' package was installed locally from an internal source,
|
| 13 |
-
# you MUST install it here as well.
|
| 14 |
-
# For example, if it's open source: RUN pip install google-adk
|
| 15 |
-
# Or copy the adk folder if it was manually provided to you.
|
| 16 |
-
|
| 17 |
-
# Hugging Face Spaces runs all Docker containers on port 7860
|
| 18 |
-
EXPOSE 7860
|
| 19 |
-
|
| 20 |
-
# The command to start the ADK web interface
|
| 21 |
-
# Note: Ensure the adk web command knows how to bind to port 7860
|
| 22 |
-
CMD ["adk", "web", "--port", "7860", "--host", "0.0.0.0"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sample_agent/test_case_generator_agent/__init__.py
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
from . import agent
|
|
|
|
|
|
Sample_agent/test_case_generator_agent/__pycache__/__init__.cpython-312.pyc
DELETED
|
Binary file (202 Bytes)
|
|
|
Sample_agent/test_case_generator_agent/__pycache__/agent.cpython-312.pyc
DELETED
|
Binary file (1.81 kB)
|
|
|
Sample_agent/test_case_generator_agent/agent.py
DELETED
|
@@ -1,36 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
from dotenv import load_dotenv
|
| 3 |
-
from google.adk.agents import Agent
|
| 4 |
-
from google.adk.models.lite_llm import LiteLlm
|
| 5 |
-
|
| 6 |
-
load_dotenv()
|
| 7 |
-
|
| 8 |
-
model = LiteLlm(
|
| 9 |
-
model="openai/gpt-4o-mini",
|
| 10 |
-
api_key=os.getenv("API_KEY"),
|
| 11 |
-
)
|
| 12 |
-
|
| 13 |
-
SYSTEM_PROMPT = """
|
| 14 |
-
You are an expert Senior Quality Assurance Engineer. Your goal is to help manual testers by automatically generating comprehensive, edge-case-heavy test suites from basic User Stories, Jira Tickets, or Acceptance Criteria.
|
| 15 |
-
|
| 16 |
-
When the user provides a requirement, you must generate a structured list of test cases divided into three categories:
|
| 17 |
-
1. Positive Scenarios (Happy Path)
|
| 18 |
-
2. Negative Scenarios (Error handling, invalid inputs)
|
| 19 |
-
3. Edge Cases (Boundary conditions, unusual user behavior, tricky states)
|
| 20 |
-
|
| 21 |
-
Format your output as a professional, easy-to-read Markdown table with the following columns:
|
| 22 |
-
| Test ID | Category | Scenario Description | Pre-conditions | Steps to Reproduce | Expected Result |
|
| 23 |
-
|
| 24 |
-
Rules:
|
| 25 |
-
- Be highly specific in your steps and expected results.
|
| 26 |
-
- Do not use vague terms like "it should fail." Instead use "System displays error message to the user: 'Invalid credentials'."
|
| 27 |
-
- Always include at least 2 tricky Edge Cases that a junior tester might forget.
|
| 28 |
-
- Keep the tone professional, concise, and ready to be copy-pasted into a test management tool like Jira or Zephyr.
|
| 29 |
-
"""
|
| 30 |
-
|
| 31 |
-
root_agent = Agent(
|
| 32 |
-
name="test_case_generator",
|
| 33 |
-
model=model,
|
| 34 |
-
description="Generates detailed test cases from user stories or acceptance criteria.",
|
| 35 |
-
instruction=SYSTEM_PROMPT,
|
| 36 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sample_agent/test_case_generator_agent/requirements.txt
DELETED
|
@@ -1,4 +0,0 @@
|
|
| 1 |
-
python-dotenv
|
| 2 |
-
google-generativeai
|
| 3 |
-
openai
|
| 4 |
-
requests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sample_agent/test_case_generator_agent/tmp/test_case_generator_agent/.adk/session.db
DELETED
|
Binary file (53.2 kB)
|
|
|
Sample_agent/test_case_generator_agent/tmp/test_case_generator_agent/.env
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
API_KEY=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
|
|
|
|
|
|
Sample_agent/test_case_generator_agent/tmp/test_case_generator_agent/__init__.py
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
from . import agent
|
|
|
|
|
|
Sample_agent/test_case_generator_agent/tmp/test_case_generator_agent/__pycache__/__init__.cpython-312.pyc
DELETED
|
Binary file (202 Bytes)
|
|
|
Sample_agent/test_case_generator_agent/tmp/test_case_generator_agent/__pycache__/agent.cpython-312.pyc
DELETED
|
Binary file (1.81 kB)
|
|
|
Sample_agent/test_case_generator_agent/tmp/test_case_generator_agent/agent.py
DELETED
|
@@ -1,36 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
from dotenv import load_dotenv
|
| 3 |
-
from google.adk.agents import Agent
|
| 4 |
-
from google.adk.models.lite_llm import LiteLlm
|
| 5 |
-
|
| 6 |
-
load_dotenv()
|
| 7 |
-
|
| 8 |
-
model = LiteLlm(
|
| 9 |
-
model="openai/gpt-4o-mini",
|
| 10 |
-
api_key=os.getenv("API_KEY"),
|
| 11 |
-
)
|
| 12 |
-
|
| 13 |
-
SYSTEM_PROMPT = """
|
| 14 |
-
You are an expert Senior Quality Assurance Engineer. Your goal is to help manual testers by automatically generating comprehensive, edge-case-heavy test suites from basic User Stories, Jira Tickets, or Acceptance Criteria.
|
| 15 |
-
|
| 16 |
-
When the user provides a requirement, you must generate a structured list of test cases divided into three categories:
|
| 17 |
-
1. Positive Scenarios (Happy Path)
|
| 18 |
-
2. Negative Scenarios (Error handling, invalid inputs)
|
| 19 |
-
3. Edge Cases (Boundary conditions, unusual user behavior, tricky states)
|
| 20 |
-
|
| 21 |
-
Format your output as a professional, easy-to-read Markdown table with the following columns:
|
| 22 |
-
| Test ID | Category | Scenario Description | Pre-conditions | Steps to Reproduce | Expected Result |
|
| 23 |
-
|
| 24 |
-
Rules:
|
| 25 |
-
- Be highly specific in your steps and expected results.
|
| 26 |
-
- Do not use vague terms like "it should fail." Instead use "System displays error message to the user: 'Invalid credentials'."
|
| 27 |
-
- Always include at least 2 tricky Edge Cases that a junior tester might forget.
|
| 28 |
-
- Keep the tone professional, concise, and ready to be copy-pasted into a test management tool like Jira or Zephyr.
|
| 29 |
-
"""
|
| 30 |
-
|
| 31 |
-
root_agent = Agent(
|
| 32 |
-
name="test_case_generator",
|
| 33 |
-
model=model,
|
| 34 |
-
description="Generates detailed test cases from user stories or acceptance criteria.",
|
| 35 |
-
instruction=SYSTEM_PROMPT,
|
| 36 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|