Skip to content

Commit

Permalink
Simplify config file
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Sep 2, 2023
1 parent ea595e7 commit 57638d8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 25 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,17 @@ Install **ReportPortal.SpecFlow** NuGet package into your project with scenarios
> PS> Install-Package ReportPortal.SpecFlow
# Configuration
Add `ReportPortal.config.json` file into tests project with `Copy to Output Directory = Copy if newer` property.
Add `ReportPortal.json` file into tests project with `Copy to Output Directory = Copy if newer` property.

Example of config file:
```json
{
"$schema": "https://raw.githubusercontent.com/reportportal/agent-net-specflow/master/ReportPortal.SpecFlowPlugin/ReportPortal.config.schema",
"$schema": "https://raw.githubusercontent.com/reportportal/agent-net-specflow/master/src/ReportPortal.SpecFlowPlugin/ReportPortal.config.schema",
"enabled": true,
"server": {
"url": "https://rp.epam.com/api/v1/",
"url": "https://rp.epam.com",
"project": "default_project",
"authentication": {
"uuid": "7853c7a9-7f27-43ea-835a-cab01355fd17"
}
"apiKey": "7853c7a9-7f27-43ea-835a-cab01355fd17"
},
"launch": {
"name": "SpecFlow Demo Launch",
Expand Down
29 changes: 10 additions & 19 deletions src/ReportPortal.SpecFlowPlugin/ReportPortal.config.schema
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,17 @@
],
"pattern": "^(.*)$"
},
"authentication": {
"$id": "#/properties/server/properties/authentication",
"type": "object",
"title": "The Authentication Schema",
"required": [
"uuid"
"apiKey": {
"description":"the name of authentication api key (uuid)",
"$id": "#/properties/server/properties/apiKey",
"type": "string",
"title": "The API KEY Schema",
"default": "",
"examples": [
"aa19555c-c9ce-42eb-bb11-87757225d535"
],
"properties": {
"uuid": {
"$id": "#/properties/server/properties/authentication/properties/uuid",
"type": "string",
"title": "The Uuid Schema",
"default": "",
"examples": [
"aa19555c-c9ce-42eb-bb11-87757225d535"
],
"pattern": "^(.*)$"
}
}
}
"pattern": "^(.*)$"
},
}
},
"launch": {
Expand Down

0 comments on commit 57638d8

Please sign in to comment.