Get All Group Scenarios
8 min
this endpoint is used to retrieve all group scenarios for a specific project in the system endpoint information url https //testinium io/testinium restapi/api/projects/{projectid}/groupscenarios method get authentication required ( bearer token ) headers required ( current company id \<your company id> ) path parameters parameter type required description projectid string yes the id of the project to retrieve group scenarios for response the response will contain a list of group scenarios and their associated child scenarios \[ { "id" 247459, "type" "selenium", "scenario name" "deneme13", "description" "deneme123", "enabled" true, "deleted" false, "testrail enabled" false, "execute mode" "automated", "project id" 3986, "childs" \[ { "id" 247460, "type" "selenium", "scenario name" "denemescenario", "description" "", "enabled" true, "deleted" false, "testrail enabled" false, "execute mode" "automated", "source file" "works spec", "max execution time" 60, "project id" 3986, "parameterized" false, "has parameterized class" false, "java test class" "works", "java test methods" "@saveandsendwithnotconfirm", "test scenario java parameters" \[], "group" false }, { "id" 247461, "type" "selenium", "scenario name" "subscenario", "description" "add sub scenario", "enabled" true, "deleted" false, "testrail enabled" false, "execute mode" "automated", "source file" "settings spec", "project id" 3986, "parameterized" false, "has parameterized class" false, "java test class" "settings", "java test methods" "@changelanguage", "test scenario java parameters" \[], "group" false } ], "parameterized" false, "has parameterized class" false, "test scenario java parameters" \[], "group" true } ] response fields field type description id integer the unique identifier of the group scenario type string the type of scenario (e g , "selenium") scenario name string the name of the scenario description string a description of the scenario enabled boolean whether the scenario is enabled or not deleted boolean whether the scenario is deleted or not testrail enabled boolean whether the scenario is enabled for testrail integration execute mode string the execution mode (e g , "automated") project id integer the project id to which the scenario belongs childs array a list of child scenarios (if any) parameterized boolean whether the scenario is parameterized has parameterized class boolean whether the scenario has parameterized classes test scenario java parameters array a list of java test parameters (if any) group boolean whether the scenario is a group scenario error codes http code error message description 404 project not found the specified projectid was not found 401 unauthorized user the user is unauthorized or the token is missing/invalid 500 internal server error a general server error occurred example request curl location request get 'https //testinium io/testinium restapi/api/projects/{projectid}/groupscenarios' \\ \ header 'authorization bearer \<your access token>' \\ \ header 'current company id \<your company id>' \\ \ header 'content type application/json'