2017-06-29 37 views
0

我面臨着類型的一個奇怪的例外未處理的異常:型「Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException」

'Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException' occurred in Microsoft.VisualStudio.TestTools.UITesting.dll

解決方案正在開發的機器上,但其投擲部署此異常machine.I已經安裝了測試代理,測試控制器和deployement機器視覺工作室溢價2013年,仍然面臨着同樣的問題,試圖初始化播放時

拋出異常:

Playback.Initialize()

///消息

Cannot perform '' on the control. Additional Details: The control details were not specified.

///堆棧跟蹤

at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context) at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context) at Microsoft.VisualStudio.TestTools.UITesting.Playback.Initialize() at Test.SAPDupCheck.OpenBrowser() in c:\Users\Documents\Visual Studio 2013\Projects\Test\Test\SAPDupCheck.cs:line 79 at Test.Program.Main(String[] args) in c:\Users\geethu_john02\Documents\Visual Studio 2013\Projects\Test\Test\Program.cs:line 14 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()

///源

​​3210

///目標站點

{Void MapAndThrowComException(System.Runtime.InteropServices.COMException, Microsoft.VisualStudio.TestTools.UITesting.IPlaybackContext)}

///內部例外

{"Retrieving the COM class factory for component with CLSID {6DA215C2-D80D-42F2-A514-B44A16DCBAAA} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))."}

+0

是[此線索](https://social.msdn.microsoft.com/Forums/en-US/be9b6def-f8de-45b3-aecb-291887cd2cb8/mstest-throwing-playbackfailureexception-when-calling- playbackinitialize?forum = vststest)有幫助嗎? – kennyzx

+0

不,這是不同的,如果(!Playback.IsInitialized)那麼只有我正在初始化播放 – Geethu

+0

請幫我解決這個問題 – Geethu

回答

0

我是用我的項目

Microsoft.VisualStudio.TestTools.UITest.Playback version10

DLL。

I have installed visual studio2013 premium which is having 12 version dlls. So the same dll with version 10 was not able to register in the system and the solution is to install Test agent 2010/Test agent10 and can solve this error.