Telerik Forums
Testing Framework Forum
2 answers
115 views

Recently, I was assigned to fix a test suite which would consistently fail to run all 600 tests after consecutive 5 time-out ones. Now I am quite sure the AutoRefreshDomTree and AutoWaitUntilReady could result in some dead loops by chance.

An article was published on http://www.codeproject.com/Tips/895632/Tips-with-Telerik-Trouble-shooting and I hope that could be helpful for Telerik to improve their powerful testing framework.

William
Top achievements
Rank 1
 answered on 21 Apr 2015
23 answers
415 views
Hello experts,

I'm trying my first sample test for google.com. I was able to record and playback tests from Test Sturio. However, we wanted to build our own framework. So started looking at the telrik API. I was completely struck with the below issue and was not able to proceed further

{           
            Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
            ActiveBrowser.NavigateTo("http://www.google.com"); //Was able to open the browser
            Console.WriteLine("Title of the page :" + ActiveBrowser.PageTitle); // Able to get the title of the browser
             
            // HtmlInputText textBox = ActiveBrowser.Find.ById<HtmlInputText>("gbqfq");
            Find.ByExpression<HtmlInputText>("id=?_gbqfq"); //This is where I'm getting the System.NullReferenceException  : Object reference not set to an instance of object

}

I'm struck at this point. Need your urgent help as I need to give a POC demo.

Regards,
Kiran



Ivaylo
Telerik team
 answered on 14 Apr 2015
4 answers
607 views

Hello.

I'm trying to automate one WPF application, and I need to check if my wpf window has the correct class name. How can I do that?

 Here is the part of XAML page code (I need to get class name "Namespace.View".):

 

<WindowViewBase
    x:Class="Namespace.View"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <!-- some controls here -->

</WindowViewBase>

Evgeniy
Top achievements
Rank 1
 answered on 10 Apr 2015
3 answers
278 views

I am evaluating Telerik Test Studio (http://www.telerik.com/automated-testing-tools) as a web regression tool and looking for a how-to on setting up and using of a Page Object Model environment like is possible in Selenium.

http://code.google.com/p/selenium/wiki/PageObjects

The Telerik documentation is focused on record/playback which is very brittle, and my google searches haven't turned up relevant links.

btw, I've cross posted this on stackoverflow http://stackoverflow.com/questions/15034206/how-to-on-implementing-page-object-model-with-telerik-test-studio
Boyan Boev
Telerik team
 answered on 03 Apr 2015
5 answers
815 views
Hello, I'm wondering what is the difference between those two methods mentioned above?  Is the .Click() method executed via Javascript?  What about the .MouseClick() method..does it not use javascript.

If I use the .MouseClick() event, does that mean that the browser has to to have top most focus on it while executing the tests?  Does that also mean that a user has to be logged in and the browser can't be minimized while the tests are running.

Please help me understand the difference at the low technical level...why would I prefer one over the other?  If I use the .MouseClick() method will I see the mouse cursor actually moving over to the UI element that it's about to interact with?

Regards,

Humberto
Cody
Telerik team
 answered on 02 Apr 2015
3 answers
145 views
Hi,

I've come across this issue when running tests on our build server :

ArtOfTest.WebAii.Exceptions.UnsupportedNonInteractiveOperationException : Using the Desktop object is prohibited when running in non-interactive mode. Follow the link for more information: http://docs.telerik.com/teststudio/user-guide/knowledge-base/test-execution/no-tests-execute-on-locked-machine.aspx

I didn't tried all the solutions using Remote Desktop sessions and VNC yet.  

In the documentation page above, it is mentioned : "Any test that requires moving the mouse or sending key strokes requires an unlocked desktop."  So, what I'd like to know is what are the methods and objects I should avoid when not running on interactive mode.  

Regards,
Martin
Ivaylo
Telerik team
 answered on 02 Apr 2015
0 answers
73 views
Hello,

This is in regards to support ticket 910420.
Humberto
Top achievements
Rank 1
 asked on 31 Mar 2015
5 answers
167 views
Using the Testing Framwework how do you cause a filter which is RadComboBox to select one of its items?
Can you provide sample code using your http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/filter-templates/defaultcs.aspx
for example use the City combobox to select the Anchorage item.

I can find the combobox but when I attempt to click on my selected item no filtering is ocuring.
How to I associate the filter and combobox? I've tries clicking in the filter for the grid but that still doesn't apply the filter.
Boyan Boev
Telerik team
 answered on 24 Mar 2015
1 answer
104 views
Hello,

I am using Data Driven framework with Excel sheet. All the steps in my test will continue on failure. I have 10 rows for each test. After each iteration, I need to log status of each iteration (Pass/Fail) into excel sheet.

Can you guide me how to do this?

Also is there any other report format available other than the console log?
Boyan Boev
Telerik team
 answered on 22 Mar 2015
4 answers
97 views
Hi,

We have a Silverlight application hosting an iframe within it.

Finding element works well. But actions are giving me a tough time.
I am trying to click or scroll to an HTML element using :

1) Browser Actions:
Browser.Actions.ScrollToVisible(element);
Browser.Actions.Click(element);

This throws an exception.

2) Html control class 
element = frame.Find.ByExpression<HtmlInputRadioButton>("class=FICheckRadio");
element.InvokeEvent(ScriptEventType.OnClick);

This does highlight the radio button, and does not throw any exception. BUT does not actually click on the element.

Is there another way to act on the elements within HTML withing Silverlight?




Ivaylo
Telerik team
 answered on 19 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?