Arun Sivaraj
Arun Sivaraj

Reputation: 11

iOS UI Automation Script to run on device

Can someone me help how to run an iOS UI Automation Script to run on real devices. Many thanks in advance!

Upvotes: 1

Views: 1901

Answers (2)

Pankaj Sharma
Pankaj Sharma

Reputation: 11

I Think this should:

Goto Your Xcode

  • Select your device
  • select correct provisioning Profile in Build Setting
  • Now Choose Profile from the Product menu or simply Command key + i.

It will run your script on Device you plugged.

Upvotes: 1

Jonathan Penn
Jonathan Penn

Reputation: 1341

As part of Instruments, running a UI Automation script against a device is the same process you'd use to do any Instruments profiling. In Xcode, choose the device but instead of building and running on the device, choose "Profile" from the "Product" menu. Choose the UI Automation template and put it the script you want to run. Now you can run the script and it should control your device like it controls the simulator.

Upvotes: 3

Related Questions