Appwright is a test runner for e2e testing of mobile apps, based on Playwright and Appium.
npm i --save-dev appwright
touch appwright.config.ts// 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,
},
},
],
});Appwright currently runs tests on BrowerStack only.
npx playwright test --config appwright.config.ts --project android
npx playwright test --config appwright.config.ts --project iosThese environment variables are required:
- BROWSERSTACK_USERNAME
- BROWSERSTACK_ACCESS_KEY
- BROWSERSTACK_APP_URL
npm install