reportportal / agent-net-specflow

Report Portal agent for SpecFlow
Apache License 2.0
10 stars 4 forks source link

System.Collections.Generic.KeyNotFoundException: Property 'Server:Authentication:Uuid' not found in the configuration #83

Closed vladyslav-panasenko closed 5 months ago

vladyslav-panasenko commented 5 months ago

Please add API key support.

Version: ReportPortal.SpecFlow 3.6.0

Error: throw System.Collections.Generic.KeyNotFoundException: Property 'Server:Authentication:Uuid' not found in the configuration.

config

  "enabled": true,
   "server": {
    "url": "url",
    "project": "project",
    "apiKey": "api_key"
  },
  "launch": {
    "name": "name",
    "description": "name",
    "debugMode": true,
    "tags": [ "QA" ],
    "attributes": ["QA"]
  }

Reason: var uuid = Plugin.Config.GetValue(ConfigurationPath.ServerAuthenticationUuid);

Underline dotnet line supports API keys - HttpClientFactory

All examples show a new approach with API key auth, whatever dotnet specflow agent does not support API key yet.

nvborisenko commented 5 months ago

@vladyslav-panasenko, fixed in v3.6.1, thanks for the report.