Telerik Forums
Test Studio Forum
1 answer
94 views

Hello! I have a test that uses both "Wait for exists" and "Wait for existsNot". This test work flawlessly for IE but when executed on firefox the "Wait for exists" actions fails 50% of the time and the "Wait for existsNot" fails 100% of the time. I have tried searching on the forums for a solution on the forums, but a delay execution action in this case simply will not do because the loading times are very variable and I want to emphasize efficiency on my test. If any solutions are available or more information on my problem is needed, please let me know, thanks!

Unexpected error while waiting on condition. Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'68776d95-33de-47f2-856c-028f02d34f3b',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
mozCommandProcessor: ProcessInformationCommand(): Document is not ready to retrieve its markup.
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'68776d95-33de-47f2-856c-028f02d34f3b',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'mozCommandProcessor: ProcessInformationCommand(): Document is not ready to retrieve its markup.')
InnerException: none.
 
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
 ---> ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
mozCommandProcessor: ProcessInformationCommand(): Document is not ready to retrieve its markup.
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'68776d95-33de-47f2-856c-028f02d34f3b',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'mozCommandProcessor: ProcessInformationCommand(): Document is not ready to retrieve its markup.')
InnerException: none.
 
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
   at ArtOfTest.WebAii.Core.Browser.ArtOfTest.Common.IAutomationHost.EnsureStateIsCurrent()
   at ArtOfTest.Common.Design.Extensibility.Descriptors.VerificationDescriptor.<PerformWait>b__f(IAutomationHost hst, DescriptorValueStore values)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at ArtOfTest.Common.WaitAsync._worker_DoWork[T,V](Object waitParam)

Elena
Telerik team
 answered on 05 Jul 2016
1 answer
52 views
I am testing this application and unable to use firefox v47 to capture. Thanks
Nikolay Petrov
Telerik team
 answered on 05 Jul 2016
3 answers
81 views

Just a quick question......

http://docs.telerik.com/teststudio/features/test-runners/integrate-task-scheduler-with-artoftest

Using the method as outlined in the link above, if I wanted to run multiple tests, would it be necessary for me to manually wait in between different tests? Or would it be possible for me to copy that line over multiple times to run my test lists, and they'll just run one of the next until they're finished?

Boyan Boev
Telerik team
 answered on 05 Jul 2016
3 answers
107 views

Greetings,

I'm using a coded step to extract the text from a RichTextBox control in WPF and set an extraction for later comparison. Since the RichTextBox is already identified by a named Element in the Elements Repository, I'd like to lookup the element by name there, then use the element's find expression to create a new XamlFindExpression to give to the Find.ByExpression method. This way I can avoid duplicating the logic.

Is this possible, or is the duplicated expression the only way?

Elena
Telerik team
 answered on 04 Jul 2016
2 answers
70 views

Greetings,

As we use Coded Steps more, we are eager to use the features in C# 6 in them. It appears that C# 6 features are not yet supported in Test Studio code editor. Is this the case? If so, could you let us know when it will be supported?

Rory
Top achievements
Rank 1
 answered on 01 Jul 2016
1 answer
112 views

I am facing some difficulties iterating over a list of records, each of which is wrapped inside <tr>...</tr>

The logic I am following is:

========================

while ( FIRST_TR exists or visible)

    * press the delete buton

    * wait 250 ms

========================

This is not working, as I believe once the element is removed, it breaks out of the loop. So I checked EnsureStatIsCurrent, yet no juice.

Is there's an easy way to get this done with Telerik Test Studio ?

 

Thank you

 

Boyan Boev
Telerik team
 answered on 30 Jun 2016
1 answer
83 views

Hi Team,

 

My requirement is that on a page, there are multiple actions performed on different frames(layouts).

Eg : Enter the name. Click on Add. Verify Name is added in Select List

 

So the above three events are happening on different areas of a single page.

 

Can anyone guide me how to implement auto scroll such that wherever actions are performed, page scroll should be performed ?

Elena
Telerik team
 answered on 29 Jun 2016
15 answers
371 views
Not sure how this happened but suddenly my test lists refuse to run on my execution machine, its as if they never copy over.  Here is a snippet of the TS Trace log.  I am running this with the 2013.2.1524.0 internal release due to other test list issues. 




[04/08 10:25:21,Telerik.TestStudio.Scheduling.Client.exe(304:4)] First trace message from pool unnamed thread (managed ID = 4, native ID = 2168).
[04/08 10:25:21,Telerik.TestStudio.Scheduling.Client.exe(304:4),Execution] RemoteExecutorViewModel.GetProcessData() : EXCEPTION! (see below)
     Situation: Unable to retrieve test history
     Outer Exception Type: System.Net.Http.HttpRequestException
     Message: Response status code does not indicate success: 500 (Internal Server Error).
     HRESULT: 0x80131500 (Official ID (if app.) = COR_E_EXCEPTION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5376)
     Call Stack:
          Server stack trace:
          at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
          at Telerik.TestStudio.Shared.Communication.BaseCommunicationLayer.<HandleResponse>d__5e.MoveNext()
          Exception rethrown at [0]:
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
          at Telerik.TestStudio.Shared.Communication.BaseCommunicationLayer.<HandleResponse>d__61`1.MoveNext()
          Exception rethrown at [1]:
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
          at Telerik.TestStudio.Shared.Communication.BaseCommunicationLayer.<Get>d__33`1.MoveNext()
          Exception rethrown at [2]:
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
          at ArtOfTest.WebAii.Design.Execution.Communication.RemoteExecutorCommunicationLayer.<GetTestHistory>d__6.MoveNext()
          Exception rethrown at [3]:
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
          at Telerik.TestStudio.Scheduling.ClientMachine.ViewModels.RemoteExecutorViewModel.<GetProcessData>d__0.MoveNext()

[04/08 10:25:21,Telerik.TestStudio.ExecutionManagerService.exe(2052:8),Execution] JobRunner.RunJobAsync() : Unable to load test list, aborting run.
[04/08 10:25:21,Telerik.TestStudio.ExecutionManagerService.exe(2052:8),Execution] JobRunner.RunJobAsync() : Unable to load test list, aborting run.
[04/08 10:25:21,Telerik.TestStudio.ExecutionManagerService.exe(2052:8),Execution] JobRunner.RunJobAsync() : Unable to load test list, aborting run.
[04/08 10:25:21,Telerik.TestStudio.ExecutionManagerService.exe(2052:5),Execution] JobBroker.ctor() : Job runner refused this job!
[04/08 10:25:21,Telerik.TestStudio.ExecutionManagerService.exe(2052:5),Execution] JobBroker.ctor() : Job runner refused this job!
[04/08 10:25:21,Telerik.TestStudio.ExecutionManagerService.exe(2052:18),Execution] JobBroker.ctor() : Job runner refused this job!
[04/08 10:25:22,Telerik.TestStudio.Scheduling.Client.exe(304:16),Execution] RemoteExecutorViewModel.GetProcessData() : EXCEPTION! (see below)
     Situation: Unable to retrieve test history
     Outer Exception Type: System.Net.Http.HttpRequestException
     Message: Response status code does not indicate success: 500 (Internal Server Error).
     HRESULT: 0x80131500 (Official ID (if app.) = COR_E_EXCEPTION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5376)
     Call Stack:
          Server stack trace:
          at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
          at Telerik.TestStudio.Shared.Communication.BaseCommunicationLayer.<HandleResponse>d__5e.MoveNext()
          Exception rethrown at [0]:
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
          at Telerik.TestStudio.Shared.Communication.BaseCommunicationLayer.<HandleResponse>d__61`1.MoveNext()
          Exception rethrown at [1]:
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
          at Telerik.TestStudio.Shared.Communication.BaseCommunicationLayer.<Get>d__33`1.MoveNext()
          Exception rethrown at [2]:
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
          at ArtOfTest.WebAii.Design.Execution.Communication.RemoteExecutorCommunicationLayer.<GetTestHistory>d__6.MoveNext()
          Exception rethrown at [3]:
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
          at Telerik.TestStudio.Scheduling.ClientMachine.ViewModels.RemoteExecutorViewModel.<GetProcessData>d__0.MoveNext()

[04/08 10:25:23,Telerik.TestStudio.Scheduling.Client.exe(304:8),Execution] RemoteExecutorViewModel.GetProcessData() : EXCEPTION! (see below)
     Situation: Unable to retrieve test history
     Outer Exception Type: System.Net.Http.HttpRequestException
     Message: Response status code does not indicate success: 500 (Internal Server Error).
     HRESULT: 0x80131500 (Official ID (if app.) = COR_E_EXCEPTION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5376)
     Call Stack:
          Server stack trace:
          at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
          at Telerik.TestStudio.Shared.Communication.BaseCommunicationLayer.<HandleResponse>d__5e.MoveNext()
          Exception rethrown at [0]:
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
          at Telerik.TestStudio.Shared.Communication.BaseCommunicationLayer.<HandleResponse>d__61`1.MoveNext()
          Exception rethrown at [1]:
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
          at Telerik.TestStudio.Shared.Communication.BaseCommunicationLayer.<Get>d__33`1.MoveNext()
          Exception rethrown at [2]:
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
          at ArtOfTest.WebAii.Design.Execution.Communication.RemoteExecutorCommunicationLayer.<GetTestHistory>d__6.MoveNext()
          Exception rethrown at [3]:
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
          at Telerik.TestStudio.Scheduling.ClientMachine.ViewModels.RemoteExecutorViewModel.<GetProcessData>d__0.MoveNext()
Ivaylo
Telerik team
 answered on 29 Jun 2016
4 answers
207 views

Hello,

We have been using Telerik.TestStudio.CommandLineClient.exe to run test lists remotely as part of our CI system but due to major inconsistencies are looking to see how the ArtOfTest.Runner.exe works instead. Here is a sample command of using the CommandLineClient in one of our TeamCity build steps.

  • "C:\Program Files (x86)\Telerik\Test Studio\Bin\Telerik.TestStudio.CommandLineClient.exe" -l "TestLists\OfficialFile.aiilist" -u "http://TestRunner:8009"

What I need to figure out is how to accomplish this exact same thing with the ArtOfTest.Runner. My initial attempt at creating such a command is shown below.

  • "C:\Program Files (x86)\Telerik\Test Studio\Bin\ArtOfTest.Runner.exe" root="C:\Users\Runner\AppData\Local\Temp\Projects\" list="TestLists\OfficialFile.aiilist"

But, the above command gives me an error along the lines of unrecognized or incomplete command line. The ArtOfTest.Runner has a few arguments of interest to us (we are not using TFS): primarily list & root. I am probably just using this tool incorrectly but something about the list argument seems problematic as it wants the full path to the test list to run. How can one specify the full path when the projects ran on the scheduling server (found in the C:\Users\Runner\AppData\Local\Temp\Projects\ directory) have unpredictable names such as 1ef60107-4696-4b2c-b34a-bfeb6a2e5a28? Is my root argument correct or does it need the project name with it?

Thanks!

Elena
Telerik team
 answered on 28 Jun 2016
1 answer
124 views

Hi,

I have created some automated script using Telerik Test Studio. I want to map the test cases ID which is being covered in my test script.

Suppose,

I have created a test script s1 which covered manual test case with ID T1, T2, T3.

 

Now I want to map those test case ID with my test script so that the mapping got reflected in my test studio execution report.

 

 

Boyan Boev
Telerik team
 answered on 28 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?