> For the complete documentation index, see [llms.txt](https://docs.testfirst.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.testfirst.com/testfirst-editor/android-mobile-automation/cross-platform-test-automation.md).

# Cross-Platform Test Automation

Unlike traditional automation frameworks that separate web and mobile testing, TestFirst allows multiple automation types to be executed within the same test flow.

This means a single test can:

* Launch and validate a mobile application
* Continue execution in a web browser
* Call APIs
* Execute SSH commands
* Share variables and data between steps

All within the same test case.

The example below starts in an Android application and continues in a web browser using the same test case:

```gherkin
Scenario: Start emulator and run the app
  Given application "{Android apps.TestFirst Sample 1}"
  And mobile device "{Devices.Android.Pixel 10}"
  When I run application

Scenario: Test 1
  When I tap "Click me"

Scenario: Test 2
  When I tap "Show table"
  And I tap "R2C2"
  And I tap "R6C3"
  Then "R6C3 - clicked" is displayed in mobile device

Scenario: Test 3
  When I scroll down in mobile device
  And I wait for 2 seconds
  And I tap "Back"

Scenario: Browser
  Given browser "Chrome"
  When I visit "testfirst.com"
  And I click "Sign in"
  And I tap "Show table"
  And I tap "Back"
```

This allows teams to automate end-to-end business workflows that span multiple platforms while using the same editor, test structure, and execution model.
