reportportal / agent-net-specflow

Report Portal agent for SpecFlow
Apache License 2.0
10 stars 4 forks source link

Logs are not shown if tests are running in parallel #59

Closed nvborisenko closed 3 years ago

nvborisenko commented 3 years ago
log4net:ERROR [ReportPortalAppender] ErrorCode: GenericFailure. Failed in DoAppend
TechTalk.SpecFlow.SpecFlowException: The ScenarioStepContext.Current static accessor cannot be used in multi-threaded execution. Try injecting the scenario context to the binding class. See https://go.specflow.org/doc-multithreaded for details.
   at TechTalk.SpecFlow.ScenarioStepContext.get_Current()
   at ReportPortal.SpecFlowPlugin.LogHandler.FirstActiveTestLogHandler.GetCurrentTestReporter()
   at ReportPortal.SpecFlowPlugin.LogHandler.FirstActiveTestLogHandler.CommandsSource_OnLogMessageCommand(ILogContext logContext, LogMessageCommandArgs args)
   at ReportPortal.Shared.Execution.CommandsSource.RaiseOnLogMessageCommand(CommandsSource commandsSource, ILogContext logContext, LogMessageCommandArgs args)
   at ReportPortal.Shared.Execution.Logging.RootLogScope.Message(ILogMessage logMessage)
   at ReportPortal.Log4Net.ReportPortalAppender.Append(LoggingEvent loggingEvent)
   at log4net.Appender.AppenderSkeleton.DoAppend(LoggingEvent loggingEvent)