[Mobile] Run the iOS app in the background and wait

Description  

Run the active application in the background.

Notes:

This keyword is used for iOS applications only.

Parameters  

Param Param Type Mandatory Description
seconds int Required Amount of time (in seconds) for the application to run in the background.
flowControl FailureHandling Optional Specifies the failure handling schema to determine whether the execution should be allowed to continue or stop.

Example 

You want to run your iOS application in the background and wait for 10 seconds. 

import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import internal.GlobalVariable as GlobalVariable

'Start application on current selected iOS device'
Mobile.startApplication(GlobalVariable.G_iOSApp, false)

'Run the appication in background and wait for 10 seconds'
Mobile.runIOSAppInBackgroundAndWait(10)

'Close application on current selected iOS device'
Mobile.closeApplication()

Feedback