Appium+robotframework Implementing automated Tests for iOS apps -4:os x install and launch ride

Source: Internet
Author: User
Tags appium

There are two ways to do appium testing:

1. Remote mode for Appium testing: Starting ride in a Windows system and running tests, the benefits of this approach are convenient and simple, but may not run up in the first place because of the configured problem test;

2. Local Appium test: To start the ride directly in OS X and run the test, the benefit is direct, can directly get the test results, but not very convenient, after all, people usually still mainly use the Windows operating system.

Either way, you can refer to the previous article Appium+robotframework implementation of the automated testing of Android applications -4:appiumlibrary Introduction and installation of Appiumlibrary installed.

The next step is to introduce only the 2nd way.

The 2nd way is to install the ride in OS X, which requires the installation of Wxpython,robotframework first.

Because OS X comes with Python2.7, there's no need to install Python anymore.

First step: Download and install Wxpython

Wxpython is required by ride, note that the Unicode version must be installed, click on the Download list, select wxpython2.8-osx-unicode-2.8.12.1-universal-py2.7.dmg in the list, download and install.

Step two: Download and install Robotframework

Robotframework is installed in two ways, the first is to use the PIP Directive, specifically: Pip install Robotframework, of course, the prerequisite is to install the PIP tool.

The second way is to use setup.py, you can click on the official web page to the right of the download Zip button, download and then extract, in command-line mode in the directory after the decompression, and finally execute instructions python setup.py install, No prompt error is the installation succeeded.

Step three: Download and install the ride

You can download RIDE in git, download the page URL as https://github.com/robotframework/RIDE/releases/, and then use PIP install Robotframework-ride or download the source code on this page, download and then unzip, in command-line mode in the directory after the decompression, and finally execute the instructions Python ride_postinstall.py install, No prompt error is the installation succeeded.

Fourth Step: Run Ride

Unlike in Windows where you can click on the ride icon to start ride, you need to open the terminal in OS X, then enter the instructions sudo ride.py and return, if there is no problem, you can see similar to the ride in Windows, if this error occurs: Run Ride.py would got error: "Python should is executed in 32-bit mode to the support WxPython on Mac. Check build.rest for details "because OS X is a 64-bit operating system and Python needs to support Wxpython in 32-bit mode. The solution is run: "Defaults write Com.apple.versioner.python prefer-32-bit-bool yes", which is to run the statement inside the double quotation mark in the terminal and then execute sudo again ride.py, you should then be able to see the ride interface, as shown in.

For more information on how to configure Appiumlibrary in ride, see the previous article Appium+robotframework implementing automated tests for Android apps -5:ride appiumlibrary configuration

After that, you can write the test script in ride.

Please continue to pay attention to ...

This article copyright to the Green Tree all, welcome reprint, but please specify the author and source, strictly prohibited for any commercial use, otherwise the consequences!

Appium+robotframework Implementing automated Tests for iOS apps -4:os x install and launch ride

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.