TC-PROD-07
Negative
Retrieving with a non-existent EAN
Verify system behavior when the product does not exist
Specification · xlsx
Steps
- Call the endpoint with a non-existent EAN code
Expected result
HTTP 200; empty results list
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_07()
87// Verify system behavior when the product does not exist
88public function tc_prod_07(): void
89{
90 $response = $this->ananas->getProducts(0, 200, false, '99999999999999999');
91
92 $this->assertEquals(200, $response['statusCode']);
93 $this->assertCount(0, $response['response']);
94}
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.