Telerik Forums
Test Studio Forum
1 answer
73 views

When I follow the documentation (http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/load_testing_extensions.aspx) to create a load test extension then I get the attached error message in Test Studio:
"An unexpected error occurred in Test Studio. The error has been reported to the Telerik team."
The load test extension is the one from the documentation with a slight modification to match the interface methods.
This seems to be a bug in Test Studio to me. Or please tell me what I'm doing wrong. Thank you!
We followed the steps for plugins and put the DLL in %ProgramFiles%\Telerik\Test Studio\Bin\Plugins\

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
using System.IO;
using System.Data;
using System.Data.OleDb;
using ArtOfTest.WebAii.Design.Execution;
using Telerik.TestStudio.Load.Interfaces.Load.API;
 
namespace ClassLibrary1
{
    public class Class1 : ILoadAgentPlugin, ILoadAgentPluginHttpRequest, ILoadAgentPluginVirtualUser
    {
        public void VirtualUserAllocated(Guid userProfileId, Guid virtualUserId)
        {
            Random random = new Random();
 
            int randomNumber = random.Next(0, 5000);
            File.Create("c:\\test\\" + randomNumber.ToString());
        }
        public void VirtualUserDeallocated(Guid userProfileId, Guid virtualUserId)
        {
        }       
        public void AfterResponseReceived(Guid virtualUserId, int currentStepIndex, System.Net.HttpWebResponse response, string rawResponse)
        {
        }
        public void BeforeRequestSent(Guid virtualUserId, int currentStepIndex, System.Net.HttpWebRequest request)
        {
        }
        public string OverrideOutgoingUrl(Guid virtualUserId, int currentStepIndex, string url)
        {
            return url;          
        }
        public void UserProfileAllocated(Guid profileRunID, string profileFriendlyName)
        {
        }
    }
}
Velin Koychev
Telerik team
 answered on 17 Jan 2014
1 answer
133 views
I have successfully managed to extract data from an element into a DataBindVariable and have also managed to then use that data later in the test by placing it into a text box. I now need to verify that the same data is found in a tablecell within a radgrid that I have on screen and then subsequently double-click on the item. My issue is that I seem unable to locate the tablecell item by referencing the databoundvariable. I have tried editing the element and changing the find settings TextContent tag to look for $(mydataboundvar) but to no avail. What am I missing here? Any advice appreciated. See attached screen shot for what I have tried, but does not work as expected.
Boyan Boev
Telerik team
 answered on 16 Jan 2014
1 answer
97 views
Hi, i'm looking at creating a multidude of tests which use the if..else step, i cant however seem to alter the timeout of these steps,

Currently each time these are hit i have to wait 30 seconds, but the condition to resolve this appears in under 3-5 seconds. is there anyway to reduce the wait time on the if..else steps?

I have tried using the 'UseStepWaitInElelmentsTimeout' checkbox but the properties list for the if..else steps doect contain an option to define a timeout period.

Any help with this would be great

Jo
Velin Koychev
Telerik team
 answered on 16 Jan 2014
1 answer
64 views

Hi all.

We are using Microsoft Test manager to manage all our test cases with automated tests. Our plan is create automated test suite in Microsoft Test manager and run it through TFS. We are able to run tests through Microsoft Test manager as well as from TFS build.

However we couldn’t get results and logs back to Test manager or to TFS build during failure. When we run Telerik Test studio tests through Telerik Test studio plugin we are getting nice logs as well as snapshots. Is there any way to access those log files and snapshots when we are executing automated tests thought Microsoft Test manager

Thanks,
Suranga

Boyan Boev
Telerik team
 answered on 16 Jan 2014
2 answers
90 views
Hi ,

I am testing in Silverlight application where I click on a button after that it takes some time to load the page. And next step is to click on the combo box. But it tries to click the combo box while the page is loading. 

How can I wait until whole page is loaded and clicks the combo box after that:

Pages.PresentationClient0.SilverlightApp.SecurityTextblock.User.Click();  //Code for click the tab.

Pages.PresentationClient0.SilverlightApp.AccessGroupComboBoxRadcombobox.ToggleDropDown();//Code for opening the combo box.

Should there be any wait statement between the two?

Regards
A
Velin Koychev
Telerik team
 answered on 16 Jan 2014
1 answer
85 views
Hi All

Need to know if i can get a list of only failed test cases automatically after a test list execution is finished.

Thanks in Advance

Ankit
Boyan Boev
Telerik team
 answered on 15 Jan 2014
4 answers
287 views
I am trying to loop through an HTML unordered list, find a specific value, and then click the associated delete link.  So far, I can loop through the <UL>, find the value, and click the first delete button in the <UL>.  Is there a way to cycle down through the HTML and tell test studio to click the delete link for a specific tag?

Example:

The <UL> has two values:
A role

Test Role

The script will loop through the list and find 'Test Role'.  At this point, it needs to click the delete link associated with this item.  My current script always clicks the delete link for 'A role', which is the first one in the list.  I cannot figure out how to make it click the delete link for 'Test Role'.

Does anybody have any suggestions?  I have attached screen shots of the DOM and the UI and my current script is below.

Thanks!


HtmlUnorderedList roles = ActiveBrowser.Find.ById<HtmlUnorderedList>("Roles");
HtmlAnchor a = Find.ById<HtmlAnchor>("deleteRole");

//Loop through each <li>, find role and click the delete link
foreach(HtmlListItem item in roles.AllItems)
{
     if (item.TextContent.ToString() == "Test Role")
     {
          Log.WriteLine(item.TextContent.ToString());
          a.MouseClick();
     }
}

 

 

 

Boyan Boev
Telerik team
 answered on 15 Jan 2014
8 answers
195 views
Hi Telerik Team,

I have the following issue when playing back my script.

 I open a pop up window from my parent window and  select some options from a drop down and click a button on the pop up window which close the pop up window. I cannot playback the step as it fails. I have a couple of steps like this in my test and all of them fail.

If I instruct my test to stop running just before the step where I have to open a pop up window and then continue to run my test from the next step the playback works.

Do I have to give a delay ? Please help.

Regards,

Vaishali


Boyan Boev
Telerik team
 answered on 15 Jan 2014
1 answer
109 views
I have used the Version of Telerik Telerik.TestStudio.2013.1.1120_Purchase and builded a test where i verificated the Check Box property "state".
Now I have updated my Telerik to Version TestStudio_Ultimate_2013_2_1210_Trial and there my test does not work correctly anymore. The checkboxes have now in this Version no property like "state" anymore. So I cannot verificate the checkboxes anymore. I have tried to do a work around but have not found a solution.
  
Please help me

Greatings Christian

Velin Koychev
Telerik team
 answered on 15 Jan 2014
10 answers
135 views
After upgrading our build machiines to 2013.1.806.0, I'm seeing this issue when trying to build:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1578): The primary reference "ArtOfTest.WebAii.Design, Version=2013.1.806.0, Culture=neutral, PublicKeyToken=4fc62bbc3827ab1d, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "ArtOfTest.WebAii.Design, Version=2013.1.806.0, Culture=neutral, PublicKeyToken=4fc62bbc3827ab1d, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".

Any ideas?
Velin Koychev
Telerik team
 answered on 14 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?