Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 952 Bytes

File metadata and controls

55 lines (41 loc) · 952 Bytes

Appwright

Appwright is a test runner for e2e testing of mobile apps, based on Playwright and Appium.

Usage

Install

npm i --save-dev appwright
touch appwright.config.ts

Configure

// In appwright.config.ts
import { defineConfig, Platform } from "appwright";
export default defineConfig({
  projects: [
    {
      name: "android",
      use: {
        platform: Platform.ANDROID,
        deviceName: "Google Pixel 8",
        osVersion: "14.0",
        buildURL: process.env.BROWSERSTACK_APP_URL,
      },
    },
  ],
});

Run tests

Appwright currently runs tests on BrowerStack only.

npx playwright test --config appwright.config.ts --project android
npx playwright test --config appwright.config.ts --project ios

These environment variables are required:

  • BROWSERSTACK_USERNAME
  • BROWSERSTACK_ACCESS_KEY
  • BROWSERSTACK_APP_URL

Development

Install dependencies

npm install