Execute
# You need to have Composer in your system, if not download it from here: https://getcomposer.org/
Download ChromeDriver: https://chromedriver.chromium.org/downloads
Download Selenium: https://selenium.dev/downloads/.
Put them in a single folder, unzip folder ChromeDriver and run:
java -Xmx256m -jar selenium-server-standalone-3.141.59.jar
(java must be pre-installed in your OS to run above command)
change 3.141.59.jar to version selenium has been download
Clone the repository using
git clone [email protected]:redCOMPONENT-COM/redSHOP.git
Moving to the main working directory
cd redSHOP
Setup new site Joomla with the latest version of redSHOP created previously.
Copy file "acceptance.suite.yml.dist" to "acceptance.suite.yml" and change config: "url" to " http://localhost/path/to/your/project/".
NOTE: Make sure admin & database user information & local site path are correctly changed to your own ones.
After changing config, you need to run composer install
Later on run vendor/bin/codecept build
Command for running automation:
vendor/bin/codecept run acceptance --debug tests/acceptance/administrator/g16/Products/ProductManagement/ProductsCest.php
Change "tests/acceptance/administrator/g16/Products/ProductManagement/ProductsCest.php" to folder or a Cest you want run automation.