Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edmondscommerce/magento2-zalenium
Integrates Zalenium for improved testing with the functional testing framework
https://github.com/edmondscommerce/magento2-zalenium
Last synced: about 2 months ago
JSON representation
Integrates Zalenium for improved testing with the functional testing framework
- Host: GitHub
- URL: https://github.com/edmondscommerce/magento2-zalenium
- Owner: edmondscommerce
- License: mit
- Created: 2019-10-21T17:05:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-03T14:34:40.000Z (almost 5 years ago)
- Last Synced: 2024-04-13T03:09:35.380Z (9 months ago)
- Language: PHP
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Magento 2 Zalenium Plugin
Integrates Zalenium for improved testing with the functional testing framework## Features
This Codeception module extends the Magento 2 acceptance tests to print out the current step of a given test and
also segments the videos by their test name and also marks each test video as passed or failed.Without this module, the full test suite would be a complete video and no test status or steps would be logged.
## Setup
To use the Zalenium plugin inside your acceptance tests you need to add `EdmondsCommerce\Zalenium\Zalenium`
to your `dev/tests/acceptance/tests/functional.suite.yml` in the modules area.**Partial Example**
```yaml
class_name: AcceptanceTester
namespace: Magento\FunctionalTestingFramework
modules:
enabled:
- \Magento\FunctionalTestingFramework\Module\MagentoWebDriver
- \Magento\FunctionalTestingFramework\Helper\Acceptance
- \Magento\FunctionalTestingFramework\Helper\MagentoFakerData
- \Magento\FunctionalTestingFramework\Module\MagentoSequence
- \Magento\FunctionalTestingFramework\Module\MagentoAssert
- \Magento\FunctionalTestingFramework\Module\MagentoActionProxies
- Asserts
- EdmondsCommerce\Zalenium\Zalenium # This one
```You must also ensure that (depending on your installation) self signed certificates are accepted.
This is set using the Chrome capabilities options in teh same file.```yaml
config:
\Magento\FunctionalTestingFramework\Module\MagentoWebDriver:
url: "%MAGENTO_BASE_URL%"
backend_url: "%MAGENTO_BACKEND_BASE_URL%"
backend_name: "%MAGENTO_BACKEND_NAME%"
browser: 'chrome'
restart: true
window_size: 1280x1024
username: "%MAGENTO_ADMIN_USERNAME%"
password: "%MAGENTO_ADMIN_PASSWORD%"
pageload_timeout: "%WAIT_TIMEOUT%"
host: "%SELENIUM_HOST%"
port: "%SELENIUM_PORT%"
protocol: "%SELENIUM_PROTOCOL%"
path: "%SELENIUM_PATH%"
capabilities:
acceptInsecureCerts: true # This one
chromeOptions:
args: ["--window-size=1280,1024", "--disable-extensions", "--enable-automation", "--disable-gpu", "--enable-Passthrough"]
```