Get Plan By ID

The endpoint retrieves a test plan based on the plan's name or ID. The test plan is returned as a PlanDTO object.


Endpoint Information

  • URL: <custom-env-url>/Testinium.RestApi/api/plans/{planNameOrId}

  • Method: GET

  • Authentication: Requires Bearer Token


Path Variables

Parameter
Type
Required
Description

planNameOrId

Object

Yes

The name or ID of the test plan.


Response Body

Upon a successful request, the API returns the test plan in JSON format.

{
    "id": 29,
    "project_id": 20,
    "company_id": 8,
    "plan_name": "Grup Bilgi Güncelleme",
    "group_plan": false,
    "description": "",
    "enabled": true,
    "plan_parallel_test_limit": 0,
    "scenarios": [
        124
    ],
    "period": {
        "period_type": "ONCE",
        "once_date": 1420616640000,
        "days_of_week": "",
        "repeat_period": 60
    },
    "alerts": [],
    "alerts_enabled": true,
    "video_enabled": false,
    "environments": [
        {
            "id": 74
        }
    ],
    "clear_app_data": false,
    "fetch_app_files": []
}
Field
Type
Description

id

integer

The unique ID of the test plan.

plan_name

string

The name of the test plan.

description

string

A brief description of the test plan.

project_id

integer

The ID of the associated project.

company_id

integer

The ID of the associated company.

enabled

boolean

Whether the plan is enabled or not.

scenarios

array

A list of scenario IDs associated with the plan.

period

object

The period configuration for the plan.

alerts

array

A list of alerts associated with the plan.

video_enabled

boolean

Whether video recording is enabled for the plan.

environments

array

A list of environments related to the plan.

clear_app_data

boolean

Whether app data should be cleared.

fetch_app_files

array

A list of files to be fetched for the plan.


Error Codes

Possible error codes and their explanations during the operation:

HTTP Code
Error Message
Description

401

Unauthorized

Authorization failed. User is not logged in.

403

Forbidden

User does not have permission to access the specified plan.

404

Plan not found

The specified plan was not found.

500

Internal Server Error

An unexpected error occurred on the server.


Example Request

curl -X GET "<custom-env-url>/Testinium.RestApi/api/plans/{planNameOrId}" \
-H "Authorization: Bearer <your_access_token>" \
-H "Accept: application/json"

Last updated