Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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"]
```