Skip to content

Commit

Permalink
Add altUnity for android
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevazhnovu committed Sep 24, 2024
1 parent 94cac6a commit 5afa980
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions UI-TESTS/UITests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
Expand Down

0 comments on commit 5afa980

Please sign in to comment.