12Setting up Keyword Automation Testing on iOS

Setting up Keyword Automation Testing on iOS

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:

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

  1. Start Safari on your iOS device, go to http://developer.apple.com/xcode/downloads, and then sign in with your Apple ID.

  2. Locate Xcode version 6.3.1, and then double-click the dmg file to install Xcode.

  3. Drag and drop Xcode into the Applications folder on your iOS mobile device.

  4. Open Xcode from the Finder/Applications folder.

  5. On the Xcode and iOS SDK License Agreement screen that appears, click Agree.

Xcode and all additional required components and tools are downloaded.

Note: You must import the cacert.cer (certificate) only if the cache is cleared based on the parameter provided in the Launch Keyword. The certificate must be available in a specific location on MAC. For example, /Users/<MAC_USERNAME>/carcert.cer The python script will be available in the following location: (/Users/<MAC_USERNAME>/) during runtime. After the python script is executed, the certificate will be imported to the iOS simulator.

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

  1. 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.
  2. Navigate to the folder where you downloaded the install file and execute the following command:

    java –jar <jdeveloper file>
  3. Open Oracle JDeveloper, click Help, and then select Check for Updates.

  4. On the screen that appears, select the All option for Mobile Application Framework 2.3, and then select Finish.

  5. Restart Oracle JDeveloper.

  6. 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

  1. From the Jdeveloper Menu, select File-> New -> Application.

  2. Select the MAF Application from Archive File.

  3. 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.

  4. 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

  1. From the Jdev Menu, navigate to Build -> select Clean all.

  2. 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 time
  3. From the Application Menu, select Deploy, iOS1, then Deploy application to iOSsimulator.

  4. Click Finish.

    The application is now successfully deployed in the simulator.

  5. From the Application Menu, select Deploy, iOS1, then, Deploy to iTunes for synchronization to device.
  6. 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.