Telerik Forums
Testing Framework Forum
2 answers
108 views
Hey, telerik

Our web UI  includes quite a few of Kendo UI widgets, such as grid, calendar. So we are currently using telerik testing framework to automate UI testing in C# with NUnit. 

However, I got null grid object with the following line of code

 KendoGrid grid = myManager.ActiveBrowser.Find.ById<KendoGrid>("grid");

And in web :

<div id="grid" class="k-grid k-widget" data-role="grid" style="">
<div class="k-grid-header" style="padding-right: 18px;">
<div class="k-grid-header-wrap">
<table role="grid">
</div>
</div>
<div class="k-grid-content" data-role="virtualscrollable" style="width: auto; overflow: hidden; padding-right: 18px;">
<div class="k-virtual-scrollable-wrap">
<table role="grid">
<colgroup>
<tbody>
<tr class="" role="row" data-uid="6d286177-6c1e-48c0-b441-32c2e5021568">
<tr class="k-alt" role="row" data-uid="390c1c37-29cf-4540-8a4e-47596ac03077">
<tr role="row" data-uid="a9f0717c-2a82-486c-8aae-ff95ecf08b05" class="">
<tr class="k-alt" role="row" data-uid="9eaabfaa-355f-4322-9168-4c1e9183fbd8">
<tr role="row" data-uid="6ffc4156-c51d-406a-afb0-d2208c0cff1c" class="">
<tr class="k-alt" role="row" data-uid="80762974-ca42-4f00-b15a-10e5f646e28c">
<tr role="row" data-uid="2d6bdb48-dbb4-4b15-a079-8bbe28714d0e" class="">
<tr class="k-alt" role="row" data-uid="5cbdc03a-6100-491e-8df7-5bb72fc39066">
<tr role="row" data-uid="2a0fa3b8-cf2c-484c-9506-25adff86ea34" class="">
<tr class="k-alt" role="row" data-uid="fd59824b-0797-4e46-a528-4609b4504afa">
<tr role="row" data-uid="bbd92f33-d609-4a00-8823-ec2193e77cd1" class="">
<tr class="k-alt" role="row" data-uid="7aaa1d32-83ad-4bfa-a37e-e33c40baf013">
<tr role="row" data-uid="ca4c5951-46b3-4e6d-b9e5-789935e694ea" class="">
<tr class="k-alt" role="row" data-uid="7527b911-4aa4-4b24-92aa-617bd6069036">
<tr role="row" data-uid="16f4633d-fd4f-4652-a30c-72b8783ad660" class="">
</tbody>
</table>
</div>
<div class="k-scrollbar k-scrollbar-vertical" style="width: 18px;">
</div>
</div>

Could you let me know where I did wrong?

Thanks,
Boyan Boev
Telerik team
 answered on 17 Jul 2013
1 answer
120 views
Does any one have implemented cross browser testing in hand coded Coded UI test?  If so can you please send me the code sample.
Mario
Telerik team
 answered on 16 Jul 2013
1 answer
122 views
Will the automation framework work using Chrome Canary? I've tried BrowserType.Chrome, but it's not picking it up.
Cody
Telerik team
 answered on 16 Jul 2013
1 answer
153 views
Hi telerik team,
is it possible to capture the message/text from alert/message box and compare it with excel sheet column text data?
I want to compare the alert/message box text in coded step and then compare that alert text with the excel sheet column text to execute the testcase.

Thanks,
Priyanka
Boyan Boev
Telerik team
 answered on 16 Jul 2013
5 answers
99 views
I am still relatively new to working with the Telerik Testing Framework so I am hoping there is an easy fix or something to account for to get around this issue. First I will describe my environment:

FireFox 22.0 (with Telerik Testing Framework - Firefox Http Client 2012.2.1205.0 add on)
MSTest Unit Test Framework (Visual Studio 2012)
Telerik Testing Framework 2012.2 1420
OS Windows 7

I have 2 TestMethods that run fine in IE9 but not in Firefox 22. The two scripts log a user into the application and then perform checks or actions on menu items. The menu is a RadMenu so I am using the RadMenu wrapper class to interact with the menu in the browsers. The script will successfully perform MouseHover() actions on the menu prior to logging a user in. But after the user logs in, then when the script performs a MouseHover() on RadMenuItems the mouse icon moves to the menu item on the page but none of the expected hover over actions happen in the browser (the menu item does not highlight, the child menu does not open/display). It puzzles me that all seems to work prior to logging a user in but not after logging a user in especially when you can visually see the mouse icon move to the desired menu item.

Any help would be greatly appreciated. Please let me know if my explanation is not clear or if you would like more details.

Thanks!

Boyan Boev
Telerik team
 answered on 11 Jul 2013
3 answers
123 views
I have to run a test in which i use a xml file which gives me the information about the 
expected data on the page.
At the moment i find the xml document via an fixed path name.

This is an example in code:
  string xmlFile =@"C:\Users\\Documents\Test Studio Projects\myproject\mydata.xml";
            Assert.IsTrue(File.Exists(xmlFile), String.Format ("Configuration file {0} not found", xmlFile));
            using (StreamReader xmlReader = new StreamReader(xmlFile, Encoding.GetEncoding("iso-8859-1"))) 

This works fine on my local development environment, but the test has to be executed on an external scheduling server.
How can i include this xml in the test project, so that it is correctly included on the scheduling server?
Thanks for help?
Michael
Ivaylo
Telerik team
 answered on 09 Jul 2013
1 answer
355 views

I am using ‘Telerik Test Framework’(NUnit Template) with VSTS 2012.

Please help me how to do parameterization using Excel in ‘NUnit’ template. If you provide me step by step guide or Video will be great help.


My Sample Code look like this:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using ArtOfTest.WebAii.Controls.HtmlControls;

using ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts;

using ArtOfTest.WebAii.Core;

using ArtOfTest.WebAii.ObjectModel;

using ArtOfTest.WebAii.TestAttributes;

using ArtOfTest.WebAii.TestTemplates;

using NUnit.Framework;

using Core = NUnit.Core;

namespace UnitTestProject1{

[TestFixture]

Public class TelerikNUnitTest1 : BaseTest

{

[Test]

Public void testmethod1()

{

Manager.LaunchNewBrowser(BrowserType.InternetExplorer);

 ActiveBrowser.NavigateTo("http://www.Anaqal.com");

 Find.ByXPath<HtmlInputText>("//input[@type='text' and contains(@name, 'EmailAddressTextBox')]").Text = "admin@ana.com";

Find.ById<HtmlInputPassword>("ctl00_ctl00_PageContentPlaceHolder_PageContentPlaceHolder_PasswordTextBox").Text = "Admin1";

}

}

}

I wants to parameterized ‘Email Address’ and ‘Password’ field with multiple data

My Excel sheet contains data like this

EmailAddress Password
Test1@ana.com Pwd123
Test2@ana.com pwd456



Boyan Boev
Telerik team
 answered on 01 Jul 2013
1 answer
113 views
I am using VSTS 2012 with telerik test framework (NUnit Template), how can i report the result in better way.
Is there any other open source tools for reporting so that I can easily integrate with VSTS and Telerik framework.

Please help me how can I get test result in better way using VSTS & Telerik Test Framework.

.










































































































































































Boyan Boev
Telerik team
 answered on 28 Jun 2013
23 answers
493 views
Hi,
           I am testing a web application and there comes a point, where i have to click a icon, which navigates me to a popup, at this point, i have 2 popups open, 1 which is a regular HTML popup with blank content (plain white screen is displayed), and another popup which is a modal popup.

Telerik connects itself with the initial home browser and records all actions on it, upon navigation it also connects to the new HTML popup (the teleric toolbar is displayed on top) , but with regards to the modal popup, Telerik is unable to connect to and no action on this modal popup is recorded.

Unfortunately due to company policy im unable to provide you with a screen shot or video.

Any advice on this would be much appreciated.

Thanks!

Boyan Boev
Telerik team
 answered on 28 Jun 2013
1 answer
111 views
I have a problem running my NUnit tests on a TeamCity machine. See screenshot: http://screencast.com/t/4Kt6Imc0M  Exactly the same code sometimes works sometimes doesn't. I attached a log. Looks like it is dying in WaitForNewBrowserConnect method.
Byron
Telerik team
 answered on 27 Jun 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?