REST API

4 posts, 0 answers
  1. Andreas
    Andreas avatar
    2 posts
    Member since:
    Oct 2012

    Posted 09 Oct 2012 Link to this post

    Hi.

    I'm looking for an example using Test Studio Express (or Test Studio if needed) to performance test our REST API, but I can't seem to find any. I'm I then right in assuming this is not doable out of the box, or have I just missed something? If not doable, could you please point me to another approach (or product) you might know that would satisfy our needs?

    Regards
    Andreas
  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 10 Oct 2012 Link to this post

    Hello Andreas,

    You assume correctly that this functionality is not included out of the box. The closest we can come is this code sample for making web service calls.

    Regards,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Andreas
    Andreas avatar
    2 posts
    Member since:
    Oct 2012

    Posted 15 Oct 2012 Link to this post

    Thanks for the reply, I hope you can help me a bit further.

    Based on the link you provided and other resources, I've set up a coded step to test our REST-services. Before running the test I've verified that the service is up and running. I am able to run my coded step in the Test-ribbon in my installed Test Studio, which means the coded step hits the service (I've set it up to fail if not). However, when I set up a Performance Test I get a messsage with the titile "Error: the performance run terminated abnormally", stating:
    ------------------------------------------------------------
    '15.10.2012 09:52:58' - Using .Net Runtime version: '4.0.30319.17929' for tests execution.
    '15.10.2012 09:52:58' - Starting execution....
    '15.10.2012 09:53:04' - Detected custom code in test. Locating test assembly: TestProject3.dll.
    '15.10.2012 09:53:04' - Assembly Found: \\r22home\home$\andreasa\Dokumenter\Test Studio Projects\TestProject3\bin\TestProject3.dll
    '15.10.2012 09:53:04' - Loading code class: 'TestProject3.WebTest1'.
    ------------------------------------------------------------



    In the Log i get this StackTrace

    [10.15 09:55:30,ArtOfTest.Runner.exe(8216:4)] First trace message from process 8216: "C:\Program Files (x86)\Telerik\Test Studio\Bin\ArtOfTest.Runner.exe" /controller /parentprocesshandle=664
    [10.15 09:55:30,ArtOfTest.Runner.exe(8216:4)] First trace message from foreground thread "Remote.ArtOfTest.Runner.Listener" (managed ID = 4, native ID = 10080).
    [10.15 09:55:30,ArtOfTest.Runner.exe(8216:4),Uncategorized] Loader.LoadTranslatorGroups() : ------- Function Start -------
    [10.15 09:55:30,ArtOfTest.Runner.exe(8216:4),Uncategorized] Loader.LoadTranslatorGroups() : Translators Directory is : C:\Program Files (x86)\Telerik\Test Studio\Bin\Translators
    [10.15 09:55:30,ArtOfTest.Runner.exe(8216:4),Uncategorized] Loader.LoadTranslatorGroups() : ------- Function End -------
    [10.15 09:55:30,ArtOfTest.Runner.exe(8216:7)] First trace message from pool unnamed thread (managed ID = 7, native ID = 6532).
    [10.15 09:55:30,ArtOfTest.Runner.exe(8216:7),Execution] TestAppLoader.LoadRefAssemblies() : External assembly loaded into the AppDomain: C:\Arbeid\etoto\code\trunk\performanceTest\Risktoto.Mobilløsningen.Lev1\Risktoto.Mobilløsningen.Lev1.Tests\bin\Debug\Risktoto.Mobilløsningen.Lev1.dll.
    [10.15 09:55:30,ArtOfTest.Runner.exe(8216:7),Execution] TestAppLoader.LoadRefAssemblies() : External assembly loaded into the AppDomain: C:\Arbeid\etoto\code\trunk\performanceTest\Risktoto.Mobilløsningen.Lev1\Risktoto.Mobilløsningen.Lev1.Tests\bin\Debug\Risktoto.Mobilløsningen.Lev1.Tests.dll.
    [10.15 09:55:30,ArtOfTest.Runner.exe(8216:5)] First trace message from pool unnamed thread (managed ID = 5, native ID = 3024).
    [10.15 09:55:30,ArtOfTest.Runner.exe(8216:5),Performance] ProfilerClient.CreateProfilerServiceProxyAt() : Connecting to profiler service at: http://192.168.2.185:8010/TestStudio/ProfilerService
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:5),Performance] <>c__DisplayClass9.<Initialize>b__2() : Profiler service initialized.
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:5),Performance] ProfilerClient.SyncServerTime() : The client and server processes are assumed to be on separate devices. Will poll to sync time.
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:5),Performance] ProfilerClient.SyncServerTime() : Client UTC ticks before = 634858845316384673, Server UTC ticks = 634858845315981816, Client UTC ticks after = 634858845316394695.
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:5),Warning] ProfilerClient.SyncServerTime() : The client and server times are out of sync. Forcing server time to "15.10.2012 07:55:31" GMT
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:5),Performance] ProfilerClient.SyncServerTime() : Client UTC ticks before = 634858845316494915, Server UTC ticks = 634858845316546012, Client UTC ticks after = 634858845316615179.
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:5),Performance] ProfilerClient.SyncServerTime() : The client and server times are within tolerance.
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:7),TestStudio] Utils.EnumPluginTypes() : Loading "C:\Program Files (x86)\Telerik\Test Studio\Bin\Plugins\Telerik.TestStudio.Load.dll" to find IProfilerComponent implementers...
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:7),TestStudio] Utils.EnumPluginTypes() : Loading "C:\Program Files (x86)\Telerik\Test Studio\Bin\Plugins\Telerik.TestStudio.Manual.dll" to find IProfilerComponent implementers...
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:7),TestStudio] Utils.EnumPluginTypes() : Loading "C:\Program Files (x86)\Telerik\Test Studio\Bin\Plugins\Telerik.TestStudio.OTA.Interop.dll" to find IProfilerComponent implementers...
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:7),TestStudio] Utils.EnumPluginTypes() : Loading "C:\Program Files (x86)\Telerik\Test Studio\Bin\Plugins\Telerik.TestStudio.Plugins.dll" to find IProfilerComponent implementers...
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:7),TestStudio] Utils.EnumPluginTypes() : Loading "C:\Program Files (x86)\Telerik\Test Studio\Bin\Plugins\Telerik.TestStudio.Web.dll" to find IProfilerComponent implementers...
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:7),TestStudio] Utils.EnumPluginTypes() : Loading "C:\Program Files (x86)\Telerik\Test Studio\Bin\Plugins\Telerik.TestStudio.Wpf.dll" to find IProfilerComponent implementers...
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:7),TestStudio] Utils.EnumPluginTypes() : Finished loading IProfilerComponent plugins.
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Scanning assemblies for derivatives of "Telerik.TestStudio.Interfaces.Profiler.IProfilerComponent"...
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Found "ArtOfTest.WebAii.Design.Execution.Profiler.PerformanceCounterProfilerComponent" in "ArtOfTest.WebAii.Design, Version=2012.2.920.0, Culture=neutral, PublicKeyToken=4fc62bbc3827ab1d".
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Found "ArtOfTest.WebAii.Design.Execution.Profiler.PipelineProfilerComponent" in "ArtOfTest.WebAii.Design, Version=2012.2.920.0, Culture=neutral, PublicKeyToken=4fc62bbc3827ab1d".
    [10.15 09:55:31,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Found "ArtOfTest.WebAii.Design.Execution.Profiler.HttpTrafficProfilerComponent" in "ArtOfTest.WebAii.Design, Version=2012.2.920.0, Culture=neutral, PublicKeyToken=4fc62bbc3827ab1d".
    [10.15 09:55:34,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Finished scan.
    [10.15 09:55:34,ArtOfTest.Runner.exe(8216:8)] First trace message from pool unnamed thread (managed ID = 8, native ID = 9876).
    [10.15 09:55:34,ArtOfTest.Runner.exe(8216:8),Performance] ProfilerClient.<Initialize>b__4() : Initializing IClientProfilerComponent implementer ArtOfTest.WebAii.Design.Execution.Profiler.PipelineProfilerComponent...
    [10.15 09:55:34,ArtOfTest.Runner.exe(8216:5),Performance] ProfilerClient.<Initialize>b__4() : Initializing IClientProfilerComponent implementer ArtOfTest.WebAii.Design.Execution.Profiler.HttpTrafficProfilerComponent...
    [10.15 09:55:34,ArtOfTest.Runner.exe(8216:7),Performance] ProfilerClient.Initialize() : Finished initializing IClientProfilerComponent implementers.
    [10.15 09:55:34,ArtOfTest.Runner.exe(8216:7),Framework] InternetExplorerActions.LaunchNewBrowserInstance() : Process launched (ID=10968, Path="C:\Program Files (x86)\Internet Explorer\iexplore.exe", Arguments="-nomerge about:blank").
    [10.15 09:55:34,ArtOfTest.Runner.exe(8216:7),Framework] InternetExplorerActions.LaunchNewBrowserInstance() : Attempting to attach on IE frame (HWND=266842)...
    [10.15 09:55:34,ArtOfTest.Runner.exe(8216:7),Framework] Connector.Start() : Process launched (ID=6508, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments="ArtOfTest.Connector.dll,AttachToWindowEntryPoint 987552").
    [10.15 09:55:34,ArtOfTest.Runner.exe(8216:7),Framework] Connector.Start() : Process exited (ID=6508, ExitCode=0, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments="ArtOfTest.Connector.dll,AttachToWindowEntryPoint 987552").
    [10.15 09:55:34,ArtOfTest.Runner.exe(8216:7),Framework] InternetExplorerActions.LaunchNewBrowserInstance() : Process "Telerik.TestStudio" (ID=4568) is assumed to host the controller.
    [10.15 09:55:34,ArtOfTest.Runner.exe(8216:7),Framework] Connector.InjectCode() : ------- Function Start -------
    [10.15 09:55:34,ArtOfTest.Runner.exe(8216:7),Framework] Connector.InjectCode() : Connection string: C:\Windows\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\2012.2.920.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?4568
    [10.15 09:55:34,ArtOfTest.Runner.exe(8216:7),Framework] InternetExplorerActions.WaitForDocument() : Attempting to get IHTMLDocument2 from Internet Explorer HWND 987552 on another thread...
    [10.15 09:55:34,ArtOfTest.Runner.exe(8216:5)] First trace message from pool thread "WaitAsync polling wait worker" (managed ID = 5, native ID = 3024).
    [10.15 09:55:34,ArtOfTest.Runner.exe(8216:5),Framework] <>c__DisplayClassf.<WaitForDocument>b__8() : Attempting to get document from window handle
    [10.15 09:55:35,ArtOfTest.Runner.exe(8216:7),Framework] InternetExplorerActions.WaitForDocument() : IHTMLDocument2 successfully retrieved.
    [10.15 09:55:35,ArtOfTest.Runner.exe(8216:7),Framework] Connector.InjectCode() : Sending WM_COPYDATA to HWND 987552 (lpData = "C:\Windows\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\2012.2.920.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?4568")...
    [10.15 09:55:35,iexplore.exe(3804:1)] First trace message from process 3804: "C:\Program Files (x86)\Internet Explorer\iexplore.exe" SCODEF:10968 CREDAT:79873
    [10.15 09:55:35,iexplore.exe(3804:1)] First trace message from background thread "ArtOfTestPluginEntryPoint entry point thread" (managed ID = 1, native ID = 10232).
    [10.15 09:55:35,iexplore.exe(3804:1),Framework] ArtOfTestPluginEntryPoint.Connect() : The .NET Framework is now active inside the hooked process (HWND = 987552, PipeName = "Pipe.ArtOfTest.WebAii.BrowserProvisioner_1281059194", PID = 4568).
    [10.15 09:55:35,iexplore.exe(3804:1),Framework] InternetExplorerActions.WaitForDocument() : Attempting to get IHTMLDocument2 from Internet Explorer HWND 987552 on same thread...
    [10.15 09:55:35,iexplore.exe(3804:1),Framework] InternetExplorerActions.WaitForDocument() : IHTMLDocument2 successfully retrieved.
    [10.15 09:55:35,iexplore.exe(3804:1),Framework] BrowserRemoteClient constructor : The client ID for this hooked process will be "Client_6c248a26-073f-4103-a9d7-174596709809".
    [10.15 09:55:35,ArtOfTest.Runner.exe(8216:11)] First trace message from background thread "Pipe.ArtOfTest.WebAii.BrowserProvisioner" (managed ID = 11, native ID = 3272).
    [10.15 09:55:35,ArtOfTest.Runner.exe(8216:11),Framework] BrowserProvisioner.ServiceThread() : A new client has connected to the provisioning pipe.
    [10.15 09:55:35,ArtOfTest.Runner.exe(8216:13)] First trace message from background thread "Remoted async command listener" (managed ID = 13, native ID = 12120).
    [10.15 09:55:35,ArtOfTest.Runner.exe(8216:13),Framework] BrowserRemoted.AsyncListenerThreadEntry() : Not connected; this will now wait indefinitely for a pipe client connection...
    [10.15 09:55:35,iexplore.exe(3804:1),Framework] BrowserRemoteClient.CreateNamedPipes() : Named pipes created for communication with the server: {Command = "e06872e7-1b35-4338-95a2-fb07da59c808.CommandPipe", Async = "e06872e7-1b35-4338-95a2-fb07da59c808.AsyncPipe"}
    [10.15 09:55:35,ArtOfTest.Runner.exe(8216:13),Framework] BrowserRemoted.AsyncListenerThreadEntry() : A new client has connected to the pipe.
    [10.15 09:55:35,ArtOfTest.Runner.exe(8216:13),Framework] BrowserRemoted.AsyncListenerThreadEntry() : Now waiting indefinitely for a command from the pipe client...
    [10.15 09:55:35,ArtOfTest.Runner.exe(8216:7),Framework] Connector.InjectCode() : Returned from sending WM_COPYDATA (LRESULT=0, GetLastError()=ERROR_ALREADY_EXISTS).
    [10.15 09:55:35,ArtOfTest.Runner.exe(8216:7),Framework] Connector.InjectCode() : ------- Function End -------
    [10.15 09:55:35,ArtOfTest.Runner.exe(8216:11),Framework] Manager.AddNewBrowser() : Added client ID "Client_6c248a26-073f-4103-a9d7-174596709809" (now there is/are 1 total).
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:19)] First trace message from foreground thread "AnnotatorUIThread" (managed ID = 19, native ID = 10292).
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:19),Uncategorized] BugTrackersLoader.LoadSystems() : ------- Function Start -------
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:19),Uncategorized] BugTrackersLoader.LoadSystems() : Bug Trackers folder path is : C:\Program Files (x86)\Telerik\Test Studio\Bin\Plugins
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:19),Uncategorized] BugTrackersLoader.LoadSystems() : Searching for IBugTracker implementers in "C:\Program Files (x86)\Telerik\Test Studio\Bin\Plugins\Telerik.TestStudio.Load.dll"...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:19),Uncategorized] BugTrackersLoader.LoadSystems() : Searching for IBugTracker implementers in "C:\Program Files (x86)\Telerik\Test Studio\Bin\Plugins\Telerik.TestStudio.Manual.dll"...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:19),Uncategorized] BugTrackersLoader.LoadSystems() : Searching for IBugTracker implementers in "C:\Program Files (x86)\Telerik\Test Studio\Bin\Plugins\Telerik.TestStudio.OTA.Interop.dll"...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:19),Uncategorized] BugTrackersLoader.LoadSystems() : Searching for IBugTracker implementers in "C:\Program Files (x86)\Telerik\Test Studio\Bin\Plugins\Telerik.TestStudio.Plugins.dll"...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:19),Uncategorized] BugTrackersLoader.LoadSystems() : TeamPulse Server implements IBugTracker and was loaded in the system.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:19),Uncategorized] BugTrackersLoader.LoadSystems() : Team Foundation Server implements IBugTracker and was loaded in the system.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:19),Uncategorized] BugTrackersLoader.LoadSystems() : Searching for IBugTracker implementers in "C:\Program Files (x86)\Telerik\Test Studio\Bin\Plugins\Telerik.TestStudio.Web.dll"...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:19),Uncategorized] BugTrackersLoader.LoadSystems() : Searching for IBugTracker implementers in "C:\Program Files (x86)\Telerik\Test Studio\Bin\Plugins\Telerik.TestStudio.Wpf.dll"...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:17)] First trace message from pool unnamed thread (managed ID = 17, native ID = 10816).
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:17),Performance] <>c__DisplayClassf.<Start>b__c() : Starting IClientProfilerComponent implementer ArtOfTest.WebAii.Design.Execution.Profiler.HttpTrafficProfilerComponent...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:8)] First trace message from pool unnamed thread (managed ID = 8, native ID = 9876).
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:8),Performance] <>c__DisplayClassf.<Start>b__c() : Starting IClientProfilerComponent implementer ArtOfTest.WebAii.Design.Execution.Profiler.PipelineProfilerComponent...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Performance] ProfilerClient.Start() : Finished starting IClientProfilerComponent implementers.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Execution] ExtensionsManager.LoadExtensions() : ------- Function Start -------
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] ExtensionsManager.LoadExtensions() : Got 6 plugin(s) in folder "C:\Program Files (x86)\Telerik\Test Studio\Bin\Plugins".
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Scanning assemblies for derivatives of "ArtOfTest.WebAii.Design.Execution.IExecutionExtension"...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Finished scan.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] ExtensionsManager.LoadExtensions() : Loaded assembly "Telerik.TestStudio.Load.dll" from plugins folder.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Scanning assemblies for derivatives of "ArtOfTest.WebAii.Design.Execution.IExecutionExtension"...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Finished scan.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] ExtensionsManager.LoadExtensions() : Loaded assembly "Telerik.TestStudio.Manual.dll" from plugins folder.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Scanning assemblies for derivatives of "ArtOfTest.WebAii.Design.Execution.IExecutionExtension"...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Finished scan.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] ExtensionsManager.LoadExtensions() : Loaded assembly "Telerik.TestStudio.OTA.Interop.dll" from plugins folder.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Scanning assemblies for derivatives of "ArtOfTest.WebAii.Design.Execution.IExecutionExtension"...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Finished scan.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] ExtensionsManager.LoadExtensions() : Loaded assembly "Telerik.TestStudio.Plugins.dll" from plugins folder.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Scanning assemblies for derivatives of "ArtOfTest.WebAii.Design.Execution.IExecutionExtension"...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Finished scan.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] ExtensionsManager.LoadExtensions() : Loaded assembly "Telerik.TestStudio.Web.dll" from plugins folder.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Scanning assemblies for derivatives of "ArtOfTest.WebAii.Design.Execution.IExecutionExtension"...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] Utils.GetInterfaceImplementerTypes() : Finished scan.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Uncategorized] ExtensionsManager.LoadExtensions() : Loaded assembly "Telerik.TestStudio.Wpf.dll" from plugins folder.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Execution] ExtensionsManager.LoadExtensions() : ------- Function End -------
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),TestStudio] VisualDebugger.SetCurrentResult() : VisualDebugger::SetCurrentResult
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),DialogPlayback] DialogMonitor.Start() : Beginning monitoring for dialogs from the set {}.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),TestStudio] VisualDebugger.SetCurrentStep() : VisualDebugger::SetCurrentStep
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:22)] First trace message from foreground unnamed thread (managed ID = 22, native ID = 10092).
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:22),UIAutomation] AutomationExtensions.AddAutomationEventHandler() : Added a(n) WindowPatternIdentifiers.WindowOpenedProperty handler on element System.Windows.Automation.AutomationElement scope Descendants.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Execution] ExecutionEngine.NotifyBeforeStepExecuted() : Executing step 1 "[AllResults] : All Results"...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Performance] ProfilerClient.BeforeExecuteStep() : Notifying ProfilerService that a step is about to be executed
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:21)] First trace message from pool unnamed thread (managed ID = 21, native ID = 10496).
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:21),Performance] <>c__DisplayClass15.<BeforeExecuteStep>b__12() : Notifying IClientProfilerComponent implementer ArtOfTest.WebAii.Design.Execution.Profiler.PipelineProfilerComponent that a step is about to be executed...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:8),Performance] <>c__DisplayClass15.<BeforeExecuteStep>b__12() : Notifying IClientProfilerComponent implementer ArtOfTest.WebAii.Design.Execution.Profiler.HttpTrafficProfilerComponent that a step is about to be executed...
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:21),Performance] PipelineProfilerComponent.AddEvent() : Added pipeline event: { Type = StepBegin, StepHashCode = 2113398266, StepNumber = 1, Description = "[AllResults] : All Results".
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:7),Performance] ProfilerClient.BeforeExecuteStep() : Finished notifying IClientProfilerComponent implementers.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:22),UIAutomation] AutomationExtensions.AddAutomationPropertyChangedEventHandler() : Added property change handler on element System.Windows.Automation.AutomationElement scope Subtree with enlarged property set {ValuePatternIdentifiers.ValueProperty} now including {ValuePatternIdentifiers.ValueProperty}.
    [10.15 09:55:36,ArtOfTest.Runner.exe(8216:22),UIAutomation] AutomationExtensions.AddStructureChangedEventHandler() : Added a structure change handler on element System.Windows.Automation.AutomationElement scope Subtree.
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:8),Performance] ProfilerClient.<Stop>b__1f() : Stopping IClientProfilerComponent implementer ArtOfTest.WebAii.Design.Execution.Profiler.PipelineProfilerComponent...
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:20)] First trace message from pool unnamed thread (managed ID = 20, native ID = 404).
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:20),Performance] ProfilerClient.<Stop>b__1f() : Stopping IClientProfilerComponent implementer ArtOfTest.WebAii.Design.Execution.Profiler.HttpTrafficProfilerComponent...
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),Performance] ProfilerClient.Stop() : Finished stopping IClientProfilerComponent implementers.
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),Performance] ProfilerClient.Stop() : All client-side component sample data fetched.
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),Performance] ProfilerClient.Stop() : All server-side component sample data fetched.
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),TestStudio] ProfilerResultsFile.get_HttpTrafficProfilerConfiguration() : Error loading HttpTrafficProfilerConfiguration from tsperf file, defaulting configuration
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),Error] TestExecuteProxy.ExecuteTest() : EXCEPTION! (see below)
         Outer Exception Type: System.InvalidOperationException
         Message: Sequence contains no matching element
         HRESULT: 0x80131509 (Official ID (if app.) = COR_E_INVALIDOPERATION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5385)
         Call Stack:
              at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
              at ArtOfTest.WebAii.Design.Execution.Profiler.Storage.ProfilerResultsFile.<>c__DisplayClass2a.<GenerateTestSteps>b__24(ProfilerPipelineEvent beginEvent)
              at System.Collections.Generic.List`1.ConvertAll[TOutput](Converter`2 converter)
              at ArtOfTest.WebAii.Design.Execution.Profiler.Storage.ProfilerResultsFile.GenerateTestSteps(IEnumerable`1 pipelineEvents, IEnumerable`1 httpTrafficEvents)
              at ArtOfTest.WebAii.Design.Execution.Profiler.Storage.ProfilerResultsFile.get_Steps()
              at ArtOfTest.WebAii.Design.Execution.Profiler.Storage.ProfilerResultsFile.Save(String strNewFilePath)
              at ArtOfTest.WebAii.Design.Execution.Profiler.ProfilerClient.Stop(Test test, TestResult testResult)
              at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)

    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),TestStudio] VisualDebugger.ShutDown() : VisualDebbuger::ShutDown::Start
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),Uncategorized] AdornerWindow.ShutDown() : AdornerWnd::ShutDown::Start
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),Uncategorized] AdornerWindow.ShutDown() : AdornerWnd::DetachWrappedWindow::Start
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),Uncategorized] AdornerWindow.ShutDown() : AdornerWnd::DetachWrappedWindow::End
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),Uncategorized] AdornerWindow.ShutDown() : AdornerWnd::DispatcherBeginInvokeShutdown::Start
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),Uncategorized] AdornerWindow.ShutDown() : AdornerWnd::Close::Start
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),TestStudio] VisualDebugger.ShutDown() : VisualDebbuger::ShutDown::End
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),Framework] BrowserProvisioner.EndService() : Connecting to the provisioning pipe "Pipe.ArtOfTest.WebAii.BrowserProvisioner_1281059194" in order to unblock and eventually terminate it...
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),Framework] BrowserProvisioner.EndService() : Provisioning pipe connected.
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:11),Framework] BrowserProvisioner.ServiceThread() : A new client has connected to the provisioning pipe but this will be treated as a termination cue.
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),Framework] BrowserProvisioner.EndService() : Provisioning thread terminated.
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),DialogPlayback] DialogMonitor.AddDialog() : Added {OnBeforeUnloadDialog(Dismiss=OK)} for monitoring.
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),Framework] Manager.RemoveBrowser() : Removed client ID "Client_6c248a26-073f-4103-a9d7-174596709809" (0 remaining).
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),Framework] Manager.SetActiveBrowser() : Active browser is now null.
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),Framework] BrowserRemoted.End() : Now aborting the listener thread (TID = 13).
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:22),UIAutomation] AutomationExtensions.RemoveAutomationPropertyChangedEventHandler() : Removed the property change handler on element System.Windows.Automation.AutomationElement scope Subtree.
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:13),Warning] PipeCommunication.AsyncPipeRead() : Pipe read wait broken by thread-abort.
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:22),UIAutomation] AutomationExtensions.RemoveStructureChangedEventHandler() : Removed the structure change handler on element System.Windows.Automation.AutomationElement scope Subtree.
    [10.15 09:55:37,iexplore.exe(3804:1),Framework] BrowserRemoteClient.Disconnect() : Sending ClientDisconnectRequest(ClientId="Client_6c248a26-073f-4103-a9d7-174596709809") to pipe server...
    [10.15 09:55:37,iexplore.exe(3804:1),Framework] BrowserRemoteClient.Disconnect() : Command pipe is already disconnected.
    [10.15 09:55:37,ArtOfTest.Runner.exe(8216:7),DialogPlayback] DialogMonitor.Stop() : Dialog monitoring is being halted.
    [10.15 09:55:38,Telerik.TestStudio.exe(4568:21)] First trace message from background thread "Callback Listener Thread" (managed ID = 21, native ID = 5524).
    [10.15 09:55:38,Telerik.TestStudio.exe(4568:21),Warning] PipeCommunication.AsyncPipeRead() : Pipe was already disposed at the moment of the wait attempt.
    [10.15 09:55:38,Telerik.TestStudio.exe(4568:1),Error] <>c__DisplayClassc.<OnProfilingExecutionCompleted>b__b() : Profiler results file "" doesn't exist!

    My code is:

    public class WebTest1 : BaseWebAiiTest    {
    [CodedStep(@
    "All Results")]
     public void AllResults()
     {
       ResultScenarios.RunAll();
     }
    }
    ...

    /**
    class  ResultScenarios/**
    public static void RunAll()
    {
      Schedule.UsingThisSetupOn(HeaderValueFactory.GetDefaultMediaTypes(),
                                   HeaderValueFactory.GetDefaultAuthentication(9000924))
                                       .Function(ResultsDate);
    }

    public static ResultWrapper<dynamic> ResultsDate()
    {
      var uri =
    new Uri("https://testapi.mycompany.no/v1/results/10.10.2012");
      //var uri =
    new Uri("http://localhost:8230/v1/results/2010-06-24");
     
    return new Service(uri).AcceptOnly(HttpStatusCode.OK).As.Dynamic.Get();
    }
    ...

    One more important thing is that if I setup the ResultScenarios.ResultsDate() method to return null, the test does not fail. So it has something to do with the communication with the server I think.

    This is a big showstopper for us, I really hope you can help me with this. Even though I use the trial version now, we do have some licences at my company, and if we can get this working we will probably buy more.

    Thanks.

    Andreas
  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 18 Oct 2012 Link to this post

    Hello Andreas,

    Thank you for providing the log. However in order to get to the bottom of this and determine what is causing the problem we also need the following pieces of information:
    1. Do you have any performance counters selected? 
    2. Are you able to run the test without any performance counters selected?
    3. Please provide us with a copy of one of your .tsperf files where you are experiencing the "Error loading HttpTrafficProfilerConfiguration from tsperf file ..." error.
    4. Absolute best would be if you can send us an executable test, so we can reproduce this in our source code debugging environment and fix it.

    If you feel any of this information is sensitive, you can submit a support ticket which is confidential, unlike this forum. Thanks for providing the information we need to best assist you.

    Regards,

    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!