Skip to content

Commit

Permalink
update variables for category
Browse files Browse the repository at this point in the history
  • Loading branch information
Lifailon committed Oct 7, 2024
1 parent 1f86fa8 commit f278b4d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 10 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/ci-postman-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,26 @@ on:
required: true
default: 'test'
type: string
CategoryRuTracker:
description: 'Parameter to filter by category for RuTracker (1605 - Switch):'
required: true
default: 1605
type: number
CategoryKinozal:
description: 'Parameter to filter by category for Kinozal (20 - Anime):'
required: true
default: 20
type: number
CategoryRuTor:
description: 'Parameter to filter by category for RuTor (10 - Anime):'
required: true
default: 10
type: number
CategoryNoNameClub:
description: 'Parameter to filter by category for NoNameClub (1318 - Switch):'
required: true
default: 1318
type: number
Url:
description: 'Local or Publish server:'
required: false
Expand Down Expand Up @@ -115,9 +135,13 @@ jobs:
run: |
newman run postman-tests.json \
--iteration-count ${{ github.event.inputs.Iterations }} \
--env-var "baseUrl=${{ github.event.inputs.Url }}" \
--env-var "query=${{ github.event.inputs.Query }}" \
--env-var "queryAllPage=${{ github.event.inputs.queryAllPage }}" \
--env-var "baseUrl=${{ github.event.inputs.Url }}" \
--env-var "categoryRuTracker=${{ github.event.inputs.CategoryRuTracker }}" \
--env-var "categoryKinozal=${{ github.event.inputs.CategoryKinozal }}" \
--env-var "categoryRuTor=${{ github.event.inputs.CategoryRuTor }}" \
--env-var "categoryNoNameClub=${{ github.event.inputs.CategoryNoNameClub }}" \
--reporters cli,junit,html \
--reporter-html-export postman-report.html \
--reporter-junit-export postman-results.xml
Expand Down
18 changes: 9 additions & 9 deletions postman-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -4298,7 +4298,7 @@
"variable": [
{
"key": "baseUrl",
"value": ""
"value": "http://127.0.0.1:8443"
},
{
"key": "localUrl",
Expand Down Expand Up @@ -4326,22 +4326,22 @@
},
{
"key": "categoryRuTracker",
"value": "",
"value": "1605",
"type": "string"
},
{
"key": "categoryKinozal",
"value": "",
"value": "20",
"type": "string"
},
{
"key": "categoryRuTor",
"value": "",
"value": "10",
"type": "string"
},
{
"key": "categoryNoNameClub",
"value": "",
"value": "1318",
"type": "string"
},
{
Expand All @@ -4353,6 +4353,10 @@
"key": "categoryNameKinozal",
"value": ""
},
{
"key": "categoryNameNoNameClub",
"value": ""
},
{
"key": "RuTrackerTestId",
"value": ""
Expand All @@ -4368,10 +4372,6 @@
{
"key": "NoNameClubTestId",
"value": ""
},
{
"key": "categoryNameNoNameClub",
"value": ""
}
]
}

0 comments on commit f278b4d

Please sign in to comment.