Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 26, 2019. It is now read-only.

Starting WebDriverAgent

Marek Cirkos edited this pageMay 11, 2017 ·4 revisions

WebDriverAgent can be started as any UITest bundle. We recommend usingXcode,xcodebuild orFBSimulatorControl. In order to start any UITest you need a test hosting application, which is used only to run test runner code and it should NOT be tested application.Xcode andxcodebuild will prepare test hosting application for you, however withFBSimulatorControl you need to use your own and point it explicitly or use system applications e.g.Safari.

AfterWebDriverAgentRunner is launched, you can get service URL from device logs (or Xcode console). Just search for line:

ServerURLHere->http://[SOME_IP]:8100<-ServerURLHere

A: Using Xcode

Simply openWebDriverAgent.xcodeproj and startWebDriverAgentRunner test.

B: Using xcodebuild

xcodebuild -project WebDriverAgent.xcodeproj \           -scheme WebDriverAgentRunner \           -destination 'platform=iOS Simulator,name=iPhone 6' \           test

C: Usingfbsimctl fromFBSimulatorControl framework.

Build WebDriverAgent.xcodeproj and then:

./fbsimctl --state=booted \           launch_xctest [path]/WebDriverAgentRunner.xctest com.apple.mobilesafari --port 8100 -- \           listen

D: UsingFBSimulatorControl framework directly

CheckoutFBSimulatorXCTestCommands.h and use sample intests

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp