Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

18,759 Aufrufe • vor 1 Jahr •via X (Twitter)

11 Kommentare

Profilbild von Maestro
Maestrovor 1 Jahr

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

Profilbild von Maestro
Maestrovor 1 Jahr

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.

Profilbild von Maestro
Maestrovor 1 Jahr

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

Profilbild von Maestro
Maestrovor 1 Jahr

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.

Profilbild von Maestro
Maestrovor 1 Jahr

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.

Profilbild von Maestro
Maestrovor 1 Jahr

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.

Profilbild von Maestro
Maestrovor 1 Jahr

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.

Profilbild von Maestro
Maestrovor 1 Jahr

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

Profilbild von Maestro
Maestrovor 1 Jahr

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

Profilbild von Fardeem
Fardeemvor 1 Jahr

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

Profilbild von Maestro
Maestrovor 1 Jahr

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

Ähnliche Videos