0
我需要单位/集成使用硒,所以我需要记录屏幕测试我的Web应用程序。我已经在全球建立和全球撕裂下来,写下来:未能加载程序集“Microsoft.Expression.Encoder”或它的类库项目依赖的一个单元测试
public void GlobalSetup()
{
SetupExtentReport();
// Create a instance of ScreenCaptureJob
PropertiesCollection.Recorder = new ScreenCaptureJob();
// Specify the path & file name in which you want to save
PropertiesCollection.Recorder.OutputScreenCaptureFileName = @"C:\ScreenRecording.wmv";
// Start the Screen Capture Job
PropertiesCollection.Recorder.Start();
//remaining code
}
,并推倒
public void GlobalTearDown()
{
try
{
//close extent reports
PropertiesCollection.ExtentReport.Flush();
PropertiesCollection.ExtentReport.Close();
//stop recorder
PropertiesCollection.Recorder.Stop();
Console.WriteLine("Finished All Tests");
}
}
但我的测试不会调试,这错误出现在测试资源管理。
无法加载组件“Microsoft.Expression.Encoder版本4.0.0 = ........”或它的一个依赖。试图加载格式不正确的程序。
我一直在使用从已安装文件夹引用的表达式编码器组件。
注:我的项目是简单的类库项目
这是我看到的问题,但它并没有帮助我: Could not load file or assembly 'Microsoft.Expression.Encoder'
我通过一定的问题去,但在我的情况下,它的图书馆项目,因为我不在IIS上,所以无法转换为32位/ 64位。