All Projects → macacajs → Xctestwd

macacajs / Xctestwd

Licence: mit
A Swift implementation of WebDriver server for iOS that runs on Simulator/iOS devices.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Xctestwd

appium-mac2-driver
Next-gen Appium macOS driver, backed by Apple XCTest
Stars: ✭ 55 (-71.79%)
Mutual labels:  webdriver, xctest
Whole Foods Delivery Slot
Automated script for Whole Foods and Amazon Fresh delivery slot
Stars: ✭ 460 (+135.9%)
Mutual labels:  automation, webdriver
Winium.desktop
Winium.Desktop is Selenium Remote WebDriver implementation for automated testing of Windows application based on WinFroms and WPF platforms.
Stars: ✭ 326 (+67.18%)
Mutual labels:  automation, webdriver
Splinter
splinter - python test framework for web applications
Stars: ✭ 2,476 (+1169.74%)
Mutual labels:  automation, webdriver
Thirtyfour
Selenium WebDriver client for Rust, for automated testing of websites
Stars: ✭ 191 (-2.05%)
Mutual labels:  automation, webdriver
Cdp4j
cdp4j - Chrome DevTools Protocol for Java
Stars: ✭ 232 (+18.97%)
Mutual labels:  automation, webdriver
Golem
A complete test automation tool
Stars: ✭ 441 (+126.15%)
Mutual labels:  automation, webdriver
Undetected Chromedriver
Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
Stars: ✭ 365 (+87.18%)
Mutual labels:  automation, webdriver
Webdriverio
Next-gen browser and mobile automation test framework for Node.js
Stars: ✭ 7,214 (+3599.49%)
Mutual labels:  automation, webdriver
Fantoccini
A high-level API for programmatically interacting with web pages through WebDriver.
Stars: ✭ 619 (+217.44%)
Mutual labels:  automation, webdriver
Element
💦Load test your app using real web browsers
Stars: ✭ 204 (+4.62%)
Mutual labels:  automation, webdriver
Edge Selenium Tools
An updated EdgeDriver implementation for Selenium 3 with newly-added support for Microsoft Edge (Chromium).
Stars: ✭ 41 (-78.97%)
Mutual labels:  automation, webdriver
Appium
📱 Automation for iOS, Android, and Windows Apps.
Stars: ✭ 14,469 (+7320%)
Mutual labels:  automation, webdriver
Automate
Swift framework containing a set of helpful XCTest extensions for writing UI automation tests
Stars: ✭ 244 (+25.13%)
Mutual labels:  automation, xctest
Python Scripts
Collection of Various Python Script's.💻
Stars: ✭ 195 (+0%)
Mutual labels:  automation, webdriver
Webdriver
Remote control interface that enables introspection and control of user agents.
Stars: ✭ 546 (+180%)
Mutual labels:  automation, webdriver
Wdio Workshop
WebdriverIO Workshop
Stars: ✭ 20 (-89.74%)
Mutual labels:  automation, webdriver
Automation Arsenal
Curated list of popular Java and Kotlin frameworks, libraries and tools related to software testing, quality assurance and adjacent processes automation.
Stars: ✭ 105 (-46.15%)
Mutual labels:  automation, webdriver
Ghostskb
Smart input method switcher like a ghost
Stars: ✭ 186 (-4.62%)
Mutual labels:  automation
Anime Dl
Anime-dl is a command-line program to download anime from CrunchyRoll and Funimation.
Stars: ✭ 190 (-2.56%)
Mutual labels:  automation

XCTestWD

NPM version node version npm download CircleCI

Swift implementation of WebDriver server for iOS that runs on Simulator/iOS devices.

Contributors


SamuelZhaoY


xudafeng


paradite


holy-lousie


adudurant


Chan-Chun


gurisxie


xqin


butterflyingdog


donlinglok


Nicolasyy


fengguochao

This project follows the git-contributor spec, auto updated at Wed Apr 15 2020 13:12:56 GMT+0800.

1. Requirements

  • XCode version > 10.1
  • iOS version 11.0 and above. (there is significant change on XCUITest interfaces and system private headers, hence we decide to support newest OS version only)

1.1. Carthage

Using Carthage with Xcode 12

https://github.com/Carthage/Carthage/blob/master/Documentation/Xcode12Workaround.md

carthage.sh can be found at the root of the project

$ carthage.sh bootstrap --platform iOS --cache-builds

2. Starting XCTestWD

XCTestWD can be either started with XCode IDE or via simple xcodebuild command line. By default, the webdriver agent occupies port 8001. You can override the default port in XCode by searching XCTESTWD_PORT under project build settings. Alternatively, it can also be overrided when you execute command line method as specified in 2.2. Using Xcodebuild

2.1. Using Xcode

Download the project and open the XCode project, checkout the scheme XCTestWDUITests and run the test case XCTextWDRunner

2.2. Using XcodeBuild

Open the terminal, go to the directory where contains XCTestWD.xcodeproj file and execute the following command:

#
# Change the port number to override the default port
#
$ xcodebuild -project XCTestWD.xcodeproj \
           -scheme XCTestWDUITests \
           -destination 'platform=iOS Simulator,name=iPhone 6' \
           XCTESTWD_PORT=8001 \
           clean test

To execute for iOS device, run the following command:

#
# Change the port number to override the default port
# Specify the device name
#
$ xcodebuild -project XCTestWD.xcodeproj \
           -scheme XCTestWDUITests \
           -destination 'platform=iOS,name=(your device name)' \
           XCTESTWD_PORT=8001 \
           clean test

Note: For versions above wxtestwd 2.0.0, please install ideviceinstaller for supporting real device testing

3. Element Types

In the current protocol, element strings for each XCUIElementType are generated based on the existing mapping in reference/xctest/xcuielementtype

4. Common Issues

4.1 Socket hangup error

Socket Hangup Error happens in the following two scenarios:

  • Case 1
    Issue:
    When you have some existing XCTestWD instances running and creating new ones.
    Solution:
    verify whether ideviceinstaller and xcrun is properly working on your device and simulator.
    Hint:
    https://github.com/libimobiledevice/ideviceinstaller/issues/48

  • Case 2
    Issue:
    When you have started the XCTestWD instance properly but fails in middle of a testing process.
    Solution:
    See the Macaca Service log to checkout which command leads the error. With detailed and comprehensive log information, please submit an issue to us.
    Optional:
    If you cannot get anything from macaca server log, open the XCTestWD in your node installation path and attatch for debugging on process 'XCTRunnerUITests-Runner'.

Additional Info
The project path is at

cd "$(npm root -g)/macaca-ios/node_modules/xctestwd"

Set up the linebreak for swift error and exceptions:

2017-12-14 10 56 33

Run your command regularly, once the driver has been initialized, attach the process:

2017-12-14 10 55 14

4.2 Swift modules fails to compile

Check carthage installation

4.3 Debug info

Now XCTestWD supports gathering debug log into log files which is stored in "Your-App-Sandbox-Root"/Documents/Logs dir. For real devices, you can connect to itunes and choose backup for XCTestWDUITests and get the debug log. For iOS simulators, the log file is in your computer's simulator app directory like:

"/Users/${user-name}/Library/Developer/CoreSimulator/Devices \
/${device-id}/data/Containers/Data/Application/${app-id}/Documents/Logs"

You can use xcrun simctl list to get the id of the booted device.

4.4

user PATH variable MACACA_XCTESTWD_ROOT_PATH to override the default one.

$ MACACA_XCTESTWD_ROOT_PATH=/path/to/macaca_xctest app-inspector -u xxx --verbose

4.5

We update dependencies by using other npm packages, because the XCode upgrade swift syntax is often not backward compatible.

package XCode version notes
xctestwd-frameworks 11.2.1
xctestwd-frameworks-11dot1 11.1
xctestwd-frameworks-10dot2 10.2
xctestwd-frameworks-10dot1 10.1
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].