FeatureContext.Current static accessor cannot be used for multithreaded execution

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.

+4
source share
2 answers

, .
TL;DR: " ".

+1

, , .

-1

Source: https://habr.com/ru/post/1656925/


All Articles