Skip to content
maonaoda edited this page Dec 14, 2024 · 3 revisions

Add The UITest For MAUI

Docs:

https://github.com/dotnet/maui/blob/main/docs/design/UITesting.md

https://github.com/dotnet/maui/wiki/UITests

Memo:

  • Install Appium

    sudo -E dotnet pwsh /Users/xxx/Projects/Practice/my_maui/eng/scripts/appium-install.ps1
    • use E to use local environment variable to solve this

      Running 7 doctor checks for the "uiautomator2" driver
      info Doctor ### Starting doctor diagnostics  ###
      WARN Doctor  ✖ ANDROID_HOME environment variable is NOT set!
      WARN Doctor  ✖ adb, emulator, apkanalyzer could not be found because ANDROID_HOME is NOT set!
      WARN Doctor  ✖ JAVA_HOME environment variable is NOT set!
      WARN Doctor  ✖ $JAVA_HOME environment variable must be set
      WARN Doctor  ✖ bundletool.jar cannot be found
      WARN Doctor  ✖ ffmpeg cannot be found
      WARN Doctor  ✖ gst-launch-1.0 and/or gst-inspect-1.0 cannot be found
    • appium-install.ps1 is in maui project

Clone this wiki locally