Telerik Forums
Testing Framework Forum
3 answers
126 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
82 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
74 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
94 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
63 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
131 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
3 answers
59 views
Because of my other issue regarding TypeInitialisationException we are unable to upgrade to latest 2013 Test Framework. Is there a way of automating the backstage control without this?
Boyan Boev
Telerik team
 answered on 16 Aug 2013
2 answers
64 views
Hi, my script is having an issue using MouseClick on HtmlButton in IE9.  The script runs without clicking on the button.  I have tried several things such as Mouseclick (MouseClickType.LeftClick). I have also tried using MouseClick (MouseClickType.LeftClick, X, Y).  have also tried to use Manager.Current.ActiveBrowser.Actions.Click (Element).   The click is not taking place.
It only clicks when using the click () method, however, the browser hangs.
After the click is performed an IEdialog suppose to display.

Here is some code snippet:
public HtmlButton AddButton { get {return Get<HtmlButton>("name=addreport");}}

Script contains:
Page.AddButton.MouseClick();   // where page is the current active browser.

Thanks in advance.
Mario
Telerik team
 answered on 15 Aug 2013
1 answer
79 views
Hi! I am looking for a testing framework for testing WPF win VS2010. So I installed TTF and open the sample project Quickstarts_NUnit_CS. But there does not seem to be any samples for WPF. Right? Anyone got example of how to make telerik framework run test a wpf app?

(Also, I tried installing TTF from Nuget, but then the download file was not found)

Velin Koychev
Telerik team
 answered on 09 Aug 2013
3 answers
102 views
Hi guys,

I faced a pretty specific problem.
As I know in order to access nested iFrames in Telerik Testing Framework I have to use ActiveBrowser.Frames collection.
The problem is that this collection is filled different way for IE and other browsers.

For Chrome and Firefox the frames collection is filled in the order frames are rendered in DOM. E.g. last added frame is last in the list.
So that frames have static indexes.

In IE the frames in collection are listed in the order of their appearance in the DOM. When the new iFrames are added before older frames their indexes are shifted.

It looks like this thing cause tricky issue when kind of collision of similar frames appears in complex web application. Found elements interactions are performed on active (with bigger z-index) frame instead of their original frame. I was not able to reproduce my issue on any public page but below is code that demonstrate the difference in framework behavior in IE and other browsers. It passes in Chrome and Firefox while fails in IE.

var radEditor1 = ActiveBrowser.Frames.ById("~RadEditor");
Assert.That(ActiveBrowser.Frames.Count, Is.EqualTo(1));
var openButton = ActiveBrowser.Find.jQuery().attributes("title=Open Advanced Editor").first<HtmlAnchor>();
openButton.Click();
ActiveBrowser.RefreshDomTree();
var radEditor2 = ActiveBrowser.Frames.ById("~RadEditor");
Assert.That(radEditor1.FrameInfo.Index, Is.EqualTo(radEditor2.FrameInfo.Index));

Currently I managed to work around by searching for frame by its UniqueId every time I need to interact with it (if there is more elegant way to "refresh" the frame I would appreciate your advice). But I hope that it can be fixed in the framework so that it works same way in all browsers and after coming release we do not need to write additional logic specially for IE.

Thank you in advance.
Cody
Telerik team
 answered on 09 Aug 2013
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?