TC-AUTH-02
Positive
Calling the endpoint multiple times
Verify endpoint stability under consecutive calls
Specification · xlsx
Steps
- Call the endpoint twice in a row
Expected result
HTTP 200 both times; a valid token is returned; no system errors
Endpoints
POST /iam/api/v1/auth/tokenGET /order/api/v1/merchant-integration/outbound-orders/statuses Run
- API_URL
https://api.qa2.ananastest.com
A dry run builds every request without sending it; responses come from a local stub.
Test code
mirrors tests/TokenTest.php::tc_auth_02()
23// Verify endpoint stability under consecutive calls
24public function tc_auth_02(): void
25{
26 $firstResponse = $this->ananas->getToken();
27 $this->assertEquals(200, $firstResponse['statusCode']);
28
29 $secondResponse = $this->ananas->getToken();
30 $this->assertEquals(200, $secondResponse['statusCode']);
31}
web/app/Scenarios/TokenScenarios.php · line numbers refer to this file
Not run yet. Run it against the API, or do a dry run to see the requests it would send.