我在使用specflow Specrun构建硒解决方案时遇到错误



我是硒和低硒的新手。我正在使用一个框架来进行自动化测试。我在c#中使用specrun作为我的测试运行和specflow。我在构建解决方案时遇到以下错误。

>     The "GenerateFeatureFileCodeBehindTask" task failed unexpectedly.System.TypeLoadException: Method 'SetTestMethod' in type
> 'TechTalk.SpecRun.SpecFlowPlugin.Generator.SpecRunGenerator' from
> assembly 'SpecRun.Generator.SpecFlowPlugin, Version=3.2.0.0,
> Culture=neutral, PublicKeyToken=null' does not have an implementation.
> at
> TechTalk.SpecRun.SpecFlowPlugin.Generator.SpecFlowGeneratorPlugin.GeneratorPluginEvents_RegisterDependencies(Object
> sender, RegisterDependenciesEventArgs e)   at
> TechTalk.SpecFlow.Generator.Plugins.GeneratorPluginEvents.RaiseRegisterDependencies(ObjectContainer
> objectContainer)   at
> TechTalk.SpecFlow.Generator.GeneratorContainerBuilder.CreateContainer(SpecFlowConfigurationHolder
> configurationHolder, ProjectSettings projectSettings, IEnumerable`1
> generatorPluginInfos, IObjectContainer parentObjectContainer)   at
> SpecFlow.Tools.MsBuild.Generation.WrappedGeneratorContainerBuilder.BuildGeneratorContainer(SpecFlowConfigurationHolder
> specFlowConfigurationHolder, ProjectSettings projectSettings,
> IReadOnlyCollection`1 generatorPluginInfos, IObjectContainer
> rootObjectContainer)   at
> SpecFlow.Tools.MsBuild.Generation.GenerateFeatureFileCodeBehindTaskExecutor.Execute()
> at
> SpecFlow.Tools.MsBuild.Generation.GenerateFeatureFileCodeBehindTask.Execute()
> at
> Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
> at
> Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

请将SpecFlow+Runner软件包更新到3.2.15版本。

相关内容

  • 没有找到相关文章

最新更新