0/12 selesai APK

Perintah Maestro yang dipakai di kursus

Satu baris contoh untuk tiap perintah. Label di kanan menunjuk modul yang membahasnya.

Mulai

  • launchApp: { clearState: true }Buka app dari kondisi bersih
    M01
  • stopAppTutup app
    M09

Tap & ketik

  • tapOn: { id: login_submit_button }Tap elemen
    M01
  • inputText: "0812…"Ketik di field yang fokus
    M03
  • eraseText: 30Hapus karakter
    M03
  • hideKeyboardTutup keyboard
    M03
  • pressKey: EnterTekan tombol keyboard
    M03
  • backTombol kembali Android
    M05

Scroll & gesture

  • scrollScroll satu layar
    M04
  • scrollUntilVisible: { element: { id: … } }Scroll sampai terlihat
    M04
  • swipe: { direction: LEFT }Geser
    M04
  • longPressOn: { id: … }Tekan lama
    M04

Periksa

  • assertVisible: { id: …, text: … }Harus tampil
    M01
  • assertNotVisible: { id: … }Tidak boleh tampil
    M06
  • assertTrue: ${output.total > 0}Ekspresi JavaScript
    M06

Menunggu

  • extendedWaitUntil: { visible: …, timeout: 5000 }Tunggu lebih lama
    M07
  • waitForAnimationToEndTunggu animasi
    M07

Alur & data

  • runFlow: { file: …, env: { … } }Jalankan subflow
    M08
  • copyTextFrom: { id: … }Salin teks dari layar
    M08
  • evalScript: ${output.x = …}Simpan ke variabel
    M08
  • repeat: { times: 3, commands: [ … ] }Ulangi langkah
    M09
  • retry: { maxRetries: 2, commands: [ … ] }Coba ulang
    M10
  • takeScreenshot: namaSimpan screenshot
    M10
  • openLink: https://…Buka tautan / deep link
    M05

CLI

  • maestro test flows/01.yamlJalankan satu flow
    M00
  • maestro test .maestro/Jalankan suite
    M12
  • maestro studioInspeksi layar
    M02
  • maestro hierarchyCetak pohon layar
    M02
  • --include-tags smokeFilter tag
    M12
  • --format junit --output report.xmlLaporan untuk CI
    M12