samedi 22 août 2020

Specflow.json - Converting app.config to specflow.json

I searched online and there doesn't seem to be much info on this besides the info on the SPecFlow official site. But the site only gives high level information

Basically I want to update my current app.config file to a specflow.json file

Just wondering what's the best/correct approach to do this? and also, if there is any additional code I need to add to make this work I would be unaware off?

Current App.config:

<configuration>
    <configSections>
        <section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/>
    </configSections>

    <specFlow>
        <unitTestProvider name="MsTest" />
    </specFlow> 


    <appSettings>
        <add key="TestURL" value="https://test.com" />
        <add key="UATURL" value="https://test.com"/>
        <add key="PRODURL" value="https://test.com" />
        <add key ="BrowserType" value = "chrome" />
    </appSettings>

    <connectionStrings>
        <add name="DataBaseName" connectionString=""/>
        <add name="DataBaseName" connectionString=""/>
    </connectionStrings>

</configuration>

Current specflow.json

 {
  "bindingCulture": {
    "language": "en-us"
  },
  "language": {
    "feature": "en-us"
  }

Aucun commentaire:

Enregistrer un commentaire