2017-06-29 9 views
0

Je suis face à une étrange exception de type:Une exception non gérée du type « Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException »

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

Solution travaille sur la machine de développement, mais son déclenchement de cette exception sur le déploiement machine.I ont installé un agent de test, contrôleur de test et de la prime de Visual studio 2013 dans la machine à deployement, toujours face à la même question

exception est levée lors d'une tentative d'initialisation de lecture:

Playback.Initialize()

/// message

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

/// Stack Trace

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()

/// Source

Microsoft.VisualStudio.TestTools.UITesting

/// cible du site

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

/// Exception intérieure

{"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

Est [ce sujet] (https://social.msdn.microsoft.com/Forums/en-US/be9b6def-f8de-45b3-aecb-291887cd2cb8/mstest-throwing-playbackfailureexception-when-calling- playbackinitialize? forum = vststest) utile? – kennyzx

+0

non c'est différent, if (! Playback.IsInitialized) alors seulement j'initialise la lecture – Geethu

+0

S'il vous plaît aidez-moi à résoudre ce problème – Geethu

Répondre

0

J'utilisais dll

Microsoft.VisualStudio.TestTools.UITest.Playback version10

dans mon projet.

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.