The iOS Monkey Talk Transform automates testing of an iOS application.

This Transform reads configuration data from a CSV file and generates a JavaScript for the Monkey Talk Java runner extension.

Note: To avoid timeouts, close all other applications on the iPhone.

CSV File Format

This CSV file has 3 input columns:

File Name: The file name of the JavaScript files generated by the Transform.

Field Type: There are two types: button and input.  Button specifies any event type (“Tap() event in iOS”) and input specifies the message type (“Entertext() event in iOS”) which accepts specified input data to the scripts. For example: Mac id of an external Bluetooth device, or a phone number to call.

Field Name: The button names on the native iOS app installed with the Monkey Talk agent. For example: Call, or Play/Pause.

 

ios01

 

 

Configuring the Transform

1.Select the iOS Monkey Talk Transform from the toolbox.

ios02

2.Select the following in the Transform properties :

CSV/Input path: The path of a CSV file formatted as described above.

Note: Make sure the specified folder contains three files: MonkeyTalkAPI.js, monkeytalk-runner.jar, and cmd.exe. The file names must be exactly as listed. These files are available in the sample with iOS Monkey Talk Transform.

iOSHostDeviceIP: IP address of the iOS device as it is connected to the same network as the test PC.

ios03

 

Ports are generated on the Transform corresponding to the names in the File name column of the CSV file. The JavaScript files are generated in the folder specified by the CSV/Input path property.

ios04

3.Export all the ports to MxVDev, and use them to create a TestCase.

ios05

 

Note: Input message type signals are allowed to take a maximum of 17 ASCII characters/digits. For example: mxphoneNo, mxDeviceMac.

Use-Case: Call Sequence

The Signal mxphoneNo transmits the phone number to call and the mxcall event Signal raises the call event.

ios06

 

This image shows how to create a message on the mxphoneNo Signal. Double-click on the plot line to open the transition editor. Enter as many as 17 digits as shown:

 

ios07

 

To initiate a call, create an event transition on the mxcall Signal by double-clicking on the plot line.

Click the run (Run_btn) button to run the TestCase.

Note: For this test, reports with screen-shots are generated in the .mxout folder.