Skip to content

LambdaTest/lambdatest-xcui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages