Telerik Forums
Test Studio Forum
1 answer
80 views

Hi there,

In the code-behind I like to be able to invoke a click on a menu item and find this menu-item by name or automation-id. By adressing the elements by name you do not have problems when you add menu items.

I can give the RadMenu a name and find it with Find.ByName. However If I give a RadMenuItem a name it does not show up in the DOM tree.

Antoher solution might be to loop trough the RadMenuItems but still I like to be able to adress one of them.

Do you know a solution?

Thanks,

Richard

Boyan Boev
Telerik team
 answered on 02 Jun 2016
3 answers
357 views

how to find nested elements within the ArtOfTest.WebAii.ObjectModel.Element.

I want to a span element within a form. The form has a unique attribute, span element does not have unique attribute. We cannot go by TagIndex, since the content is dynamic.

We would like to use Element objectmodel and not HtmlControl type. The element has the property FindUsedExpression, but there is no option to find the nested element.

sample code:

                Element parent = Manager.ActiveBrowser.Find.ByExpression(parentattribute); // parent
                if (parent != null) {

                    Htmlcontrol control = parent.As<HtmlControl>();
                    HtmlControl child = control.Find.ByExpression<HtmlControl>(childattributes); // child ---- i don't want
                    if (child != null) {
                        child .Focus(); // focus;

                    }

                }

regards

govind

Boyan Boev
Telerik team
 answered on 30 May 2016
3 answers
83 views

The Element EnumerationType returns value "Other" for <form></form> in version 2016.1.330

As per the Enumeration Type should return a value of 19 for <form>

 

When we use the Element.TagName returns the element form.

This seem to be a bug in the release.

Ivaylo
Telerik team
 answered on 26 May 2016
1 answer
34 views

Has anyone else had problems with Visual Studio after installing v. 2016.1.330 of Test Studio?? 

I am on the 30 day trial at present. After installing the new release, I started encountering fatal problems in Visual Studio when trying to load solutions, where previously I had not had such issues.I had to close VS down for 'not responding' and tried it again several times.  After uninstalling Test Studio, Visual Studio was back to its previous level of behaviour, and I could actually load projects / solutions.

Looking at the Windows Event Viewer, there were many errors relating to Art of Test.... just wondered if anyone had experienced anything similar.

 

Ivaylo
Telerik team
 answered on 26 May 2016
10 answers
490 views
I need to utilize BaseURL feature during playback, but instead of the actual BaseURL coming from any sort of test configuration I want to be able to calculate it in the code and stick the value to the test run for all subsequent test steps to use. Can I do that?

Or, otherwise, can I set BaseURL to use for playback in the data source (XML file) the test is bound to?

Thank you!
Konstantin
Boyan Boev
Telerik team
 answered on 25 May 2016
1 answer
52 views

I am developing tests for an application that uses a web-browser based UI; the application is hosted on a machine running IIS;  I am currently developing the tests on a remote machine, using the IP address of the machine hosting the application as the URL.  I was hoping to use the test-settings (settings.aiis) or testsettings file to change the URL to localhost when running the test from the build system, as an automated test.  is there a way to make pages.g.cs use the URL from the settings file rather than the hard-coded value in the file?

 

Thanks,

Mark

Ivaylo
Telerik team
 answered on 25 May 2016
7 answers
154 views

I have a TreeView that allows for multiple selection of TreeViewItem's. We don't use RadTreeView/Item, the project uses ArtOfTest.WebAii.Controls.Xaml.Wpf.TreeView/Item controls.

My issue is, I have a screen that when it loads, the same TreeViewItem isn't necessarily selected, and I need to select a specific one based on some text in the name of it.

So for example, in Screenshot_1, that first item is selected but I actually need the second one selected (there could be more than two items, that is just currently what I have in my sample), but the first item might not always be selected. There could be nothing selected on the screen load.

What I was thinking I would like to do is loop through the TreeView and deselect everything that is expanded, unless it has the text I'm looking for, in which case it should expand/select it.

Been working on this for a while and can't seem to figure it out...

Elena
Telerik team
 answered on 25 May 2016
3 answers
244 views
Hi,

I have a set of Telerik web tests in a project in my visual studio ( 2010) solution.
1. When I executed them with VS plugin (with QuickExecute)
-all run well
2. Then I used VS-->Test-->Run-->Tests in current context,
-all executed successfully.
3. Then I tried to executed them with MsTest in our continuous integration server ( final builder).
-It all failed.

My test project is:
- My telerik Test Studio Version 2011.2.1117.0
- "Any CPU" build setting ( Tried x86 setting too, no luck)
-I have a testsettings file and test list created for MsTest.
- I am testing with Internet Explorer

The error I got in my CI server:
Run has the following issue(s):
Warning: Test Run deployment issue: The assembly or module 'Telerik.TestingFramework.Interop' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.Windows.Controls.Input' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.Windows.Controls' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.Windows.Controls.Navigation' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.Windows.Controls.Docking' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.Windows.Controls.GridView' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.Windows.Documents' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.Windows.Controls.Charting' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.Windows.Data' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.Windows.Controls.RibbonBar' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.Windows.Controls.DataVisualization' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.Windows.Documents.FormatProviders.Html' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.Windows.Controls.Data' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.TestStudio.Data' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.TestStudio.Controls.GridView' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'ArtOfTest.ShDocVw' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.TestStudio.Controls' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found.
Warning: Test Run deployment issue: The assembly or module 'Telerik.Windows.Themes.Office_Black' directly or indirectly referenced by deployment item '..\bin\Debug\MyAppWebTests.dll' specified by the test 'music-classtype-core-open' was not found. 


     Action Failed
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe returned : 1 


If you see any problem with my test configurations or any problem with my approach, please let me know.

Thank you.
Pushpaka





Aaron
Top achievements
Rank 1
 answered on 25 May 2016
1 answer
94 views
Is there any possibility that you will allow Git Version Control in the future?
Konstantin Petkov
Telerik team
 answered on 25 May 2016
3 answers
261 views

Hi,

Do we have any mechanism to get the number of items available or displayed (say count) in the list view through Telerik Test Studio.

I could not find respective attribute available in the API. I also, checked the inbuilt translator and could not find it there.

 

Thanks,

Venkat.

Ivaylo
Telerik team
 answered on 24 May 2016
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?