Test Case Creator
Estimated reading: 2 minutes
This component enables bulk creation of Test Cases under a specific Test Suite and supporting inputs.
Parameters
| Parameter | Description |
|---|---|
| Organization | Name of the Azure DevOps organization where the project resides. |
| Project | Name of the Azure DevOps project to manage Test Cases. |
| PAT (Personal Access Token) | Personal Access Token used for authentication with Azure DevOps, granting necessary permissions to access and modify test artifacts. |
| Test Plan ID | ID of the existing Test Plan under which the Test Cases will be managed. |
| Test Suite ID | ID of the Test Suite under which the Test Cases will be added or updated. |
| Test Cases JSON | JSON-formatted data containing the details of the Test Cases to be created or updated, including titles, descriptions, steps, and expected results. |
Output: Returns created Test Case IDs and their creation status.
Sample Json
[
{
"title": "Successful login with correct credentials",
"steps": [
{"action": "Navigate to https://www.saucedemo.com/", "expected": "Login page is displayed"},
{"action": "Enter 'problem_user' in the Username field", "expected": "Username is accepted"},
{"action": "Enter 'secret_sauce' in the Password field", "expected": "Password is accepted"},
{"action": "Click the Login button", "expected": "User is redirected to the inventory page"}
]
},
{
"title": "Login with incorrect password",
"steps": [
{"action": "Navigate to https://www.saucedemo.com/", "expected": "Login page is displayed"},
{"action": "Enter 'problem_user' in the Username field", "expected": "Username is accepted"},
{"action": "Enter 'wrong_password' in the Password field", "expected": "Password is accepted"},
{"action": "Click the Login button", "expected": "Error message is displayed for incorrect password"}
]
}
]