SpecFlow.Actions icon indicating copy to clipboard operation
SpecFlow.Actions copied to clipboard

[Playwright] expose `IConfiguration` of specflow.actions.json

Open 304NotModified opened this issue 4 years ago • 3 comments

We like to add some additional properties to specflow.actions.json

But currently it seems we have to (re-read) in our own code specflow.actions.json then.

Please expose the IConfiguration - or make it possible to inject.

304NotModified avatar Nov 25 '21 15:11 304NotModified

I drop my own browser implementation to use yours (to standardize development and get the opportunity to have new features from you and the OSS community). But when you are in rush and really need a feature, you need to have the possiblity to quickly integrate it without waiting that specflow or someone else implement it.

DomZZ avatar Dec 14 '21 08:12 DomZZ

A linked topic would be to be able to add secrets in the configuration provided by the secrets.json file or by a KeyVault.

TechWatching avatar Jan 12 '22 13:01 TechWatching

We changed SpecFlow.Actions.Configuration to use the standard ConfigurationBuilder. You can access it via ISpecFlowActionsConfiguration. There is no schema on the specflow.actions.json so you can add your properties where you like.

Is this enough @304NotModified?

SabotageAndi avatar Mar 10 '22 09:03 SabotageAndi