An open API service indexing awesome lists of open source software.

https://github.com/sadabnepal/mobilewright-test-framework

Mobilewright is an end-to-end testing framework for mobile applications. It provides a TypeScript API for automating iOS and Android devices, with built-in auto-waiting, assertions, and test reporting.
https://github.com/sadabnepal/mobilewright-test-framework

mobile-app-testing mobilewright

Last synced: about 1 month ago
JSON representation

Mobilewright is an end-to-end testing framework for mobile applications. It provides a TypeScript API for automating iOS and Android devices, with built-in auto-waiting, assertions, and test reporting.

Awesome Lists containing this project

README

          

# Mobilewright Setup Guide

## Clone Repository
```
git clone https://github.com/sadabnepal/mobilewright-test-framework.git
cd mobilewright-test-framework
```

## Prerequisites

| | Requirement |
|------------------|-------------|
| ๐ŸŸข **Runtime** | Node.js `>= 18` |
| ๐Ÿ“ฑ **Device** | iOS simulator, Android emulator, or connected real device |
| ๐Ÿ”ง **Toolchain** | Xcode (for iOS) ยท Android SDK + ADB (for Android) |

---

## Verify Your Environment

List connected devices:
```bash
npx mobilewright devices
```

Check environment health:
```bash
npx mobilewright doctor
```

---

## Boot a Simulator

**Step 1 : List available simulators**
```bash
xcrun simctl list devices available
```

**Step 2 : Boot a device by name or UDID**
```bash
# Replace with your device name or UDID
xcrun simctl boot "iPhone 17"
```

**Step 3 : Open Simulator app**
```bash
open -a Simulator
```

> ๐Ÿ’ก Having trouble? Check the [KnowledgeBase](./knowledgeBase/) for setup fixes.

---

### Download and Setup app
Download both android and ios: https://github.com/webdriverio/native-demo-app/releases
1. Scroll to Assets section and download the apps
2. create folder as below
```
apps
-> android (.apk file goes in this folder)
-> ios (.zip file for ios goes in this folder)
```
3. Rename files as below
- android apk file: wdiodemoapp.apk
- ios zip file: wdiodemoapp.zip

#### Refer Folder Structure

![folder-structure.png](./samples/folder-structure.png)

---

## References

- [๐Ÿ“– **Mobilewright Getting started**](https://mobilewright.dev/docs/getting-started/writing-tests)
- [๐Ÿ™ **Mobilewright Skills**](https://github.com/mobile-next/mobilewright-skill)