Ananas APItest bench
staging api.qa2.ananastest.com
TC-ADD-02 Positive changes data

Sending the minimum required data set

Verify that the system accepts a catalog with only the minimum required fields

! Documented discrepancy · errors.txt

All tests in this section: All the import tests return the code 202 and not 200 in case of success.

Specification · xlsx

Steps

  1. Send a catalog containing only the required fields

Expected result

HTTP 200; request accepted

Endpoints

POST /product/api/v1/merchant-integration/import

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/ImportTest.php::tc_add_02()
117// Verify that the system accepts a catalog with only the minimum required fields
118public function tc_add_02(): void
119{
120 $newItem = [
121 'name' => 'test',
122 'description' => 'test',
123 'coverImage' => 'test',
124 'ean' => 'test',
125 ];
126
127 $response = $this->ananas->addOrEditInBulk([$newItem]);
128 $this->assertEquals(202, $response['statusCode']);
129}

web/app/Scenarios/ImportScenarios.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.