Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

WHAT IF WE TEST GOOGLE MAPS? How easy would that be? 👇

18,759 görüntüleme • 1 yıl önce •via X (Twitter)

11 Yorum

Maestro profil fotoğrafı
Maestro1 yıl önce

1️⃣ Setup once: curl -fsSL | bash 👉

Maestro profil fotoğrafı
Maestro1 yıl önce

2️⃣ Launch the App (with clearState) Using clearState ensures the app starts without previous data (shared preferences, databases, accounts, etc.). Think of it as a fresh install every time.

Maestro profil fotoğrafı
Maestro1 yıl önce

3️⃣ Tap any element by its text or ID easily: TapOn docs:

Maestro profil fotoğrafı
Maestro1 yıl önce

4️⃣ Typing: Maestro inputs text into fields automatically, even if they aren't initially focused: - inputText: san francisco You can also generate random inputs, like emails, names, or numbers, for varied test scenarios.

Maestro profil fotoğrafı
Maestro1 yıl önce

5️⃣ Swipe Precisely In our test, we swipe upwards from a specific element (header) to reveal more content. Specify swipes by direction (UP, DOWN, LEFT, RIGHT) or exact coordinates.

Maestro profil fotoğrafı
Maestro1 yıl önce

6️⃣ Scroll Until Element Visible Maestro scrolls automatically until the specified element is visible—very handy for dynamic lists. You can also set scrolling direction, speed, and timeout duration.

Maestro profil fotoğrafı
Maestro1 yıl önce

7️⃣ Validate with Regex Regex assertions ensure dynamic content like timestamps (e.g., 3:15) are correctly displayed: - assertVisible: '[0-9]+:[0-9][0-9]' Regex provides powerful and flexible validations for text-based elements.

Maestro profil fotoğrafı
Maestro1 yıl önce

🧪 Running the Test Simply execute: maestro test google-maps.yaml The CLI provides real-time feedback with a green checkmark (✅) for each successful step.

Maestro profil fotoğrafı
Maestro1 yıl önce

Why Maestro? ✅ Declarative & readable YAML ✅ Cross-platform (Android, iOS, Web) ✅ Quick and reliable tests ✅ Fully open source (Apache-2.0)

Fardeem profil fotoğrafı
Fardeem1 yıl önce

This is great! How do yall recommend getting past oauth flows and sign in pages

Maestro profil fotoğrafı
Maestro1 yıl önce

Maestro can work across multiple apps and even mobile browsers, so Maestro can interact with sign in screens that open up in the mobile browser just fine. As long as it accepts username / password you can pass those in as environment variables to your script: things like multi-factor auth, we recommend setting your app up so that can be bypassed in testing environments

Benzer Videolar