diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ab01a6fc..b1dfbd02 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -137,6 +137,11 @@ jobs: echo Cannot run Appium tests when build was triggered by dependabot exit 1 - uses: actions/checkout@v3 + - name: BrowserStack Env Setup + uses: browserstack/github-actions/setup-env@master + with: + username: ${{ secrets.BROWSERSTACK_USERNAME }} + access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} - uses: actions/setup-node@v4 if: matrix.module-name == 'openmaqs-playwright' with: @@ -260,7 +265,6 @@ jobs: with: distribution: zulu java-version: 11 - cache: maven - name: Restore Local Maven Cache uses: actions/cache@v3.3.1 with: @@ -270,7 +274,7 @@ jobs: uses: whelk-io/maven-settings-xml-action@v21 with: profiles: '[{"id": "gpg", "properties": { "gpg.keyname": "${{secrets.GPG_KEYNAME_ID}}", "gpg.passphrase": "${{secrets.GPG_PASSPHRASE}}" }}]' - servers: '[{"id": "ossrh", "username": "${{secrets.DEPLOY_PACKAGE_USERNAME}}", "password": "${{secrets.DEPLOY_PACKAGE_PASSWORD}}"}]' + servers: '[{"id": "ossrh", "username": "${{vars.DEPLOY_PACKAGE_USERNAME}}", "password": "${{secrets.DEPLOY_PACKAGE_PASSWORD}}"}]' active_profiles: > [ "ossrh", "release", "gpg" ] - name: Import GPG key diff --git a/openmaqs-appium/browserstack.yml b/openmaqs-appium/browserstack.yml new file mode 100644 index 00000000..b45cffb3 --- /dev/null +++ b/openmaqs-appium/browserstack.yml @@ -0,0 +1,12 @@ +framework: testng +platforms: + - deviceName: Google Pixel 7 Pro + osVersion: 13.0 + browserName: android + deviceOrientation: portrait +parallelsPerPlatform: 5 +browserstackLocal: false +buildIdentifier: ${BUILD_NUMBER} +debug: true +networkLogs: false +consoleLogs: errors \ No newline at end of file diff --git a/openmaqs-appium/config.xml b/openmaqs-appium/config.xml index 14607a7d..522b6d5c 100644 --- a/openmaqs-appium/config.xml +++ b/openmaqs-appium/config.xml @@ -39,7 +39,7 @@ Android GoogleAPI Emulator - http://ondemand.saucelabs.com:80/wd/hub + https://hub.browserstack.com/wd/hub 122000 diff --git a/openmaqs-appium/pom.xml b/openmaqs-appium/pom.xml index 6117bde7..523ecb44 100644 --- a/openmaqs-appium/pom.xml +++ b/openmaqs-appium/pom.xml @@ -67,4 +67,56 @@ compile + + + testing + + true + + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.3.0 + + + getClasspathFilenames + + properties + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${surefire.plugin.version} + + methods + 5 + + ${argLine} -javaagent:@{com.browserstack:browserstack-java-sdk:jar} + + + + + org.apache.maven.surefire + surefire-testng + ${surefire.plugin.version} + + + + + + + + com.browserstack + browserstack-java-sdk + 1.2.1 + + + + + diff --git a/openmaqs-selenium/browserstack.yml b/openmaqs-selenium/browserstack.yml new file mode 100644 index 00000000..e863ecee --- /dev/null +++ b/openmaqs-selenium/browserstack.yml @@ -0,0 +1,12 @@ +framework: testng +platforms: + - os: Windows + osVersion: 11 + browserName: Chrome + browserVersion: latest +parallelsPerPlatform: 5 +browserstackLocal: false +buildIdentifier: ${BUILD_NUMBER} +debug: true +networkLogs: false +consoleLogs: errors \ No newline at end of file diff --git a/openmaqs-selenium/config.xml b/openmaqs-selenium/config.xml index 533810ee..2bd394bb 100644 --- a/openmaqs-selenium/config.xml +++ b/openmaqs-selenium/config.xml @@ -39,17 +39,17 @@ Firefox Edge HEADLESSCHROME--> - HEADLESSCHROME + REMOTE Chrome - http://ondemand.saucelabs.com:80/wd/hub + https://hub.browserstack.com/wd/hub https://openmaqs.github.io/TestingSite/Automation/ 1000 20000 Chrome - OS X 10.11 - 54.0 + +