Ananas APItest bench
staging api.qa2.ananastest.com
TC-PROD-01 Positive

Retrieving the first page of results

Verify that the endpoint returns a list of linked products

Specification · xlsx

Steps

  1. Call the endpoint with page=0 and size=200

Expected result

HTTP 200; product list returned

Endpoints

GET /product/api/v1/merchant-integration/products

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/ProductsTest.php::tc_prod_01()
13// Verify that the endpoint returns a list of linked products
14public function tc_prod_01(): void
15{
16 $response = $this->ananas->getProducts(0, 200);
17 $this->assertEquals(200, $response['statusCode']);
18 $this->assertIsArray($response['response']);
19}

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