This repository contains Acceptance tests for the QMA website written using Codeception framework (PHP based) configured with Selenium & Chrome Driver.
https://www.seleniumhq.org/download/
http://chromedriver.chromium.org/downloads
cd to Download location
./chromedriver
Note: Make sure you have Java Installed in your system
cd to Download location
java -jar selenium-server-standalone-3.141.59.jar
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.3
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.2
cd qma-tests
php codecept.phar run --debug
cd qma-tests
php codecept.phar run tests/acceptance/LoginCest --debug
# suite config
suites:
acceptance:
actor: AcceptanceTester
path: .
modules:
enabled:
- WebDriver:
url: http://100.24.131.250/qma_test/qmaweb
window_size: 1280x1200
browser: chrome
pageload_timeout: 120
- \Helper\Acceptance
extensions:
enabled: [Codeception\Extension\RunFailed]
tests/acceptance
1.https://codeception.com/docs/03-AcceptanceTests