12Setting up Keyword Automation Testing on iOS
Setting up Keyword Automation Testing on iOS
This chapter shows you how to set up iOS mobile devices for keyword automation testing. It includes the following topics:
About Running Keyword Automation Testing
To run keyword automation testing on iOS Xcode simulator, the following software is required and must be installed:
Xcode. For more information, see Installing XCode on the XCode iOS Simulator.
The Mobile Application Framework (MAF) requires the following software to be installed and setup accordingly for keyword automation testing:
Xcode. For more information, see Installing XCode on the XCode iOS Simulator.
Oracle JDeveloper and MAF. For more information, see Installing Oracle JDeveloper and Setting Up the Mobile Application Framework.
Installing XCode on the XCode iOS Simulator
This task shows you how to install Xcode version 6.3.1 on XCode’s iOS simulator. Before installing Xcode, note that the following prerequisites apply:
Software requirements for Mobile Safari/Mobile_iOS
XCode - 6.3.1
APPIUM - 1.4.13
OS X 10.10 or later (macOS)
Intel, 64-bit processor
To install XCode on Xcode iOS simulator
Start Safari on your iOS device, go to http://developer.apple.com/xcode/downloads, and then sign in with your Apple ID.
Locate Xcode version 6.3.1, and then double-click the dmg file to install Xcode.
Drag and drop Xcode into the Applications folder on your iOS mobile device.
Open Xcode from the Finder/Applications folder.
On the Xcode and iOS SDK License Agreement screen that appears, click Agree.
Xcode and all additional required components and tools are downloaded.
Installing Oracle JDeveloper and Setting Up the Mobile Application Framework
This task shows you how to install Oracle JDeveloper and set up the Mobile Application Framework (MAF)
Software requirements for Mobile Application Framework:
XCode - 7.2.1
APPIUM - 1.5.3
Certificates needs to be installed on the simulator before triggering the run.
To Automate using IP17 on latest MAF below certificates need to be installed on the simulator.
File location: c:\Cacert.cer
MAF certificate.
To install Oracle JDeveloper and set up MAF
The following procedure shows you how to install Appium version 1.5.3 on an iOS Device
Download Oracle JDeveloper version 12c (12.1.3.0.0) from the following location:
http://www.oracle.com/technetwork/developer-tools/jdev/downloads/index.html
Note: Oracle JDeveloper requires Java Run Time Environment 1.7 or later.Navigate to the folder where you downloaded the install file and execute the following command:
java –jar <jdeveloper file>Open Oracle JDeveloper, click Help, and then select Check for Updates.
On the screen that appears, select the All option for Mobile Application Framework 2.3, and then select Finish.
Restart Oracle JDeveloper.
Click File, click New, and then select Application
On the screen that appears, verify that the following items are included in the list:
MAF Application from Archive File
Mobile Application Framework Application
The presence of these items indicates that MAF has been set up successfully.
Creating a New Application from the Mobile Application Archive
From the Jdeveloper Menu, select File-> New -> Application.
Select the MAF Application from Archive File.
Enter the following values in the MAF Application from Archive File.
Field Name Value MAA File
Browse to mobile-determinations_archive.maa
Application File
Name of the new application.
Directory
New application location.
Click Finish.
Follow the steps below for generating Siebel.app from Siebel.maa for Siebel Mobile on iOS.
To generate Siebel.app for Siebel Mobile on iOS
From the Jdev Menu, navigate to Build -> select Clean all.
From the Jdev Menu, navigate to Build ->select Make all.
Note: Follow steps 1 and 2 only if you are generating the Siebel.app for Siebel Mobile on iOS for the first timeFrom the Application Menu, select Deploy, iOS1, then Deploy application to iOSsimulator.
Click Finish.
The application is now successfully deployed in the simulator.
- From the Application Menu, select Deploy, iOS1, then, Deploy to iTunes for synchronization to device.
Click Finish.
After generating the Siebel.app for Siebel Mobile on iOS, the Siebel.app must be placed in the following path: /Users/<MAC_USERNAME>/Desktop/Siebel.app in the MAC desktop.