Knowledge Base Article

> Knowledge Base > Rapise > Rapise Mobile

Created By  dmarkovtsev Monday, September 17, 2018

Most complex part in Mobile testing is connecting to a simulator or device. In this article we describe steps necessary to configure the testing environment.

Note: In brackets we specify versions of software components we used at the time of writing this article.

Prerequisites

macOS

You will need a computer with macOS.

https://www.apple.com/macos

[macOS 10.13 High Sierra]

XCode

On this computer install XCode development environment with Command Line Tools. You can do it via the App Store.

https://developer.apple.com/xcode/

https://developer.apple.com/library/archive/technotes/tn2339/_index.html

[XCode 9.4]

Appium

Appium is the bridge between Rapise and mobile simulators and devices. The easiest way to install it is to use Terminal.

> brew install node      # get node.js
> npm install -g appium  # get appium

http://appium.io/

[Appium 1.9]

Appium Doctor

Use appium-doctor  to diagnose and fix common Node and iOS configuration issues before starting Appium.

> npm install appium-doctor -g    # install
> appium-doctor --ios             # check iOS environment

https://github.com/appium/appium-doctor

Real Devices

Running Tests on Real Devices

http://appium.io/docs/en/drivers/ios-xcuitest-real-devices/

> brew install libimobiledevice
> npm install -g ios-deploy

In Mobile profiles in Rapise specify xcodeOrgId and xcodeSigningId capabilities.

Hybrid and Browser Testing on Real Devices

To run web tests on devices install ios-webkit-debug-proxy.

http://appium.io/docs/en/writing-running-appium/web/ios-webkit-debug-proxy/index.html

https://github.com/google/ios-webkit-debug-proxy

> brew install ios-webkit-debug-proxy

Run the proxy as

> ios_webkit_debug_proxy -c 0e4b2f612b65e98c1d07d22ee08678130d345429:27753

where '0e4b2f612b65e98c1d07d22ee08678130d345429' is the device id. Port 27753 is used by Appium to connect to the proxy.

Sample Application

We published a sample application on GitHub. Clone the repository and build with XCode.

https://github.com/Inflectra/AUTiOS

 

 

Attachments

Selected files will be attached to any email sent on saving ticket.

file selected files selected  () Delete Selected

  • Created:
  • by:

Select files to upload

Or drag and drop files here

Uploading …
Done!
Upload More?
There was an error.
Try again?

Save to upload the selected file(s)

Article Info
  • Last Updated: 9/17/2018
  • Article ID: KB381
  • Views: 99