Smartui XCUI Swift

1.0.0

LambdaTest/lambdatest-xcui

What's New

v1.0.0

2025-03-21T09:46:38Z

lambdatest-xcui

XCUI Swift SDK for LTApp

Note: We dont support XCTest as no UI is rendered for XCTest. We support only XCUI Test

Installation

Include the dependency in xcode package manager

  1. Right click on any item in Project Navigator
  2. Click Add Packages...
  3. Search top right with this repo URL
  4. Include package
  5. Go to your project properties -> select XCUI test project target
  6. Go to Build Phases tab
  7. Under Target Dependencies press + and select SmartuiXcui dependency
  8. Under Link Library with Binaries press + and select SmartuiXcui dependency

Usage

This is an example test using the screenshot function.

import XCTest
import SmartuiXcui // importing the package

final class MyAppUITests: XCTestCase {
    func testExample() throws {
        // launch application
        let app = XCUIApplication()
        app.launch()

        // take screenshot
        let ltApp = LTApp()
        try ltApp.screenshot(name: "screenshotName")
    }
}

Configuration

screenshot(name: String, customCropStatusBar: String = "", customCropNavigationBar: String = "")
  • name (required) - The screenshot name; must be unique to each screenshot
  • Optional field
    • customCropStatusBar
    • customCropNavigationBar

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu May 15 2025 23:55:45 GMT-0900 (Hawaii-Aleutian Daylight Time)