Telerik Forums
Test Studio Forum
1 answer
83 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
283 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
191 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
106 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
133 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
5 answers
248 views
Hi,

I'm using Telerik Test Studio version: 2012.2.1527.0. I start recording using the webtest and navigate to the URL. This is not getting recorded as a step.

There is a login page. As I start typing my user Id, this is now getting recorded. Everything from this point is getting recorded (except any URL changes). Since the initial navigation is not getting recorded, the test fails in the very first step when I run it.


Error Information

Error: Wait for condition has timed outInnerException:System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:id=credentials,name=Frame_1,src=https://<URL>,UseQuery:False]' timed out. Error: Wait for condition has timed out at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)



However, it works fine for my colleagues (navigation to the URL is getting recorded as the first step), who have the same user rights to the machine as mine. We all use the same OS and followed same steps. The only setting we all did is calibrating the browser. Everything else is default settings.

I found similar issue being reported here before. But that says OS is a non-english one as the cause. This is not the case for me.

I tried adding manual step for navigation to the URL. It did not work. Can you please help ASAP or give me a work around please. Thanks.

Cheers,
Amar.
Boyan Boev
Telerik team
 answered on 13 Jan 2014
3 answers
96 views
Hi,
     I have recorded form filling in my application, which has fileds like "Name, Phone number, etc,...."  when recording i i entered "sujith" in name field and "(098) 765 4321" in phone number field and click save button, gets saved. stopped the recording.

Then i have edited Name as "John" and phone number as "(123) 456 7890" in the recorded steps, saved and play-backed the steps.
But test studio not enters the name and phone number which i have edited. it entering only the values which i have entered during recording as ""sujith" in name field and "(098) 765 4321" in phone number field".
Velin Koychev
Telerik team
 answered on 13 Jan 2014
1 answer
108 views
I want to extract the text content from the comment step and want to write it in excel file. How can I do that?
Boyan Boev
Telerik team
 answered on 13 Jan 2014
1 answer
84 views
Hi,

After creating a couple of scripts with coded steps, which use a custom library file and testing them individually, we get an error for one of the scripts when putting it in a TestList.

'1/8/2014 11:31:32 AM' - 'Fail' : 10. [Toelichting_CodedStep] : Rename PDF
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[Toelichting_CodedStep] : Rename PDF'.
InnerException:
System.IO.FileNotFoundException: Could not load file or assembly 'TestLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'TestLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
   at ABN_AMRO_Internet.Toelichting.Toelichting_CodedStep()
 
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

The library is also used in a different script, which does succeed in the same TestList.

I already tried to remove the .cs file and create the coded steps once again, but this wasn't a solution.

Hopefully someone can point us in the right direction!

Thanks in advance
Boyan Boev
Telerik team
 answered on 13 Jan 2014
2 answers
83 views
Hello,

I'm looking for solutions or ideas about scheduling and executing older versions of tests.
We keep our tests in TFS so when we start a new sprint we could also make a branch of our tests.
For example we have application X version 1 in production. Last sprint we worked on version 1.1 but it still needs acceptance by the business and maybe minor fixes. This sprint we work on version 1.2 we have some changes on the application and we want to modify our tests for those changes. However I still want to execute the older tests on application version 1.1.

How can i schedule and execute this?
Is the only solution to create a branch of our tests and then schedule these?
I think this would be big manual operation and I would need dedicated execution servers for a version (?)

Kind regards,
Norbert
Velin Koychev
Telerik team
 answered on 13 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?