Skip to content

Commit

Permalink
Develop (#22)
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 attached with this PR?
  * [ ] Yes
  * [ ] No (Please explain why)

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

* Does the PR contain changes to modules shared with other teams?
* [ ] Yes (Needs approval from at least one of the other teams that use
the module)
  * [ ] No

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


### To be filled by the PR reviewer:

* [ ] Verify the attached run report passed in GitHub Actions (Justify
if local 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 Mar 17, 2024
2 parents abb390d + dba0894 commit bc231a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/api_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
fi
source $HOME/.bp-venv/bin/activate
sh api_run.sh "$TAGS"
sh api_run.sh "$TAGS" "${{secrets.SLACK_WEBHOOK_URL}}" "${{secrets.TEAMS_WEBHOOK_URL}}"
- name: Get Allure history
uses: actions/checkout@v4
Expand Down
4 changes: 3 additions & 1 deletion api_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh

# Run API tests
python -m pytest -v -s --gherkin-terminal-reporter --html="./output/reports/" --tags=$1 --self-contained-html --reruns 1 --reruns-delay 2 --alluredir=allure-results
python -m pytest -v -s --gherkin-terminal-reporter --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/
7 changes: 0 additions & 7 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,3 @@ addopts =
# Allure Report arguments
--clean-alluredir
--alluredir=output/allure/results
# Slack Notification arguments (fake hook for testing purpose only
--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://moduscreate.webhook.office.com/webhookb2/...
--teams-results-url=http://localhost:63342/pytest-automation-boilerplate/output/allure/reports/index.html

0 comments on commit bc231a6

Please sign in to comment.