From 809804a34bf0cfa19effc9ff3aea24f54401ceb2 Mon Sep 17 00:00:00 2001 From: tauqirsarwar1 Date: Thu, 14 Mar 2024 09:13:31 +0500 Subject: [PATCH 1/3] Cron job timing changes --- .github/workflows/android_workflow.yml | 2 +- .github/workflows/api_workflow.yml | 2 +- .github/workflows/ios_workflow.yml | 2 +- .github/workflows/ui_workflow.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/android_workflow.yml b/.github/workflows/android_workflow.yml index 7ee3e626..bf428ed0 100644 --- a/.github/workflows/android_workflow.yml +++ b/.github/workflows/android_workflow.yml @@ -7,7 +7,7 @@ env: on: schedule: - - cron: '30 1 * * *' + - cron: '30 21 * * *' workflow_dispatch: inputs: tags: diff --git a/.github/workflows/api_workflow.yml b/.github/workflows/api_workflow.yml index 68c1328f..52bc9773 100644 --- a/.github/workflows/api_workflow.yml +++ b/.github/workflows/api_workflow.yml @@ -8,7 +8,7 @@ env: on: schedule: - - cron: '30 2 * * *' + - cron: '0 21 * * *' workflow_dispatch: inputs: tags: diff --git a/.github/workflows/ios_workflow.yml b/.github/workflows/ios_workflow.yml index c30afbc6..aa32c8dd 100644 --- a/.github/workflows/ios_workflow.yml +++ b/.github/workflows/ios_workflow.yml @@ -7,7 +7,7 @@ env: on: schedule: - - cron: '30 3 * * *' + - cron: '0 22 * * *' workflow_dispatch: inputs: tags: diff --git a/.github/workflows/ui_workflow.yml b/.github/workflows/ui_workflow.yml index 3ca3954b..56967e0a 100644 --- a/.github/workflows/ui_workflow.yml +++ b/.github/workflows/ui_workflow.yml @@ -12,7 +12,7 @@ env: on: schedule: - - cron: '30 4 * * *' + - cron: '30 22 * * *' workflow_dispatch: inputs: tags: From 362f2934c831bd0d60aeff09383a4b6ad2007a7c Mon Sep 17 00:00:00 2001 From: tauqirsarwar1 Date: Thu, 14 Mar 2024 09:29:12 +0500 Subject: [PATCH 2/3] Cron job timing changes --- .../test_project/features/mobile/android_login.feature | 6 +++--- frontend/test_project/features/mobile/ios_login.feature | 6 +++--- pytest.ini | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/test_project/features/mobile/android_login.feature b/frontend/test_project/features/mobile/android_login.feature index 9371750c..2d6410e1 100644 --- a/frontend/test_project/features/mobile/android_login.feature +++ b/frontend/test_project/features/mobile/android_login.feature @@ -16,7 +16,7 @@ Feature: Basic App functionality When The element 'Android > _mob > MyDemoApp > menu_icon' is displayed @mobile_test @android - Scenario: Verify logout from app + Scenario: Verify logout from app on android app When I click on element 'Android > _mob > MyDemoApp > menu_icon' Then The element 'Android > _mob > MyDemoApp > logout' is displayed When I click on element 'Android > _mob > MyDemoApp > logout' @@ -27,7 +27,7 @@ Feature: Basic App functionality Then The element 'Android > _mob > MyDemoApp > username' is displayed @mobile_test @android - Scenario: Verify Add and Remove items from cart + Scenario: Verify Add and Remove items from cart on android app When The element 'Android > _mob > MyDemoApp > item_sl_backpack' is displayed And I swipe down '50' % each time for '4' times And I click on element 'Android > _mob > an-items > Sauce_Labs_Onesie' @@ -52,7 +52,7 @@ Feature: Basic App functionality Then The element 'Android > _mob > MyDemoApp > username' is displayed @mobile_test @android - Scenario: Verify Place Order + Scenario: Verify Place Order on android app When The element 'Android > _mob > MyDemoApp > item_sl_backpack' is displayed And I swipe down '50' % each time for '4' times And I click on element 'Android > _mob > an-items > Sauce_Labs_Onesie' diff --git a/frontend/test_project/features/mobile/ios_login.feature b/frontend/test_project/features/mobile/ios_login.feature index 90482771..8c3d6b04 100644 --- a/frontend/test_project/features/mobile/ios_login.feature +++ b/frontend/test_project/features/mobile/ios_login.feature @@ -2,7 +2,7 @@ Feature: Basic IOS App functionality @mobile_test @ios - Scenario: Verify login/logout + Scenario: Verify login/logout on IOS app Given I open the mobile application When The element '_mob > MyDemoApp > Catalog' is displayed And I click on element '_mob > MyDemoApp > Catalog' @@ -31,7 +31,7 @@ Feature: Basic IOS App functionality And The element '_mob > MyDemoApp > username' is displayed @mobile_test @ios - Scenario: Verify Add/Remove items from cart + Scenario: Verify Add/Remove items from cart on IOS app Given I open the mobile application When The element '_mob > MyDemoApp > menu_icon' is displayed And I click on element '_mob > MyDemoApp > menu_icon' @@ -63,7 +63,7 @@ Feature: Basic IOS App functionality And The element '_mob > MyDemoApp > username' is displayed @mobile_test @ios - Scenario: Verify Place Order + Scenario: Verify Place Order on IOS app Given I open the mobile application When The element '_mob > MyDemoApp > menu_icon' is displayed And I click on element '_mob > MyDemoApp > menu_icon' diff --git a/pytest.ini b/pytest.ini index ccb54346..38d4ea97 100755 --- a/pytest.ini +++ b/pytest.ini @@ -13,10 +13,10 @@ addopts = # Allure Report arguments --clean-alluredir --alluredir=output/allure/results -# Slack Notification arguments - --slack-webhook-url=https://.... +# Slack Notification arguments (fake hook for testing purpose only + --slack-webhook-url=https://hooks.test.com/services/... --slack-channel=pytest-test-automation --slack-results-url=http://localhost:63342/pytest-automation-boilerplate/output/allure/reports/index.html -# MS Teams Notification arguments - --teams-webhook-url=https://.... +# MS Teams Notification arguments(fake hook for testing purpose only + --teams-webhook-url=https://test.webhook.office.com/webhookb2/... --teams-results-url=http://localhost:63342/pytest-automation-boilerplate/output/allure/reports/index.html From f7d818ebeea29fe306ebbc4b7811edd5f46e178e Mon Sep 17 00:00:00 2001 From: tauqirsarwar1 Date: Thu, 14 Mar 2024 09:33:39 +0500 Subject: [PATCH 3/3] fake hooks --- pytest.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytest.ini b/pytest.ini index 38d4ea97..09e40535 100755 --- a/pytest.ini +++ b/pytest.ini @@ -14,9 +14,9 @@ addopts = --clean-alluredir --alluredir=output/allure/results # Slack Notification arguments (fake hook for testing purpose only - --slack-webhook-url=https://hooks.test.com/services/... + --slack-webhook-url=https://hooks.slack.com/services/.. --slack-channel=pytest-test-automation --slack-results-url=http://localhost:63342/pytest-automation-boilerplate/output/allure/reports/index.html # MS Teams Notification arguments(fake hook for testing purpose only - --teams-webhook-url=https://test.webhook.office.com/webhookb2/... + --teams-webhook-url=https://moduscreate.webhook.office.com/webhookb2/... --teams-results-url=http://localhost:63342/pytest-automation-boilerplate/output/allure/reports/index.html