mirror of
https://github.com/appium/appium.git
synced 2026-10-22 00:45:27 +08:00
40 lines
1.1 KiB
Markdown
40 lines
1.1 KiB
Markdown
Robot Framework Sample Code
|
|
===========================
|
|
|
|
Setup
|
|
-----
|
|
`pip install -r requirements.txt`
|
|
|
|
Run Tests
|
|
---------
|
|
Test cases are located in the ``tests`` folder. They can be
|
|
executed using the ``robot`` command::
|
|
|
|
robot tests/*.test.robot
|
|
|
|
You can also run an iOS or Android case file/test::
|
|
|
|
robot tests/android_basic_interactions.test.robot
|
|
robot --test "Should find elements by ID" tests/android_*.test.robot
|
|
|
|
Further Examples on how to prepare environment and run
|
|
can be found at:
|
|
|
|
- [Robot Framework Appium Sample](https://github.com/serhatbolsu/robotframework-appium-sample)
|
|
|
|
Run Tests in Sauce Labs::
|
|
|
|
export SAUCE_LABS=True
|
|
export SAUCE_USERNAME=<username>
|
|
export SAUCE_ACCESS_KEY=<access_key>
|
|
robot tests/android_basic_interactions.test.robot
|
|
|
|
|
|
Generated Results
|
|
-----------------
|
|
After running tests you will get report and log in HTML format. Example
|
|
files are also visible online in case you are not interested in running
|
|
the sample yourself:
|
|
|
|
- [report.html](https://serhatbolsu.github.io/robotframework-appium-sample/docs/report.html)
|
|
- [log.html](https://serhatbolsu.github.io/robotframework-appium-sample/docs/log.html) |