Declarative UI testing with JSON
Project description
Quilla
Declarative UI Testing with JSON
Quilla is a framework that allows test-writers to perform UI testing using declarative syntax through JSON files. This enables test writers, owners, and maintainers to focus not on how to use code libraries, but on what steps a user would have to take to perform the actions being tested. In turn, this allows for more agile test writing and easier-to-understand test cases.
Quilla was built to be run in CI/CD, in containers, and locally. It also comes with an optional integration with pytest, so you can write your Quilla test cases as part of your regular testing environment for python-based projects. Check out the quilla-pytest docs for more information on how to configure pytest
to auto-discover Quilla files, adding markers, and more.
Check out the features docs for an overview of all quilla can do!
Quickstart
-
Run
pip install quilla
-
Ensure that you have the correct browser and drivers. Quilla will autodetect drivers that are in your PATH or in the directory it is called
-
Write the following as
Validation.json
, substituting "Edge" for whatever browser you have installed and have the driver for:{ "targetBrowsers": ["Edge"], "path": "https://www.bing.com", "steps": [ { "action": "Validate", "type": "URL", "state": "Contains", "target": "bing" } ] }
-
Run
quilla -f Validation.json
Installation
Note: It is highly recommended that you use a virtual environment whenever you install new python packages. You can install Quilla by cloning the repository and running
make install
.
Quilla is available on PyPI, and can be installed by running pip install quilla
.
For more information on installation options (such as installing from source) and packaging Quilla for remote install, check out the documentation for it here
Writing Validation Files
Check out the documentation for it here
Context Expressions
This package is able to dynamically inject different values, exposed through context objects and expressions whenever the validation JSON would ordinarily require a regular string (instead of an enum). This can be used to grab values specified either at the command-line, or through environment variables.
More discussion of context expressions and how to use them can be found in the documentation file here
Generating Documentation
Documentation can be generated through the make
command make docs
Check out the documentation for it here
Make commands
A Makefile is provided with several convenience commands. You can find usage instructions with make help
, or below:
Usage:
make [target]
Targets:
help Print this help message and exit
package Create release packages
package-deps Create wheel files for all runtime dependencies
docs Build all the docs in the docs/_build directory
clean-python Cleans all the python cache & egg files files
clean-docs Clean the docs build directory
clean-build Cleans all code build and distribution directories
clean Cleans all build, docs, and cache files
install Installs the package
install-docs Install the package and docs dependencies
install-tests Install the package and test dependencies
install-all Install the package, docs, and test dependencies
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file quilla-0.5.1.tar.gz
.
File metadata
- Download URL: quilla-0.5.1.tar.gz
- Upload date:
- Size: 44.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a527a96789abc24f233c31965ef988921f14787b300c45e379301a800555d03 |
|
MD5 | d6341dd053ce1632041e120fa4aab870 |
|
BLAKE2b-256 | 1a9bce08b1c67e26f663073c68d080f4146c81896298989c6ccb9a6ce43712ba |
File details
Details for the file quilla-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: quilla-0.5.1-py3-none-any.whl
- Upload date:
- Size: 55.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00ae6f2c5f36278c62369ebef88116b1d0b25d7ac24e248ee92da59be1af07a0 |
|
MD5 | ac5b6b7cefd553b914525d8daf9c6425 |
|
BLAKE2b-256 | 5b0ce27ffcc40adb03a674638b048cfd87e497e4a58f6b69dc18c682b929ee40 |