StrikekitStrikekit

Mobile examples

Platform mobile headers and a native Appium login skeleton

Mobile files declare device/app headers. The app opens from Package: / Activity: — do not use navigate to for the initial launch. Use navigate to only for in-app screen routing.

Android login skeleton

Platform: mobile
Driver: native
OS: Android
Device: emulator-5554
Package: com.example.myapp
Activity: .MainActivity

Group: Mobile Smoke

    Scenario: Open home and log in @smoke
        Then I should see "Welcome"
        When I navigate to ".LoginActivity"
        And I fill "username" with "chamodh"
        And I fill "password" with "secret123"
        And I click on "Login"
        Then I should see "Welcome"
        And I should be on "LoginActivity"
        And I should have "username" value "chamodh" be enabled
        When I store "@user" from "username"
        Then I should see "@user"

Scope a labeled region (mobile)

Platform: mobile
Driver: native
OS: Android
Device: emulator-5554
Package: com.example.myapp
Activity: .MainActivity

Group: Mobile Smoke

    Scenario: Act inside a labeled panel
        When I scope to "Payment frame"
        Then I should in "Payment frame" see "Pay now"
        When I scope to "page"
        Then I should not see "Error"

iOS header shape

Platform: mobile
Driver: native
OS: iOS
Device: iPhone 16
Package: com.example.myapp

Group: Mobile iOS

    Scenario: Home screen
        Then I should see "Welcome"

Activity: is Android-only and ignored on iOS.

Appium must be reachable (default http://127.0.0.1:4723).

On this page