The following error occurs when starting the scripts of two different function files: Initialization method ITTCustomerScenarios.Features.ValidateTheJAMCMSKULicensingFeature.TestInitialize exception. TechTalk.SpecFlow.SpecFlowException: TechTalk.SpecFlow.SpecFlowException: FeatureContext.Current static accessor cannot be used in multi-threaded execution. Try entering the function context in the binding class. See http://go.specflow.org/doc-multithreaded for more details .
Although I can run scripts of various function files from visual studio, but not from mstest. The command I use to run sceanrios from the command line using mstest: mstest / testcontainer: "test.dll" / category: mytest
test1.feature @mytest Scenario: check login Given that I visit the home page ..... ......
test2.feature @mytest Scenario: checking output Given that I visit the homepage ..... ......
Please suggest me run scripts with various function files from the command line.
source
share