iPad real device issues - Katalon 5.3

Zlatan Midzic said:

This is the procedure I used ti set OSX and iOS real device for Katalon Studio:

Step-001: Homebrew installation

/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

Step-002: Homebrew update

brew update

Step-003: Homebrew doctor

brew doctor

Step-004: export PATH

export PATH=“/usr/local/bin:$PATH”

Step-005: Install node

brew install node

Step-006: Install npm

brew install npm

Step-007: Check installation of node and npm

node -v

npm -v

Step-008: Install carthage

brew install carthage

carthage version

Step-009: Install Appium

npm install -g appium

appium -v

Step-010: Setting of appium folder inside Katalon

ZM-MacBook:~ zlatan$ npm install -g appium

/usr/local/bin/appium → /usr/local/lib/node_modules/appium/build/lib/main.js

Appium folder = /usr/local/lib/node_modules/appium

Set Appium Directory to “/usr/local/lib/node_modules/appium”

in Katalon Preferences (from Katalon menu, go to Preferences > Katalon > Mobile).

Step-011: Add your AppleID in XCode

XCode > Preferences > Accounts > Add AppleID

Step-012: Initialize WebDriverProject

- open in Terminal:

/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent

- create this folder there:

mkdir -p Resources/WebDriverAgent.bundle

- execute this script:

./Scripts/bootstrap.sh -d

- open in XCode:

/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj

- sign WebDriverAgentLib and WebDriverAgentRunner:

set unique Build Settings > Product Bundle Identifier

enable Automatically manage signing

choose your Team

Product > Build

Step-013: Build WebDriverAgent (connect iOS device by USB and select “Trust this device”)

xcodebuild -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination ‘id=11223344556677889900’ test

Output end should be something like this:

Test Case ‘-[UITestingUITests testRunner]’ started.

t =     0.01s Start Test at 2018-01-30 15:30:41.903

t =     0.01s Set Up

2018-01-30 15:30:41.929773+0100 WebDriverAgentRunner-Runner[282:16508] Built at Jan 30 2018 15:12:06

2018-01-30 15:30:42.000393+0100 WebDriverAgentRunner-Runner[282:16508] ServerURLHere->http://10.0.1.9:0<-ServerURLHere

Step-014: iOS Device Management

- If Step-013 failed, please set:

iOS Device > Settings > General > Device Management > “Trust”

- WebDriverAgentRunner-Runner should be marked as “Verified”

Step-014: iOS Device settings:

- enable in Settings > Developer > Enable UI Automation = ON

- enable in Settings > Safari > Advanced > Web inspector = ON

Step-015: Run test from Katalon Studio (TestCase-1.txt) (attached)
- Test is executed with option Run > iOS > “live iOS selected”
- Test Case goal: to start Sarafi on live iOS device and play a little bit with demoaut.katalon.com

Results from Katalon Studio:

Test Cases/Test-1 FAILED because (of) Unable to open browser with url: ‘http://demoaut.katalon.com/’ (Root cause: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not navigate to webview; there are none! (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 134.66 seconds

Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’

System info: host: ‘ZM-MacBook.local’, ip: ‘some_ip’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.13.2’, java.version: ‘1.8.0_102’

Driver info: driver.version: IOSDriver)

Test Cases/Test-1.run:23

Step-016: Run Spy Mobile from Katalon Studio:
- error is happening (please see attached AppiumLog.txt)
- also ios-deploy is crashing every time at the end (Error_002.png)
- used .app is simple HelloWorld app which works fine on live iOS device

can you give me a configuration that can detect ios devices ?
I mean version of macos, of xcode, of appium, of katalon studio, …
Thanks a lot

I have this problem and no response from the community. Incredible.
the webdriveragent test does not work, hangs on “using singleton test manager” and then fails.
I can’t run tests on physical devices or even on simulators because the webdriveragent always fails.