Skip to main content

Porting of the Galen Framework API to Python

Project description

Porting of the Galen Framework API to Python.

This project is a porting the Galen Framework Java API to the Python language.

The Python Galen API is made out of three parts. An example of usage is shown below.

Galen Remote WebDriver

driver = GalenRemoteWebDriver("http://localhost:4444/wd/hub", desired_capabilities=DesiredCapabilities.CHROME)

As explained above the API also expose a version of RemoteWebDriver API.

Check Layout API

Galen().check_layout(driver, "specs/" + specs, included_tags, excluded_tags)

This part of the API resemble closely the checkLayout() method as it is defined in the Java GalenApi class.

Hierarchical reports fluent API

TestReport("A galenpy test").add_report_node(info_node("Running layout check for: " + test_name).with_node(warn_node('this is just an example')).with_node(error_node('to demonstrate reporting'))).add_layout_report_node("check " + specs, check_layout_report).finalize()

The example above shows how to build a report in a hierarchical form by adding report nodes in a fluent interface fashion. After chaining the various nodes types such as info, warning or layout report, a call to the method finalize() is done to create a test report that is added to the list of reports.

Generating the report

generate_galen_report('target/report')

At the end of the Galen Layout validation, the report is generated in the given folder through the call of another Galen API method.

More examples

A separate project showing the usage of galenpy can be found at galen-sample-py-tests.

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

galenpy-0.1.7.tar.gz (24.9 MB view details)

Uploaded Source

Built Distribution

galenpy-0.1.7-py2.py3-none-any.whl (24.9 MB view details)

Uploaded Python 2Python 3

File details

Details for the file galenpy-0.1.7.tar.gz.

File metadata

  • Download URL: galenpy-0.1.7.tar.gz
  • Upload date:
  • Size: 24.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for galenpy-0.1.7.tar.gz
Algorithm Hash digest
SHA256 5e45e57a9260a784147f863129b682b84344089869d6a1d685f9799163722a58
MD5 65d89fd072310d987465f1cc218e775d
BLAKE2b-256 8008878f4a94ab486a2b28ba47324845689411a112c901da3a738049fb7e4dcc

See more details on using hashes here.

File details

Details for the file galenpy-0.1.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for galenpy-0.1.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5abb39c415e4b9f8ffa4c7409c69f075378e27da3f40c1d6458cf8c2dc93c8e8
MD5 4c7d04cbcd02d310159a8bbedfeb3a89
BLAKE2b-256 794f3db2b2fd4889f4fae6ecacacd0546d8fc5169bbf2029855d383ab902263b

See more details on using hashes here.

Supported by

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