Skip to content

Commit

Permalink
Add Parameterized test to Allure report
Browse files Browse the repository at this point in the history
Allure param test
  • Loading branch information
apis3445 authored Oct 19, 2024
2 parents ada8093 + d4f8617 commit f94b26a
Show file tree
Hide file tree
Showing 18 changed files with 714 additions and 400 deletions.
1 change: 0 additions & 1 deletion .github/workflows/a11yTool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
runs-on: ubuntu-latest
env:
PAGE_URL: ${{ inputs.PAGE_URL }}
PAT_TOKEN_PACKAGE: ${{secrets.PAT_TOKEN_PACKAGE}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
EFFIZIENTE_ADMIN_USER: ${{secrets.EFFIZIENTE_ADMIN_USER}}
EFFIZIENTE_ADMIN_PASSWORD: ${{secrets.EFFIZIENTE_ADMIN_PASSWORD}}
ZEROSTEP_TOKEN: ${{secrets.ZEROSTEP_TOKEN}}
PAT_TOKEN_PACKAGE: ${{secrets.PAT_TOKEN_PACKAGE}}
PAGE_URL: ${{vars.PAGE_URL}}
WEBDRIVERIO_SHOP: ${{vars.WEBDRIVERIO_SHOP}}
steps:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
EFFIZIENTE_ADMIN_USER: ${{secrets.EFFIZIENTE_ADMIN_USER}}
EFFIZIENTE_ADMIN_PASSWORD: ${{secrets.EFFIZIENTE_ADMIN_PASSWORD}}
ZEROSTEP_TOKEN: ${{secrets.ZEROSTEP_TOKEN}}
PAT_TOKEN_PACKAGE: ${{secrets.PAT_TOKEN_PACKAGE}}
PLAYWRIGHT_SERVICE_ACCESS_TOKEN: ${{ secrets.PLAYWRIGHT_SERVICE_ACCESS_TOKEN }}
PLAYWRIGHT_SERVICE_URL: ${{ secrets.PLAYWRIGHT_SERVICE_URL }}
PLAYWRIGHT_SERVICE_RUN_ID: ${{ github.run_id }}-${{ github.run_attempt }}-${{ github.sha }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/qase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ env:
LT_USERNAME: ${{secrets.LT_USERNAME}}
LT_ACCESS_KEY: ${{secrets.LT_ACCESS_KEY}}
ZEROSTEP_TOKEN: ${{secrets.ZEROSTEP_TOKEN}}
PAT_TOKEN_PACKAGE: ${{secrets.PAT_TOKEN_PACKAGE}}
PLAYWRIGHT_SERVICE_ACCESS_TOKEN: ${{ secrets.PLAYWRIGHT_SERVICE_ACCESS_TOKEN }}
PLAYWRIGHT_SERVICE_URL: ${{ secrets.PLAYWRIGHT_SERVICE_URL }}
PLAYWRIGHT_SERVICE_RUN_ID: ${{ github.run_id }}-${{ github.run_attempt }}-${{ github.sha }}
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
EFFIZIENTE_ADMIN_USER: ${{secrets.EFFIZIENTE_ADMIN_USER}}
EFFIZIENTE_ADMIN_PASSWORD: ${{secrets.EFFIZIENTE_ADMIN_PASSWORD}}
ZEROSTEP_TOKEN: ${{secrets.ZEROSTEP_TOKEN}}
PAT_TOKEN_PACKAGE: ${{secrets.PAT_TOKEN_PACKAGE}}
PLAYWRIGHT_SERVICE_ACCESS_TOKEN: ${{ secrets.PLAYWRIGHT_SERVICE_ACCESS_TOKEN }}
PLAYWRIGHT_SERVICE_URL: ${{ secrets.PLAYWRIGHT_SERVICE_URL }}
PLAYWRIGHT_SERVICE_RUN_ID: ${{ github.run_id }}-${{ github.run_attempt }}-${{ github.sha }}
Expand Down Expand Up @@ -75,8 +74,6 @@ jobs:

- name: Install dependencies
run: |
npm config set @microsoft:registry=https://npm.pkg.github.com
npm set //npm.pkg.github.com/:_authToken ${{secrets.PAT_TOKEN_PACKAGE}}
npm ci
- name: Download blob reports from GitHub Actions Artifacts
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# 0.19.0 (2024-10-19)

### Enhancements

- Added parameterized tests for improved test coverage and flexibility.
- Integrated environment variables for Azure DevOps pipeline configuration.
- Updated packages, including Playwright and Lighthouse, for enhanced performance and compatibility.

### Features

- Introduced Allure report parameters to enhance test reporting capabilities.

# 0.18.0 (2024-10-07)

### Enhancements
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ steps:
displayName: "Install Allure"
- script: |
npx playwright test --config=playwright.a11y.config.ts tests/Accessibility/pageAccessibility.spec.ts --project=desktop-chromium
npx playwright test --config=playwright.config.ts tests/Basic/parameterized.spec.ts --project=desktop-chromium
displayName: "Run Playwright tests"
env:
PAGE_URL: $(pageUrl)
PAT_TOKEN_PACKAGE: $(patTokenPackage)
ADO_TOKEN: $(ADO_TOKEN)
- script: |
allure generate --single-file allure-results
Expand Down
4 changes: 2 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ export default [{
'plugin:playwright/recommended',
), {
plugins: {
'@typescript-eslint': typescriptEslint,
'@typescript-eslint': typescriptEslint
},

languageOptions: {
parser: tsParser,
ecmaVersion: 5,
ecmaVersion: "latest",
sourceType: 'module',

parserOptions: {
Expand Down
Loading

0 comments on commit f94b26a

Please sign in to comment.