From 71ca935d97f1f285e160bac9557ef83a5f57948e Mon Sep 17 00:00:00 2001 From: tauqirsarwar1 Date: Fri, 29 Mar 2024 17:58:30 +0500 Subject: [PATCH 1/3] safari test case fixed --- .github/workflows/docker_ios_workflow.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/docker_ios_workflow.yml b/.github/workflows/docker_ios_workflow.yml index 5b56b9d2..1ee3f3d3 100644 --- a/.github/workflows/docker_ios_workflow.yml +++ b/.github/workflows/docker_ios_workflow.yml @@ -42,7 +42,6 @@ jobs: if: steps.setup_appium.outcome == 'success' run: | appium driver install xcuitest - appium driver install uiautomator2 appium --log-level debug & sleep 10 appium -v @@ -126,7 +125,6 @@ jobs: if: steps.setup_appium.outcome == 'success' run: | appium driver install xcuitest - appium driver install uiautomator2 appium --log-level debug & sleep 10 appium -v From a832724502d86e888332fc3f480ad0fdacae4552 Mon Sep 17 00:00:00 2001 From: tauqirsarwar1 Date: Mon, 1 Apr 2024 10:09:22 +0500 Subject: [PATCH 2/3] safari test case fixed --- .../test_project/features/mobile/ios_login.feature | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/test_project/features/mobile/ios_login.feature b/frontend/test_project/features/mobile/ios_login.feature index d09e3617..715c93fb 100644 --- a/frontend/test_project/features/mobile/ios_login.feature +++ b/frontend/test_project/features/mobile/ios_login.feature @@ -94,12 +94,14 @@ Feature: Basic IOS App functionality And I click on element '_mob > MyDemoApp > back_button' And I click on element '_mob > Payment_Detail > Payment' And The element '_mob > Payment_Detail > Full_name' is displayed - And I set text 'Tauqir Sarwar' to field '_mob > Payment_Detail > Full_name' + And I set text 'Tauqir' to field '_mob > Payment_Detail > Full_name' + And I add text 'Sarwar' to field '_mob > Payment_Detail > Full_name' And I set text '325885556585999' to field '_mob > Payment_Detail > Card_Number' - And I set text '0325' to field '_mob > Payment_Detail > expired_card' + And I set text '03' to field '_mob > Payment_Detail > expired_card' + And I add text '25' to field '_mob > Payment_Detail > expired_card' And I set text '123' to field '_mob > Payment_Detail > CVV' - And I scroll to element '_mob > Payment_Detail > Enter_Click' for '2' iterations - And I click on element '_mob > Payment_Detail > Enter_Click' +# And I scroll to element '_mob > Payment_Detail > Enter_Click' for '2' iterations +# And I click on element '_mob > Payment_Detail > Enter_Click' And I scroll to element '_mob > Review_Order > Review' for '2' iterations And I click on element '_mob > Review_Order > Review' And I click on element '_mob > Review_Order > Review' From 4422d6d64838e29745f22a1d8ede35205361ae90 Mon Sep 17 00:00:00 2001 From: tauqirsarwar1 Date: Mon, 1 Apr 2024 10:24:00 +0500 Subject: [PATCH 3/3] safari test case fixed --- .github/workflows/ui_workflow.yml | 4 ++-- ci_run_api.sh | 2 +- ci_run_web.sh | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ui_workflow.yml b/.github/workflows/ui_workflow.yml index 41793aa8..11387778 100644 --- a/.github/workflows/ui_workflow.yml +++ b/.github/workflows/ui_workflow.yml @@ -156,7 +156,7 @@ jobs: run: | env source $HOME/.bp-venv/bin/activate - sh ci_run_web.sh ${{secrets.BROWSERSTACK_API_USERNAME}} ${{secrets.BROWSERSTACK_ACCESS_KEY}} "${{ matrix.config_file }}" "$TAGS" "$BASE_URL" + sh ci_run_web.sh ${{secrets.BROWSERSTACK_API_USERNAME}} ${{secrets.BROWSERSTACK_ACCESS_KEY}} "${{ matrix.config_file }}" "$TAGS" "$BASE_URL" "${{secrets.SLACK_WEBHOOK_URL}}" "${{secrets.TEAMS_WEBHOOK_URL}}" # --pytest-testrail-export-test-results \ # --testrail-project-id "${{ env.TESTRAIL_PROJECT_ID }}" \ # --pytest-testrail-test-plan-id "${{ env.TEST_PLAN_ID }}" \ @@ -294,7 +294,7 @@ jobs: env source $HOME/.bp-venv/bin/activate - sh ci_run_web.sh ${{secrets.BROWSERSTACK_API_USERNAME}} ${{secrets.BROWSERSTACK_ACCESS_KEY}} "$BROWSER" "$TAGS" "$BASE_URL" + sh ci_run_web.sh ${{secrets.BROWSERSTACK_API_USERNAME}} ${{secrets.BROWSERSTACK_ACCESS_KEY}} "$BROWSER" "$TAGS" "$BASE_URL" "${{secrets.SLACK_WEBHOOK_URL}}" "${{secrets.TEAMS_WEBHOOK_URL}}" - name: BrowserStackLocal Stop uses: browserstack/github-actions/setup-local@master diff --git a/ci_run_api.sh b/ci_run_api.sh index 74f809c5..ea2207e7 100755 --- a/ci_run_api.sh +++ b/ci_run_api.sh @@ -3,4 +3,4 @@ # Run API tests python -m pytest -vv -s --html="./output/reports/" --tags=$1 --self-contained-html --reruns 1 --reruns-delay 2 --alluredir=allure-results \ --slack-webhook-url=$2 --slack-channel=pytest-test-automation --slack-results-url=https://tweag.github.io/pytest-automation-boilerplate --teams-webhook-url=$3 \ ---teams-results-url=https://tweag.github.io/pytest-automation-boilerplate -n=4 \ No newline at end of file +--teams-results-url=https://tweag.github.io/pytest-automation-boilerplate --slack-failure-only=true --teams-failure-only=true -n=4 \ No newline at end of file diff --git a/ci_run_web.sh b/ci_run_web.sh index 2c3e45b1..ddafe6d4 100755 --- a/ci_run_web.sh +++ b/ci_run_web.sh @@ -2,4 +2,6 @@ # Run Web tests python -m pytest -vv -s --gherkin-terminal-reporter --driver=Remote --selenium-host "$1":"$2""@hub-cloud.browserstack.com" --variables=$3 --html="./output/reports/" \ ---tags=$4 --reruns 1 --reruns-delay 2 --self-contained-html --capability headless False --base-url=$5 \ No newline at end of file +--tags=$4 --reruns 1 --reruns-delay 2 --self-contained-html --capability headless False --base-url=$5 --slack-webhook-url=$6 --slack-channel=pytest-test-automation \ +--slack-results-url=https://tweag.github.io/pytest-automation-boilerplate --teams-webhook-url=$7 \ +--teams-results-url=https://tweag.github.io/pytest-automation-boilerplate --slack-failure-only=true --teams-failure-only=true \ No newline at end of file