Skip to main content

Generic way to create meaningful and easy to use assertions for the Robot Framework libraries.

Project description

Generic way to create meaningful and easy to use assertions for the Robot Framework libraries. This tools is spin off from Browser library project, where the Assertion Engine was developed as part of the of library.

https://github.com/MarketSquare/AssertionEngine/actions/workflows/on-push.yml/badge.svg https://img.shields.io/badge/License-Apache%202.0-blue.svg https://github.com/MarketSquare/AssertionEngine/actions/workflows/on-push.yml/badge.svg

Supported Assertions

Currently supported assertion operators are:

Operator

Alternative Operators

Description

Validate Equivalent

==

equal, should be

Checks if returned value is equal to expected value.

value == expected

!=

inequal, should not be

Checks if returned value is not equal to expected value.

value != expected

>

greater than

Checks if returned value is greater than expected value.

value > expected

>=

Checks if returned value is greater than or equal to expected value.

value >= expected

<

less than

Checks if returned value is less than expected value.

value < expected

<=

Checks if returned value is less than or equal to expected value.

value <= expected

*=

contains

Checks if returned value contains expected value as substring.

expected in value

not contains

Checks if returned value does not contain expected value as substring.

expected not in value

^=

should start with, starts

Checks if returned value starts with expected value.

re.search(f”^{expected}”, value)

$=

should end with, ends

Checks if returned value ends with expected value.

re.search(f”{expected}$”, value)

matches

Checks if given RegEx matches minimum once in returned value.

re.search(expected, value)

validate

Checks if given Python expression evaluates to True.

evaluate

then

When using this operator, the keyword does return the evaluated Python expression.

Usage

When keywords needs to do an assertion

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

robotframework-assertion-engine-0.2.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file robotframework-assertion-engine-0.2.0.tar.gz.

File metadata

File hashes

Hashes for robotframework-assertion-engine-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2cd8eb335a6f7e80fbb56f3ab4d3fca580484bb150208ce3955c74d502643ce2
MD5 b9776fbfa55d61a7638dd239df31cf20
BLAKE2b-256 31838ac6928ca397bf3617e4d67209f7ef550cbc874d72d6514e1baf9d4d9602

See more details on using hashes here.

File details

Details for the file robotframework_assertion_engine-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_assertion_engine-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec07351c6607cb605cb5fec48a2ee3abfac20068b78d70178db34d12130f1b24
MD5 935e26a82e33bef6df59a10ec4621247
BLAKE2b-256 b58f9b95b1690b2a483b36834975cd027c133abe705bc822b44091de09b6c694

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page