ConfigurationManager.AppSettings[<key>] is returning a null value while working on Specflow project | Selenium C# Forum
D
Davesh Posted on 24/02/2022

While using this statement - "ConfigurationManager.AppSettings[<key>]" in WebConnector.cs for a Specflow project, it returns a null value even though values are defined properly.

Using below references:

.Net 5.0 

<PackageReference Include="SpecFlow.NUnit" Version="3.9.22" />
<PackageReference Include="nunit" Version="3.13.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.1.0" />
<PackageReference Include="FluentAssertions" Version="6.2.0" />

Please suggest how to resolve this issue.