Telerik Forums
Testing Framework Forum
3 answers
210 views
Hi,

I am creating a smoke test and seeing some behavior with the RadComboboxs. I need to automate one being opened. Is there a recommended way to do this?

I've tried ToggleDropDown but on occasion I get 'Object reference not set to an instance of an object' originating from Telerik.WebAii.Controls.Xaml.Wpf.RadComboBox.ToggleDropDown().

I've also tried trying if the combobox has items and then doing SelectItem(0, true) but, this gives me the following error when it tries to automate on a combobox from the filter popups on the grids.

System.Exception: Was not able to match a segment within the path. Expected:decorator , Found:FrameworkElement , Path:/popuproot:-1:11962631/decorator:0:40554822/nonlogicaladornerdecorator:0:29449080/contentcontrol:0:29534370/contentpresenter:0:23828523/filteringcontrol:0:13130117/border:0:51062193/grid:0:56906561/stackpanel:0:42397005/stackpanel:1:20897776/radcombobox:3:29186801
   at ArtOfTest.WebAii.Silverlight.VisualFind.ByReference(AutomationReference reference, Boolean throwIfNotFound)
   at ArtOfTest.WebAii.Silverlight.FrameworkElement.Refresh()
   at Telerik.WebAii.Controls.Xaml.Wpf.RadComboBox.ToggleDropDownIfRequested(Boolean openDropDown)
   at Telerik.WebAii.Controls.Xaml.Wpf.RadComboBox.SelectItem(Int32 itemIndex, Boolean openDropDown)
   at Telerik.WebAii.Controls.Xaml.Wpf.RadComboBox.SelectItem(Int32 itemIndex)

Any ideas?

I'm using version 2012.2.1527.0.
Thanks
Andrea
Boyan Boev
Telerik team
 answered on 22 Aug 2013
3 answers
145 views
Hello,
I am trying to do something simple like trying to the sample webaii test to launch its browser and complete its test by going to wikipedia and type in test studio and click go and confirm that it appears.

So from what I am experiencing, I have my work computer that has Test Studio on it and I used the sample test on it.  When I have it run, it rans completely fine as expected.

But on my home computer and a virtual machine, (Windows 8 with Visual Studio Professional) when the test starts to launchnewbrowser(), it hangs there and does nothing until it gets the timeoutexception. 

Is this happening to anyone else?
Cody
Telerik team
 answered on 22 Aug 2013
1 answer
76 views
Hi,

I'm quite new to Testing frameworks, just going to jump into.
For now, i'd like to play with WP feature: isolated storage. I'd like to have some tests about files/folders creation/deletion.
Is it possible to write some test cases using Testing Framework?

EDIT: looking like, it is not supported - lets reformulate question "is WP planned to be supported in the future?"
Boyan Boev
Telerik team
 answered on 21 Aug 2013
1 answer
136 views
We have an app developed using VS2010 vb.net asp.net, we are now trying to switch a functional testing team member to use Telerik Testing feamework, but so far he has had no luck getting it to work with VS Studio Express 2010, the free version from Microsoft. He gets a Telerik control panel with both Visual Studio 2010 and 2012 checkboxes disabled. Is there a certain version he'd need to use (e.g. VB2010 express if we are using VB under VS2010 on the develepment side? Or should he use Visual Web Dveloper since it is a .net project?
Cody
Telerik team
 answered on 20 Aug 2013
3 answers
160 views
Hi Team,

I want to know the exact version of telerik webaii, which installed in my machine. Im just pasting the dll version of the framework.
Please help me to find the version.

File Version : 2012.2.1420.0
Cody
Telerik team
 answered on 20 Aug 2013
1 answer
134 views
Hi,

I am unable to retrieve the text from a dialog. I've tried the suggestion in http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/html/verify-dialog-text.aspx and I've  tried this.Window.GetText(). I've also tried manually iterating through each window and retrieving it's caption but no luck. The most text I can capture is the title of the dialog and text on the buttons.

It's a standard WPF application I'm automating against.

Using Testing Framework: 2012.2.1527.0.

Thanks,
Andrea

Boyan Boev
Telerik team
 answered on 20 Aug 2013
3 answers
103 views
Hi,

Is there any changelog for the new version of framework? In the documentation a ReleaseNotes.txt file is mentioned, but I can't find it anywhere.

Kind Regards
Silvio
Boyan Boev
Telerik team
 answered on 19 Aug 2013
1 answer
132 views
HI,

I am trying to click on the button on silverlight application but its throwing an exception. I have used the same method for clicking on other button where it worked. Not sure why it is throwing an exception here.
public void OpenChartTemplate()
  {
 
      ClickChartButton(ControlsDefinition.LoadChartTemplateButton);
 
 
  }
  public void ClickChartButton(string buttonName)
  {
      try
      {
        
          Button button = _app.Find.ByName<Button>(buttonName);
          button.EnsureClickable();
 
          button.User.Click();
          _app.RefreshVisualTrees();
 
      }
      catch (TimeoutException exc)
      {
          Trace.WriteLine("@" + DateTime.Now.ToLongTimeString() + " " + buttonName + " " + exc.ToString());
 
      }
  }
Boyan Boev
Telerik team
 answered on 19 Aug 2013
1 answer
101 views
I want to ask about the testing framework by itself, but I didn't see where I could do this?

My question is why does the artoftest browser enum say to use the teststudio.communication.shared.enum?  The testing framework does not include test studio. 

My actual question is related to Manager.LaunchNewInstance() method. A couple of the method variation calls for a browsertype.  Since this browsertype is obsolete, is there a special cast to change it an acceptable class. 

I had some logic in a coded step in my test studio project that used if activebrowser.browsertype==browsertype.firefox, do a mouse click instead of a normal click action.  I chose to use the browserexecutiontype.ToBrowserType method
Cody
Telerik team
 answered on 16 Aug 2013
3 answers
177 views
I'm confused. I've just downloaded Telerik Testing Framework 2013 Q1, I create a test project in VS 2012, add a VsUnit test item to the project, and set up the code as per the VS Test documentation:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/getting-started/using-visual-studio-team-test.aspx

However, I then see a warning message telling me that BrowserType is obsolete. Indeed ArtOfTest.WebAii.Core.BrowserType has the following attribute:
[Obsolete("Use Telerik.TestStudio.Shared.Communication.Enums.BrowserType instead. Use this enum only for deserializing legacy results.")]
   
What am I doing wrong in that the docs tell me I might do the following, but I'd be using an obsolete enum.

Settings settings = GetSettings();
settings.DefaultBrowser = BrowserType.FireFox;
Initialize(settings, new TestContextWriteLine(this.TestContext.WriteLine));

I am not using the full Test Studio, I just want to use the Testing Framework to automate the browser for a few tests.

Thanks.

Boyan Boev
Telerik team
 answered on 16 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?