Ananas APItest bench
staging api.qa2.ananastest.com
TC-STOCK-05 Negative changes data

Updating without an ID

Verify validation of required fields

Specification · xlsx

Steps

  1. Send the request without an ID

Expected result

HTTP 400; request rejected

Endpoints

PUT /product/api/v1/merchant-integration/product/bulk

Run

API_URL
https://api.qa2.ananastest.com

Change parameters

A dry run builds every request without sending it; responses come from a local stub.

Test code

mirrors tests/BulkTest.php::tc_stock_05()
236// Verify validation of required fields
237public function tc_stock_05(): void
238{
239 $response = $this->ananas->editInBulk([]);
240
241 $this->assertEquals(400, $response['statusCode']);
242}

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.