The iOS Monkey Talk Transform automates testing of an iOS application.
Note: To avoid timeouts, close all other applications on the iPhone.
This CSV file has 3 input columns:
•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.
Configuring the Transform
1.Select the iOS Monkey Talk Transform from the toolbox.
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.
3.Export all the ports to MxVDev, and use them to create a TestCase.
Note: Input message type signals are allowed to take a maximum of 17 ASCII characters/digits. For example: mxphoneNo, mxDeviceMac.
The Signal mxphoneNo transmits the phone number to call and the mxcall event Signal raises the call event.
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:
To initiate a call, create an event transition on the mxcall Signal by double-clicking on the plot line.
Click the run () button to run the TestCase.
Note: For this test, reports with screen-shots are generated in the .mxout folder.