patrick-blom / oxid-codeception-demo
This is a demo repository which should explain how to write codeception tests for OXID eShop
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 3
Type:project
Requires
- php: >=7.2
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-20 00:39:45 UTC
README
OXID eShop Codeception Demo
This project should explain how to write codeception acceptance tests for OXID eShop
Usage
These tests can be used with every OXID eShop which has activated the "Flow Theme". The project was created and tested on OXID eShop 6.2 CE.
Installation on Ubuntu 18.04
You will need the following things to run the tests:
- The standalone Selenium Server - Download
- The Goolge Chrome Browser
- The
chromium-chromedriver
for ubuntu which can be installed throughsudo apt install chromium-chromedriver
- composer for the package installation
Running tests
First you will have to run composer install
in the root of the project. After that you have to export two variables
to define your Selenium-Server and the shop you want to test.
$ export WEBDRIVER_URL="127.0.0.1" && export WEBSITE_URL="https://my.oxid-eshop.de"
Now you have to start the Selenium-Server ip which you had downloaded before.
$ java -jar "/path/to/selenium-server-standalone-xxx.jar"
Finally you can run the codeception tests using the following command:
$ vendor/bin/codecept run
License
The project is released under GPL-3.0. For a full overview check the LICENSE file.