Get Test Scenarios By Filter
This endpoint retrieves a paginated list of test scenarios based on optional filtering criteria such as project ID, test plan ID, and scenario text. The user must have the PLAN_VIEW
authority to access this endpoint.
Endpoint Information
URL:
https://testinium.io/Testinium.RestApi/api/scenarios/filter
Method:
GET
Authentication: Required (
Bearer Token
)Header: Required (
current-company-id: <your_company_id>
)
Request Parameters
page
Integer
Yes
-
The page number to retrieve (pagination).
size
Integer
Yes
-
Number of items per page.
projectId
Long
No
null
Filters scenarios by the specified project ID.
planId
Long
No
null
Filters scenarios by the specified test plan ID.
scenarioText
String
No
null
Filters scenarios based on scenario name or description.
email
String
No
null
Filters scenarios for the specified user email (optional).
Response
The response is a paginated list of test scenarios.
Response Fields
current_page
Integer
The current page number.
total_count
Integer
Total number of scenarios matching the filter criteria.
page_count
Integer
Total number of pages available.
next_page
String
URL for the next page (if available).
previous_page
String
URL for the previous page (if available).
item_list
Array
List of test scenarios on the current page.
id
Long
Unique ID of the test scenario.
type
String
The type of scenario (SELENIUM
, APPIUM
, etc.).
scenario_name
String
Name of the test scenario.
description
String
Description of the scenario (if any).
enabled
Boolean
Whether the scenario is enabled.
deleted
Boolean
Whether the scenario has been deleted.
testrail_enabled
Boolean
Whether TestRail integration is enabled.
execute_mode
String
Execution mode (AUTOMATED
, MANUAL
).
source_file
String
The source file where the scenario is defined.
project_id
Long
The ID of the associated project.
plans
Array
List of test plan IDs that include this scenario.
childs
Array
Child scenarios (if applicable).
parameterized
Boolean
Whether the scenario uses parameterization.
has_parameterized_class
Boolean
Whether it has a parameterized Java class.
java_test_class
String
The Java test class used in execution.
java_test_methods
String
The Java test method(s) executed in this scenario.
test_scenario_java_parameters
Array
Java parameters used in the test scenario.
group
Boolean
Whether this scenario belongs to a group.
Error Codes
403
ACCESS_DENIED
User lacks PLAN_VIEW
authority.
401
UNAUTHORIZED_USER
User email does not match the email
parameter.
400
INVALID_REQUEST
The request was malformed or contained invalid parameters.
500
SYSTEM_INTERNAL_ERROR
An unexpected error occurred on the server side.
Example Request
Last updated