| Step Description | Expected result |
|---|---|
| Request with method GET and Basic Auth AAA_WSKEY_AAA the endpoint [http://domain.tld/api/categories?schema=blank | http://domain.tld/api/countries?schema=blank] |
| Request with method GET and Basic Auth AAA_WSKEY_AAA the endpoint [http://domain.tld/api/categories?schema=synopsis | http://domain.tld/api/countries?schema=synopsis] |
| Request with method GET and Basic Auth AAA_WSKEY_AAA the endpoint [http://domain.tld/api/categories | http://domain.tld/api/countries] |
| Request with method POST and Basic Auth AAA_WSKEY_AAA the endpoint [http://domain.tld/api/categories | http://domain.tld/api/countries] with body (next cell) |
| Request with method GET and Basic Auth AAA_WSKEY_AAA the endpoint [http://domain.tld/api/categories/|http://domain.tld/api/countries/] {fetchedId} |
The response HTTP Code is 200 The XML code has a prestashop root node The root node has a category node. All nodes have same data like in post data |
| Go to BO > Catalog > Categories page | Categories page is displayed correctly |
| Filter the colum ID with the value {fetchedid} and click on search button | The number of filtered row = 1 |
| Click on edit button | The category page is displayed correctly |
| Check the value of each field on the form and the XML value in english and french name description meta title meta description |
All values are consistent |
| Go back to categories page and reset filters | |
| Request with method PUT and Basic Auth AAA_WSKEY_AAA the endpoint [http://domain.tld/api/categories | http://domain.tld/api/countries]/{fetchedId} with body (next cell) |
| Request with method GET and Basic Auth AAA_WSKEY_AAA the endpoint [http://domain.tld/api/categories/|http://domain.tld/api/countries/] {fetchedId} |
The response HTTP Code is 200 The XML code has a prestashop root node The root node has a category node. All nodes have same data like in post data |
| in Categories page > Filter the column “ID” with value {fetchedId} and click on the button Search | The number of filtered rows is equal to 1 |
| Click on Edit button at the end of the row | Edit Category Page is displayed correctly |
| Check the consistency of each following field on the form and the XML Value: * Name in English * Name in French * Description in English * Description in Frensh * Meta title in Englich * Meta title in Frensh * Active * Meta description in English * Meta description in French |
Alls values are consistent |
| Go back to categories page and reset filters | Filters are reset |
| Request with method DELETE and Basic Auth AAA_WSKEY_AAA the endpoint [http://domain.tld/api/c | http://domain.tld/api/countries]ategories/{fetchedId} |
| Request with method GET and Basic Auth AAA_WSKEY_AAA the endpoint [http://domain.tld/api/categories/|http://domain.tld/api/countries/] {fetchedId} |
The response HTTP Code is 404 |
| Filter the column “ID” with value {fetchedId} and click on the button Search | The number of filtered rows is equal to 0. |
| Reset filters | Filters are reset |
| In BO, Go to Advanced Parameters > Webservice | Webservice Page is displayed correctly |
| Filter the field “Key” with value XXXX and click on the button Search | The number of filtered rows is equal to 1 |
| On the first row, click on the button “Three points” | The dropdown is displayed |
| Click on the Delete Button in the dropdown | A modal appeared |
| Click on the Delete Button in the modal | The message “Successful deletion” is displayed The number of filtered rows is equal to 0. |
| Reset filters | No record founds is displayed |
| In BO, Go to Advanced Parameters > Webservice | Webservice Page is displayed correctly |
| Set unchecked the checkbox “Enable PrestaShop’s webservice” | The checkbox “Enable PrestaShop’s webservice” is not checked |
| Click on Save button | The message “Update successful” is displayed |