Get Scenarios by User Company
6 min
the endpoint retrieves all test scenarios associated with the authenticated user's companies it returns a list of scenariodto objects endpoint information url \<custom env url>/testinium restapi/api/scenarios method get authentication bearer token is required content type application/json response body upon a successful request, the api returns a list of test scenarios in json format { "id" 3, "scenario name" "webtest1", "description" "", "expected result" "", "enabled" true, "execute mode" "automated", "source file" "skechers spec", "java test class" "skechers", "java test methods" "@sc2" }, { "id" 4, "scenario name" "openapp", "description" "", "expected result" "", "enabled" true, "execute mode" "automated", "source file" "onlywakeup spec", "project id" 4, "java test class" "onlywakeup", "java test methods" "@onlywakeup" }, { "id" 109, "scenario name" "grupsenaryo", "enabled" true, "execute mode" "automated" } field type description id integer the unique id of the test scenario scenario name string the name of the test scenario description string a brief description of the test scenario enabled boolean indicates if the scenario is active execute mode string defines whether the scenario is automated or manual createdby string the user who created the scenario error codes http code error message description 401 unauthorized authorization failed the user is not logged in 403 forbidden the user does not have permission to access the scenarios 500 internal server error an unexpected error occurred on the server side example request curl location '\<custom env url>/testinium restapi/api/scenarios' \\ \ header 'accept application/json' \\ \ header 'authorization bearer \<your access token>' \\