Skip to main content

Robot Framework library for MobileWright mobile testing framework

Project description

Robotframework-MobileWright

Robot Framework library for MobileWright — mobile test automation for iOS and Android.

Wraps the mobilecli HTTP JSON-RPC server so you can drive iOS / Android devices from .robot files.

Compatibility

Version
Mobilewright (RF lib) 0.1.0
mobilecli server >= v0.3.69
Python >= 3.9
Robot Framework >= 6.0

The library follows its own SemVer cycle, independent of the upstream mobilecli version. Each release is tested against the version above.

Setup

You need a running mobilecli server (it talks to the device via ADB or iOS instruments):

npm install -g mobilecli
mobilecli server start --listen localhost:12000 --cors -d

Install

pip install robotframework-mobilewright

Quick start

*** Settings ***
Library    Mobilewright    server_url=ws://localhost:12000/ws

Suite Setup       Connect To Device
Suite Teardown    Close All Connections

*** Test Cases ***
Login
    Launch App    com.example.myapp
    Fill Element    testid=username    admin@test.com
    Fill Element    testid=password    secret
    Tap Element    label=Submit
    Wait Until Element Is Visible    text=Welcome    timeout=10s

Locator syntax

Strategy Example
label= label=Submit
testid= testid=login-btn
text= text=Hello World
type= type=UIButton
role= role=button
placeholder= placeholder=Search

Chain with >>: type=ListView >> text=Item 1

Index selector: index=first (default) / index=last / index=N

Docs

Full keyword reference: docs/Mobilewright.html

Generate locally:

python -m robot.libdoc Mobilewright docs/Mobilewright.html

License

Apache 2.0

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_mobilewright-0.1.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

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

robotframework_mobilewright-0.1.0-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file robotframework_mobilewright-0.1.0.tar.gz.

File metadata

File hashes

Hashes for robotframework_mobilewright-0.1.0.tar.gz
Algorithm Hash digest
SHA256 53012036812342787f9e2082de000210c04363e96c210d1d65efb8b0b5eb5152
MD5 b2282cc12e200b0a9bdf0fa355e0cef4
BLAKE2b-256 03d41361b8dda692672afc71c8b58d5515f15abcfa793123927d46c752fa91fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for robotframework_mobilewright-0.1.0.tar.gz:

Publisher: publish.yml on MarketSquare/robotframework-mobilewright

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file robotframework_mobilewright-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_mobilewright-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e6d0c294efc98f06b2c80456c602896d2ceb114727acd3ed5e3ea26592929a8
MD5 48a62da7a065cfccd5dbb7e5da32f086
BLAKE2b-256 3d7ea2b3719c71a289061d3ca02df500761c386aefb84ec7a00147006725f9d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for robotframework_mobilewright-0.1.0-py3-none-any.whl:

Publisher: publish.yml on MarketSquare/robotframework-mobilewright

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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