Skip to content

SamsungGalaxyS24Ultra_14 #553

SamsungGalaxyS24Ultra_14

SamsungGalaxyS24Ultra_14 #553

Workflow file for this run

# This workflow will build a test Java + JUnit + Appium + BrowserStack project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Test Run
run-name: ${{github.event.inputs.device_name_and_version}}
on:
workflow_dispatch:
inputs:
test_tag:
description: 'Tags to run'
required: true
default: '@example_tag'
bs_app_link:
description: 'app_url of uploaded to BS link'
required: true
default: 'bs://c18a7bd4186aa3384596153ab08de6e3f157d350'
build_name:
description: 'build name of given application'
required: true
default: 'palace-debug'
platform_name:
description: 'Platform name'
required: true
default: 'android'
device_name_and_version:
description: 'device name and version for autotests'
required: true
default: 'SamsungGalaxyS22Ultra_12'
jobs:
job:
name: "${{github.event.inputs.device_name_and_version}}"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- name: Run tests
run: mvn clean test -Daquality.buildName="${{github.event.inputs.build_name}}" -DdriverSettings.${{github.event.inputs.platform_name}}.deviceKey=${{github.event.inputs.device_name_and_version}} -Daquality.suiteName="${{github.event.inputs.platform_name}} - ${{github.event.inputs.test_tag}}" -Daquality.environment="${{github.event.inputs.platform_name}}" -Dcredentials.LYRASISReads."ios".${{secrets.BookCardLyrasis1}}=${{secrets.BookPinLyrasis1}} -Dcredentials.LYRASISReads."ios".${{secrets.BookCardLyrasis2}}=${{secrets.BookPinLyrasis2}} -Dcredentials.LYRASISReads."ios".${{secrets.BookCardLyrasis3}}=${{secrets.BookPinLyrasis3}} -Dcredentials.LYRASISReads."ios".${{secrets.BookCardLyrasis4}}=${{secrets.BookPinLyrasis4}} -Dcredentials.LYRASISReads."android".${{secrets.BookCardLyrasis5}}=${{secrets.BookPinLyrasis1}} -Dcredentials.LYRASISReads."android".${{secrets.BookCardLyrasis6}}=${{secrets.BookPinLyrasis2}} -Dcredentials.LYRASISReads."android".${{secrets.BookCardLyrasis7}}=${{secrets.BookPinLyrasis3}} -Dcredentials.LYRASISReads."android".${{secrets.BookCardLyrasis8}}=${{secrets.BookPinLyrasis4}} -Dcredentials.A1QATestLibrary."ios".${{secrets.BookCardLyrasis1}}=${{secrets.BookPinLyrasis1}} -Dcredentials.A1QATestLibrary."ios".${{secrets.BookCardLyrasis2}}=${{secrets.BookPinLyrasis2}} -Dcredentials.A1QATestLibrary."ios".${{secrets.BookCardLyrasis3}}=${{secrets.BookPinLyrasis3}} -Dcredentials.A1QATestLibrary."ios".${{secrets.BookCardLyrasis4}}=${{secrets.BookPinLyrasis4}} -Dcredentials.A1QATestLibrary."android".${{secrets.BookCardLyrasis5}}=${{secrets.BookPinLyrasis1}} -Dcredentials.A1QATestLibrary."android".${{secrets.BookCardLyrasis6}}=${{secrets.BookPinLyrasis2}} -Dcredentials.A1QATestLibrary."android".${{secrets.BookCardLyrasis7}}=${{secrets.BookPinLyrasis3}} -Dcredentials.A1QATestLibrary."android".${{secrets.BookCardLyrasis8}}=${{secrets.BookPinLyrasis4}} -DremoteConnectionUrl=${{secrets.remoteConnectionUrl}} -DdriverSettings.${{github.event.inputs.platform_name}}.capabilities."browserstack.user"=${{secrets.BROWSERSTACK_USER}} -DdriverSettings.${{github.event.inputs.platform_name}}.capabilities."browserstack.key"=${{secrets.BROWSERSTACK_KEY}} -DplatformName=${{github.event.inputs.platform_name}} -DdriverSettings.${{github.event.inputs.platform_name}}.capabilities.app=${{github.event.inputs.bs_app_link}} -Dcucumber.options="--tags '(${{github.event.inputs.test_tag}} and not @ignore) and not @exclude_${{github.event.inputs.platform_name}}'" -Daquality.enabled="true" -Daquality.host="http://144.24.167.167:8080/api/import" -Daquality.token=${{secrets.AQUALITY_TRACKING}} -Daquality.projectId="300" -Daquality.executor="Ekaterina" -Daquality.ciBuild="debug" -Daquality.debug="false" -Daquality.attachmentsDirectory="target/attachments"
continue-on-error: true
- name: Generate Allure Report
run: mvn allure:report
- name: Upload Allure Report
uses: actions/upload-artifact@v2
with:
name: allure-report
path: target/site/allure-maven-plugin
- name: Archive Allure Report
uses: actions/upload-artifact@v2
with:
name: allure-report
path: target/site/allure-maven-plugin
- name: Clean Up
run: rm -rf allure-results