Telerik Forums
Test Studio Forum
3 answers
367 views
Hello,

We experience random test failures while running Silverlight tests based on Telerik Test Studio. While the tests pass, just after a test finishes it receives an error saying 'The agent process was stopped while the test was running'. Most of the time tests pass, but about 5% of them fail with this error.

We are running tests via MSTest 2012 from a TeamCity build step. The test studio version is 2012.2, the machine is running Windows 8.1 x64

The following error occurs immediately in the Event Log:​

Log Name:      Application
Source:        .NET Runtime
Date:          8/22/2014 12:58:53 PM
Event ID:      1026
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      X
Description:
Application: QTAgent32_40.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Threading.ThreadAbortException
Stack:
   at MS.Internal.Automation.WinEventWrap.WinEventReentrancyFilter(Int32, Int32, IntPtr, Int32, Int32, Int32, UInt32)
   at MS.Win32.UnsafeNativeMethods.PeekMessage(MSG ByRef, HWND, Int32, Int32, Int32)
   at MS.Internal.Automation.QueueProcessor.WaitForWork()
   at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()

I tried debugging remotely and attaching VS to QTAgent32_40 process. When the exception occurs, the thread it occurs on is named 'MS UI Automation event queue processor.' Besides, there is always another thread named like 'Agent: adapter run thread for test 'X'...' with the following call stack:
  mscorlib.dll!System.AppDomain.Unload(System.AppDomain domain)
  ArtOfTest.WebAii.Design.dll!ArtOfTest.WebAii.Design.Execution.TestAppLoader.Dispose()
  ArtOfTest.WebAii.Design.dll!ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTest(ArtOfTest.WebAii.Design.Execution.ExecuteTestCommand command)
  ArtOfTest.WebAiiVSIP.dll!ArtOfTest.WebAiiVSIP.WebAiiTestAdapter.Run(Microsoft.VisualStudio.TestTools.Common.ITestElement testElement, Microsoft.VisualStudio.TestTools.Execution.ITestContext testContext)
  Microsoft.VisualStudio.QualityTools.AgentObject.dll!Microsoft.VisualStudio.TestTools.Agent.AgentExecution.CallAdapterRunMethod(object obj)
  mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state)
  mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)
  mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)
  mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state)
  mscorlib.dll!System.Threading.ThreadHelper.ThreadStart(object obj)

So it looks like if a test finishes in a bad moment, its attempt to unload app domain leads to async thread abort on UI Automation Client thread. It is not handled, so it causes process termination. (See for example http://stackoverflow.com/questions/9416078/how-to-handle-appdomain-unload-and-the-related-threadabortexception)

Is there anything that can be done to mitigate the issue? Or do I need to file a bug via our license holder? This error makes our automated UI tests unstable and unusable.
Ivaylo
Telerik team
 answered on 01 Sep 2014
2 answers
63 views
Hi.

I've been creating small sub-tests for my test scenarios such as logging in, going to a specific page, ordering a product, etcetera. The goal is to be able to easily create varying test scenarios by using these small tests as building blocks. Now I've added in a data source to specificy my base URLs so I can run these tests on both test and acceptation enviroments, this is where this method seems to unfortunately break down.

When I add a datasource it automatically runs every test twice, one on test (row 1 of my excel sheet) and on acc (row 2 on my excel sheet), however it does this for every single substep. I want an entire testlist to finish while using data from row 1, and then another iteration of said testlist where it gets data from row 1. Right now it performs Step 1 twice, Step 2 twice, etcetera.

I've also tried creating one full test instead of a testlist where I use my small tests as test steps, but it still performs all of the possible iterations for step 1 before moving on to step 2. Is what I want not possible? If so, how would I ever go about testing an entire scenario on test before I do the full run on acc, without having to make one giant test without sub-tests in it?

Regards,
Sander
Miguel
Top achievements
Rank 1
 answered on 28 Aug 2014
4 answers
240 views
Hello,

I have the scenario for testing a workflow from start to end. The workflow is same but the scenario varies based on data. We have about 15 scenarios for the workflow but the data for each scenario is different.

We would like to test each scenario at least 5 times with different values. The data fields being large, having the data entered in excel sheet will be difficult for the tester to navigate the record from column 1 …. Column n.

We were looking at an alternative where we could have the record structured in xml, with name value pair. We plan to have the parent node, 5 child nodes, each child node will have one set of data where each row will be name value.

Here is the same xml.

<?xml version="1.0" encoding="utf-8"?>
<Approval >
  <data-1>
    <Fault label="IncidentType" value = "Fatal"/>
    <Fault label="IncidentDate" value = "01/01/2014"/>
    <Fault label="IncidentTime" value = "10:00"/>
    <Fault label="Location" value = "Surface"/>
    <Fault label="Detailedocationonsite" value = "Location"/>
    .
    .
    .
    .
    <data-1>
      <data-2>
        <Fault label="IncidentType" value = "Fatal"/>
        <Fault label="IncidentDate" value = "01/01/2014"/>
        <Fault label="IncidentTime" value = "10:00"/>
        <Fault label="Location" value = "Surface"/>
        <Fault label="Detailedocationonsite" value = "Location"/>
        .
        .
        .
        .
        <data-2>
          .
          .
          .
          .
          <data-n>
            <Fault label="IncidentType" value = "Fatal"/>
            <Fault label="IncidentDate" value = "01/01/2014"/>
            <Fault label="IncidentTime" value = "10:00"/>
            <Fault label="Location" value = "Surface"/>
            <Fault label="Detailedocationonsite" value = "Location"/>
            .
            .
            .
           .
            <data-n>
</Approval >


We will have one test data driven connecting to the xml file (datasource). The data table in TestStudio (2014TR1), only allows us bind only one table (i.e. data-1 or data-2, etc)..

Ideally would like to run the complete file once… We don’t want write to many custom coded steps since the testers do not have coding background.

Please share solution if anyone have implemented both coding and non-coding is welcome but using Test Studio UI.

Thanks
Govind
Shashi
Top achievements
Rank 1
 answered on 27 Aug 2014
1 answer
102 views
Hi,

I am using Firefox 31.0 and Test Studio version 2014.2.807.0

I have installed these on my Firefox:

Telerik Exploratory Testing Extension 1.0
Telerik Test Studio Automation 2013.2.1519.1
Telerik Test Studio Recorder 2013.2.1519.0

TS also can not record in Chrome Version 36.0.1985.143 m with these extensions installed:

Telerik Test Studio Chrome Explore 2014.1.410.2
Telerik Test Studio Chrome Playback 2014.2.618.3
Telerik Test Studio Chrome Recorder 2014.2.618.3
Telerik Test Studio Recorder 2014.1 2014.1.410.3

At the moment TS can not record anything but can play a test script in both browsers.

TS working fine on my IE. Can anyone please share the experience to solve this problem. Thanks



















Ivaylo
Telerik team
 answered on 26 Aug 2014
1 answer
95 views
How does image verification works as in what all things are verified during run time if image verification is performed.?
Konstantin Petkov
Telerik team
 answered on 25 Aug 2014
3 answers
100 views
We are currently evaluating WebUI Test Studio QA (latest trial version).
Is there any features to export all test/test items/test result into Excel / Word ?
(I know that  UI test can export  Excel/Word files for each test/ test result page)

What we'd like to do is 2 things:

 - Generate Test items Report (Excel/Word) before test execution
 - Generate all the test result in a single Excel file (mutiple worksheets?)

Thank you.
Konstantin Petkov
Telerik team
 answered on 25 Aug 2014
2 answers
106 views
Hello,

I am trying to setup a small test that uses an ORM to read data from our database using Test Studio's Code Behind option..  So far I've referenced our ORM/Telerik.OpenAccess/Telerik.OpenAccess.35.Extensions.  If I bring down the latest version of our ORM and reference it in the test I am able to run it and return the desired results.  However, if I choose to build the ORM (after changing the database or doing nothing to it at all)  the test then fails and returns the following error:

Telerik.OpenAccess.OpenAccessException: Application id class 'Telerik.OpenAccess.RT.OID.IntIdentity' used by class 'ezoneORM.CourseSection' must have field: 'public System.Int32 _courseSection_pk'.

This field is never altered yet after a build it seems to dislike the ORM.dll. 

Any ideas?

Thanks.
Ivaylo
Telerik team
 answered on 22 Aug 2014
1 answer
108 views
I'm trying to create a test that enters a value into a Kendo Numeric Text Box. However, if I attempt to use the code provided below, compilation for the test fails, giving the error " The type or namespace name 'KendoNumericTextBox' could not be found (are you missing a using directive or an assembly reference?)". I've already confirmed that the Telerik.TestingFramework.Controls.KendoUI dll is referenced by the project in the project settings. How can I interact with the numeric text box?

Thanks

 http://www.telerik.com/forums/kendo-numeric-text-box 
Cody
Telerik team
 answered on 19 Aug 2014
4 answers
127 views
Hi all,

I need to be able to set my browser culture programmatically, e.g. to 'en', 'en-GB', 'en-US', etc.
Is there a Test Studio function that does this?  If not, could somebody point me in the right direction to accomplish this using a VB code behind window?

Many thanks,
Nigel Edwards, Transition Computing.
Ivaylo
Telerik team
 answered on 19 Aug 2014
1 answer
76 views
Hi Cody, 
                I need to customize the load test report , I need to save the page specific metrics but the existing load test report is not having these metrics,is there any way to customize this using coded steps.From the following links to forums 

http://docs.telerik.com/teststudio/user-guide/code-samples/general/execution-extensions.aspx
http://docs.telerik.com/teststudio/user-guide/code-samples/general/load_testing_extensions.aspx
                                                                                                                                                                         I came to know that we can use extensions in this situation but in order to write an extension we need to understand the existing classes and libraries which are to be used , from the following link 

http://docs.telerik.com/teststudio/online-api-reference/index.aspx  

I can see what classes are available but I can hardly figure out how they can be used . Apart from the mentioned links is there any document(with examples) which can be used as reference to API so that everyone can use it .In case if there is no such document , kindly send me sample code to solve my problem 

Thanks 
Sasikanth 




Cody
Telerik team
 answered on 18 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?