Skip to content

Commit

Permalink
14 inserido tags e criado wf manual
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianaSilvaRossi committed Nov 20, 2023
1 parent 2dc6cde commit aa5208d
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 8 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/github-actions-demo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,12 @@ jobs:
run: |
echo "Listando os arquivos do meu diretorio"
ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: echo "🍏 This job's status is ${{ job.status }}."

- name: Send Report
if: always()
uses: joonvena/[email protected]
with:
report-path: results-tests
gh_access_token: ${{ secrets.GITHUB_TOKEN }}
show_passed_tests: false
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,3 @@ jobs:
with:
name: results-tests

- name: Send Report
if: always()
uses: joonvena/[email protected]
with:
report-path: results-tests
gh_access_token: ${{ secrets.GITHUB_TOKEN }}
show_passed_tests: false
47 changes: 47 additions & 0 deletions .github/workflows/tests-on-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Run Web Tests
run-name: ${{ github.actor }} is testing by trigger - manual
on:
workflow_dispatch:
inputs:
tag:
type: string
description: informa a funcionalidade que será validada
required: true

jobs:
web-tests:
runs-on: ubuntu-20.04
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Requirements
run: |
python -m pip install --upgrade pip
pip install -U -r requirements.txt
- name: Command Test Execution
run: |
pabot --processes 4 -d ./resources/results -i ${{ inputs.tag }} ./tests/*
- name: Upload Tests Results
if: always()
uses: actions/upload-artifact@v3
with:
name: results-tests
path: ./resources/results
if-no-files-found: ignore
retention-days: 7

- name: Dowload Tests Results
if: always()
uses: actions/download-artifact@v3
with:
name: results-tests

1 change: 1 addition & 0 deletions tests/shouldValidateAccessSiteTest.robot
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Suite Teardown Close Browser

*** Test Cases ***
Validate search results on Google
[Tags] smoke-test
Given The User Enters The Item Iphone
When The confirm the search
Then The Result Should Be Aproximadamente
1 change: 1 addition & 0 deletions tests/shouldValidateaccessibilityTest.robot
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Suite Teardown Close Browser

*** Test Cases ***
Google Accessibility Test
[Tags] smoke-test
# execute accessibility tests
&{results}= Run Accessibility Tests google.json
Log Violations Count: ${results.violations}
Expand Down
1 change: 1 addition & 0 deletions tests/shouldValidateaccessibilityWithContextTest.robot
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Suite Teardown Close Browser

*** Test Cases ***
Google Accessibility Test with context
[Tags] smoke-test
# execute accessibility tests
Click Element xpath://p[text()='Características']/..
Wait Until Page Contains Características Gerais
Expand Down

0 comments on commit aa5208d

Please sign in to comment.