Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

RSAT for cPOS the script fails stating:Exception has been thrown by the target of an invocation

(0) ShareShare
ReportReport
Posted on by
I am using test recorder on cPOS. The test script runs fine for few times, but, after few runs it keeps failing with the following error, even when no change is made to the recording xml file or the variable xls file.
Status: Test case failed.
ERROR:
<?xml version=/1.0/ encoding=/utf-16/?>
<Error xmlns:xsi=/http://www.w3.org/2001/XMLSchema-instance/ xmlns:xsd=/http://www.w3.org/2001/XMLSchema/>
  <ExceptionType>System.Reflection.TargetInvocationException</ExceptionType>
  <Message>Exception has been thrown by the target of an invocation.</Message>
  <StackTrace>   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark&amp; stackMark)   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)   at System.Activator.CreateInstance(Type type, Object[] args)   at Microsoft.Dynamics.Commerce.UIAutomation.POS.PosApplication.PageFactory.CreatePage[T](TimeSpan waitForViewTimeout)   at Microsoft.Dynamics.Commerce.UIAutomation.POS.Pages.DeviceActivationPage.ActivateDevice(DeviceActivationRequest deviceActivationRequest)   at Microsoft.Dynamics.Commerce.Client.Platform.PosPlayback.RecordingPlayback.TestPlayback.ExecuteDeviceActivationProcessScript()   at Microsoft.Dynamics.Commerce.Client.Platform.PosPlayback.RecordingPlayback.TestPlayback.TestSetup()   at Microsoft.Dynamics.Commerce.Client.Platform.PosPlayback.RecordingPlayback.TestPlayback.ReproduceEvents(IList`1 eventsList, RecordingVersion recordingVersion, String timeXmlFilePath)   at Microsoft.Dynamics.Commerce.PosPlayback.RecordingsRunner.TestPlaybackManager.PlaybackEvents(Int32 testCaseId)   at Microsoft.Dynamics.Commerce.PosPlayback.RecordingsRunner.Application.Start()   at Microsoft.Dynamics.Commerce.PosPlayback.RecordingsRunner.Program.ExecuteCommands(PlaybackCommandArgs args, ILogger logger)</StackTrace>
  <InnerError>
    <ExceptionType>OpenQA.Selenium.WebDriverTimeoutException</ExceptionType>
    <Message>Timed out after 120 seconds</Message>
    <StackTrace>   at OpenQA.Selenium.Support.UI.DefaultWait`1.ThrowTimeoutException(String exceptionMessage, Exception lastException)   at OpenQA.Selenium.Support.UI.DefaultWait`1.Until[TResult](Func`2 condition)   at Microsoft.Dynamics.Commerce.UIAutomation.Core.Browser.WaitUntil[TResult](Func`2 webDriverAction, TimeSpan timeout)   at Microsoft.Dynamics.Commerce.UIAutomation.POS.Pages.PageBase.WaitUntilViewIsActive(IApplicationDriver driver, String viewName, TimeSpan timeout)   at Microsoft.Dynamics.Commerce.UIAutomation.POS.Pages.LogOnPage..ctor(IPageDependencies dependencyContainer, TimeSpan timeout)</StackTrace>
    <PlaybackVersion>9.39.0.0</PlaybackVersion>
  </InnerError>
  <PlaybackVersion>9.39.0.0</PlaybackVersion>
</Error>
 
 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans