TC-PRICE-05
Negative
changes data Updating with a non-existent ID
Verify ID validation
Specification · xlsx
Steps
- Send the request with an ID that does not exist
Expected result
The system returns an error in the response
Endpoints
PUT /product/api/v1/merchant-integration/product/bulk 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/BulkTest.php::tc_price_05()
92// Verify ID validation
93public function tc_price_05(): void
94{
95 $productData = [
96 [
97 'id' => 999999999999999999,
98 'basePrice' => 123456,
99 ],
100 ];
101
102 $response = $this->ananas->editInBulk($productData);
103
104 $this->assertEquals(200, $response['statusCode']);
105 $this->assertEquals('FAIL', $response['response'][0]['status']);
106}
web/app/Scenarios/BulkScenarios.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.