Test Plan Cases Creator

Estimated reading: 2 minutes

This component automates the creation of a new Test Plan, its Test Suites, and multiple Test Cases in a single workflow. 

Parameters

Parameter Description
Organization Name of the Azure DevOps organization where the project resides.
Project Name of the Azure DevOps project to manage Test Plans and 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 an existing Test Plan where Test Cases will be created or 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 details of the Test Cases to be created or updated, including titles, descriptions, steps, and expected results.

Output: Returns IDs and creation status for each entity created (Test Plan, Suites, and Cases). 

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"}
    ]
  }
]
Share this Doc

Test Plan Cases Creator

Or copy link

CONTENTS