TC-PROD-03
Negative
Boundary
Exceeding the maximum value of the size parameter
Verify validation of the size parameter
Specification · xlsx
Steps
- Call the endpoint with size > 200
Expected result
The system returns an error or limits the result to a maximum of 200
Endpoints
GET /product/api/v1/merchant-integration/products 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/ProductsTest.php::tc_prod_03()
35// Verify validation of the size parameter
36public function tc_prod_03(): void
37{
38 $response = $this->ananas->getProducts(0, 20000);
39 $this->assertEquals(200, $response['statusCode']);
40 $this->assertIsArray($response['response']);
41 $this->assertTrue(count($response['response']) <= 200);
42}
web/app/Scenarios/ProductsScenarios.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.