Skip to content

nesrineabdmouleh/autoupgrade_tests

Repository files navigation

Autoupgrade tests

Tests for 1 click upgrade module.

Test is compatible with different PS versions

  • 1.7.4 to 1.7.5 - 1.7.6 - 1.7.7 - 1.7.8
  • 1.7.5 to 1.7.6 - 1.7.7 - 1.7.8
  • 1.7.6 to 1.7.7 - 1.7.8
  • 1.7.7 to 1.7.8

We use Mocha, Playwright and Chai as our base stack.

How to install your environment

# Download the new PS version that you want to upgrade
https://www.prestashop.com/fr/versions-precedentes
cd autoupgrade_tests/
npm install

Test parameters

Parameter Description
URL_FO URL of your PrestaShop website Front Office (default to http://localhost/prestashop/)
LOGIN LOGIN of your PrestaShop website (default to [email protected])
PASSWD PASSWD of your PrestaShop website (default to prestashop_demo)
PS_VERSION Your prestashop version (expl 1.7.5)
VERSION_TO_UPGRADE The new version to upgrade (expl 1.7.7)
PROJECT_PATH The prestashop project path (expl /projet/prestashop_1.7.4.4)
DOWNLOAD_PATH Your download path where there is the zip of the new version to upgrade (default to /home/username/Téléchargements)
ZIP_NAME The new version to upgrade zip name (expl prestashop_1.7.7.0.zip)

Before running upgrade test, you should install an old version of PS.

Launch the script

URL_FO=your_shop_url PROJECT_PATH=your_project_path PS_VERSION=your_ps_version PS_VERSION_TO_UPGRADE=new_ps_version DOWNLOAD_PATH=your_download_path ZIP_NAME=zip_name.zip npm run test

Enjoy 😉 ✌️

About

Tests for 1-click-upgrade-module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published