Skip to content

hatem-hadrich/PSFunctionalTestsPython-Node

Repository files navigation

PSFunctionalTestsPython-Node

PrestaShop Functional Tests from Python to NodeJs

Information: To use the following test suites, you need to install a PrestaShop in English in country France. (or you may change some assertions like the separator “,” or “.”, “€” or “$” or “£” or …] You need to create a user in Back Office with SuperAdmin rights and the following information’s: Login: [email protected] Password: prestashop_demo

a) Installation To use nodeJS tests, you need to install:

  • NodeJS
  • Npm
  • Webdrivers pour Chrome et firefox

Required modules to install using npm are:

  • json
  • minimist
  • mocha
  • node-uuid
  • parsed-url
  • q
  • req
  • should
  • webdriverio
  • window
  • selenium-standalone

b) How to launch tests

  • First, you need to start selenium-standalone

  • Go to the folder of the version you want to test (in \test\itg, go into folder 1.6 or 1.7) and execute one of the following lines:

  •    Launch tests without module installation :
    

mocha index.webdriverio.js --URL=localhost/1.7.0.0

  •       Launch tests with module installation:
    

mocha index.webdriverio.js --URL=localhost/1.7.0.0 --MODULE=statsbestmanufacturers

  •    Launch tests without module installation :
    

mocha index.webdriverio.js --URL=localhost/1.7.0.0 –SAUCELABS=true

  • URL: Front office URL of your prestashop website (without the “https://”)
  • MODULE (optional) : « data-tech-name » of the module
  • SAUCELABS (optional): Turn it to « true » to use SauceLabs (you need to provide yours SauceLabs ID in your Travis folder)

Information: To select the module to test, we decided to use the « data-tech-name » because this variable give us only one result in the search module part, in this case we are sure to select the right module

About

PrestaShop Functional Tests from Python to NodeJs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published