Robotframework-Puppeteer-Percy
Percy visual testing for Robot Framework Puppeteer.
Keyword documentation
See keyword documentation for available keywords and more information about the library in general.
Require [robotframework-puppeteer]](https://github.com/qahive/robotframework-puppeteer) version 2 or above.
Installation
The recommended installation method is using pip:
pip install --upgrade robotframework-puppeteer-percy
Or manually install by running following command
pip install -r requirements.txt
python setup.py install
Usage
(1) Go to percy.io and register new account
(2) Create new project and save the PERCY_TOKEN
(3) Run export token
- Window:
set PERCY_TOKEN=<your percy token> - Linux:
export PERCY_TOKEN=<your percy token>
(4) Create file name quick-start.robot with following content:
*** Settings ***
Library PuppeteerLibrary
Library PuppeteerPercy
Test Teardown Close Browser
*** Test Cases ***
Capture home page screenshot
${HEADLESS} Get variable value ${HEADLESS} ${False}
&{options} = create dictionary headless=${HEADLESS}
Open browser http://example.com options=${options}
Maximize Browser Window
Percy Snapshot Home page
(5) Run robot script with following command:
npx percy exec -- robot quick-start.robot
npx percy exec will start percy agent and auto stop when test completed
Limitation
- Not support for web site that restriction for other site resource files.
FAQ
- Snapshot throw error
ElementHandleError: Evaluation failed: Event. Your web site not allow to inject 3rd party javascript. Need to ask developer to allow localhost javascript tobe executed.
Development
Generate update keyword documents
python -m robot.libdoc -f html PuppeteerPercy docs/PuppeteerPercy.html
Metadata
Release files for robotframework-puppeteer-percy 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| robotframework-puppeteer-percy-0.1.1.tar.gz | 3.7 kB | Without provenance | Details for robotframework-puppeteer-percy-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| robotframework_puppeteer_percy-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for robotframework_puppeteer_percy-0.1.1-py3-none-any.whl |
Total release size: 11.5 kB
Release files / robotframework-puppeteer-percy-0.1.1.tar.gz
| Download URL | robotframework-puppeteer-percy-0.1.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
725d9077a2b69c8abe668b131dbf52ae2cc16580d0bbc11b756d97b868ecd642
|
|
BLAKE2b-256 checksum How to use checksums |
b4bbc9c1fa24cf5aa8293b5455cbd5c8a8dc5e8e24a7e3612bfd8838b5771f43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|
Release files / robotframework_puppeteer_percy-0.1.1-py3-none-any.whl
| Download URL | robotframework_puppeteer_percy-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
720acfc3684da5337d600d08a85cb74f9e8045e294af1256e1ecad577dee1b20
|
|
BLAKE2b-256 checksum How to use checksums |
ece7fa9f0b18fbf71c89329ff59ff5991be662cad17ea3881ee5b7fdbe648efe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|
Security for robotframework-puppeteer-percy 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.