Skip to content

Commit

Permalink
Develop (#78)
Browse files Browse the repository at this point in the history
### To be filled by the PR creator:

* A brief description of the changes made - 

* Do we have clean latest run report (Docker or Browserstack) attached
with this PR?
  * [ ] Yes
  * [ ] No (Please explain why)

* Does the PR contain changes to any core file?
  * [ ] Yes (Needs approval from at least 1 people)
  * [ ] No

* Is it
  * [ ] New Testcase
  * [ ] Fix


### To be filled by the PR reviewer:

* [ ] Verify the attached run report passed in GitHub Actions (Docker or
Browserstack run)

* General
    * [ ] Use the best strategy to locate the elements
    * [ ] Comments wherever the code is not readable by itself
    * [ ] Use of the right data structure for the use case
    * [ ] Reuse logic/functionality as much as possible
    * [ ] Cleanup of any test data that is generated by the tests
    * [ ] No static waits
  • Loading branch information
Tauqir Sarwar authored Apr 1, 2024
2 parents c609ab5 + 4422d6d commit b730ba8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docker_ios_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ui_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}" \
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ci_run_api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
--teams-results-url=https://tweag.github.io/pytest-automation-boilerplate --slack-failure-only=true --teams-failure-only=true -n=4
4 changes: 3 additions & 1 deletion ci_run_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
--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
10 changes: 6 additions & 4 deletions frontend/test_project/features/mobile/ios_login.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b730ba8

Please sign in to comment.