Ananas APItest bench
staging api.qa2.ananastest.com
TC-PRICE-04 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_price_04()
84// Verify validation of required fields
85public function tc_price_04(): void
86{
87 $response = $this->ananas->editInBulk([]);
88
89 $this->assertEquals(400, $response['statusCode']);
90}

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.