Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automate iOS application with Appium in Docker

Is it possible to automate iOS applications with Appium in Docker with the Appium server running in a container?

like image 303
AUTODOG Avatar asked Nov 25 '15 07:11

AUTODOG


1 Answers

You should be able to use the appium-docker-ios Docker image for this.

You'll need an Apple Developer account, a developer profile (with a provisioning profile and a developer certificate), and the developer disk images before you get started.

On your Linux machine, you need to:

  • Install docker and usbmuxd
  • Pair your iOS device with your host
  • Copy your developer profile to ~/.quamotion/quamotion.developerprofile, save the password to your developer profile in ~/.quamotion/quamotion.developerprofile.password and save the developer disks to /.quamotion/devimg.

Then, you can start Appium using the following command:

docker run \
    -p 4723:4723 \
    -v /var/run/usbmuxd:/var/run/usbmuxd \
    -v ~/.quamotion/:/etc/quamotion/
    -e DEVELOPER_PROFILE_PASSWORD=1
    --name appium-docker-ios
    quamotion/appium-docker-ios

You should see the Appium server starting.

From here, you should be able to launch iOS automation just like you would on iOS devices.

like image 155
Frederik Carlier Avatar answered Sep 25 '22 03:09

Frederik Carlier