TC-STOCK-06
Negative
changes data Updating with a non-existent ID
Verify ID validation
Specification · xlsx
Steps
- Send the request with a non-existent ID
Expected result
The system returns an error
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_stock_06()
244// Verify ID validation
245public function tc_stock_06(): void
246{
247 $productData = [
248 [
249 'id' => 999999999999999999,
250 'stockLevel' => 123456,
251 ],
252 ];
253
254 $response = $this->ananas->editInBulk($productData);
255
256 $this->assertEquals(200, $response['statusCode']);
257 $this->assertEquals('FAIL', $response['response'][0]['status']);
258}
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.