diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index 75048b82..e8066422 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -53,13 +53,14 @@ jobs: run: | npm i --location=global appium appium driver install uiautomator2 + appium plugin install --source=npm appium-altunity-plugin CurWorkDir=$(pwd) pushd "$CurWorkDir" mkdir logs cd logs echo "appium" > appiumLog.txt popd - appium &>logs/appiumLog.txt & + appium --use-plugins=altunity &>logs/appiumLog.txt & - name: Create log files for logcat run: | cd logs diff --git a/UI-TESTS/UITests.cs b/UI-TESTS/UITests.cs index aeff368d..639f89f8 100644 --- a/UI-TESTS/UITests.cs +++ b/UI-TESTS/UITests.cs @@ -43,6 +43,8 @@ public void Setup() desiredCaps.AddAdditionalAppiumOption("appium:sendKeyStrategy", "setValue"); if (platformAndroid) { + desiredCaps.AddAdditionalAppiumOption("appium:altUnityHost", TestContext.Parameters["altTesterIP"]); + desiredCaps.AddAdditionalAppiumOption("appium:altUnityPort", 13000); desiredCaps.AddAdditionalAppiumOption("appium:ignoreHiddenApiPolicyError" , true); // desiredCaps.AddAdditionalAppiumOption("appium:chromedriverAutodownload", true); desiredCaps.AddAdditionalAppiumOption("appium:chromedriverExecutable", (string)rootDir+TestContext.Parameters["appium:chromedriverExecutable"]);