Telerik Forums
Testing Framework Forum
5 answers
237 views

Hi:

 

I need help to choose the framework. I have two scenarios:

 

1.       I am testing a product which can be customized based on the user.   For eg  the core product has 10 menus, let’s say menu1, menu2, menu3 …menu10.  User1 can have menu1, menu3, menu5 and similarly user2 can have menu2, menu1, menu6, along with some common features.  Menus are based on dynamic HTML IDs. When I record, the Telerik tool recognizes the menus based on their dynamic HTML IDs.  So, same menu option will have different HTML IDs for different users. How do I handle this issue. 
 

2.       We are using Telerik grid control. Again this control is configurable for different users i.e., it will different columns for different users.
 
Please let me know how do I choose the test framework.


Regards
-Archana

Missing User
 answered on 07 Dec 2009
2 answers
125 views
I have created bunch of UI tests with WebAii framework, and used some of those in system tests too. But now I have quite big problem: I can't get the radgrid's content any easy way to eg. datatable (or some other format, that's possible to compare with results from DB too).

Is there some methods for that in WebAii, or do I just need to get the data cell by cell (this is quite slow, I have made some implementation with this kind of action)?
Juho Saarinen
Top achievements
Rank 1
 answered on 26 Nov 2009
4 answers
182 views
I have created tests for webpage, that utilizes heavily Telerik's RadControls for ASP.NET. Problem is, that some of the controls seem quite hard to found.

One of these is RadContextMenu on RadGrid (same kind that on page: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandmenu/defaultcs.aspx?product=menu). I tried to find menu even with webUI studio, but without luck.

And as in that example, in our solution Contextmenu is "tied" to rows (eg. affects only to row it's opened).

Is there some easy way to find and interfere with that contextmenu?

Framework for Testing is WebAii 2.0Beta.
Konstantin Petkov
Telerik team
 answered on 24 Nov 2009
11 answers
240 views
Hi, I'm running a very simple test just to check installation of WebAii, but I get a FindException when automating through Internet Explorer 8. The 'funny' thing is that it works perfectly fine in FireFox?

When running the test for IE, the browser opens and it loads the specified URL, but the Find method fails with the following error message:
ArtOfTest.WebAii.Exceptions.FindException: Find Details:
- FindParam used: [Find logic: Use 'AttributesOnly' where (name=q) ]
- Start Element: [Element: '#text#:-1']

I can see the DomTree if I debug the test, so I'm lost for clues as to what has gone wrong?

I've followed the instructions in "Configure IE 7 & 8" in the WebAii Documentation, but it doesn't change anything.

The test code:
Imports ArtOfTest.WebAii.Controls.HtmlControls  
Imports NUnit.Framework  
Imports ArtOfTest.WebAii.ObjectModel  
Imports ArtOfTest.WebAii.Core  
 
<TestFixture()> _  
Public Class WebAiiTest  
 
    <Test()> _  
    Public Sub TestWebAii()  
 
        ' Initialize the settings you want used.  
        Dim mySettings As Settings = New Settings(BrowserType.InternetExplorer, "c:\log\")  
 
        ' Create the manager object  
        Dim myManager As Manager = New Manager(mySettings)  
 
        ' Start the manager  
        myManager.Start()  
 
        ' Launch a new browser instance. [This will launch an IE instance given the setting above]  
        myManager.LaunchNewBrowser()  
 
        ' Navigate to a certain web page  
        myManager.ActiveBrowser.NavigateTo("http://www.google.com")  
 
        ' Perform your automation actions.  
        Dim myInput As HtmlInputText = myManager.ActiveBrowser.Find.ByName(Of HtmlInputText)("q")  
        myInput.Text = "ArtOfTest" 
        Dim mybtn As Element = myManager.ActiveBrowser.Find.ByTagIndex("input", 3)  
        myManager.ActiveBrowser.Actions.Click(mybtn)  
 
        ' Shut-down the manager and do all clean-up  
        myManager.Dispose()  
 
    End Sub 
End Class 

I've searched the forums here, on the ArtOfTest website and the Internet, but can't seem to find anyone with the same problem as me.
Any suggestions?

Regards,
Jakob
Missing User
 answered on 06 Nov 2009
3 answers
118 views
I'm trying to automate a test of the RadDatePicker using WebAii and nUnit. I want to test the date formatting of the RadDatePicker. The following code works fine:

 

HtmlInputText dateBox = base.myManager.ActiveBrowser.Find.ById<HtmlInputText>"ctl00_ContentPlaceHolder1_DatePicker1_rdpCurrentDate_dateInput_text");  
 
 
 
dateBox.Text = "Oct 11";  
 

At this point in a manual scenario, if the user hits {ENTER} or clicks out of the RadDatePicker control the control's behind-the-scenes functionality formats the date to '10/11/2009'. But I can't figure out how to automate the triggering of this formatting functionality.

The following code clears the RadDatePicker control and opens a new browser:

 

  

 

 

ActiveBrowser.Manager.Desktop.KeyBoard.KeyPress(System.Windows.Forms.Keys.Return); 

 

 

 

Automating a click away from the RadDatePicker control incites an error message saying that there are no active browsers:

 

 

 

ActiveBrowser.Find.ById<HtmlInputText>("ctl00_ContentPlaceHolder1_ctl00_dateInput_text").MouseClick(); 

There are no active browsers. Please make sure you have atleast one browser instance launched for automation using Manager.LauncheNewBrowser().

So, I'm stumped. Can you offer any advice?

Thanks!

David

 

 

 

 

 

 

David
Top achievements
Rank 1
 answered on 28 Oct 2009
2 answers
118 views
Hi,

I just started to apply testing sequences for rad controls.
All works fine, but I have a question:

I'm loading UserControls dynamically in a panelbar/multipage environment. 

How do I access these dynamic objects?

Regards,
Peter 
Helen
Telerik team
 answered on 26 Oct 2009
2 answers
99 views
I have a Telerik editor on a page with some text in it. I have a test that needs to be able to select a particular word but haven't found a way to to that with the Telerik.WebAii.Controls.

Anyone know how to do this?
woaksie
Top achievements
Rank 2
 answered on 20 Oct 2009
3 answers
149 views
Hello Telerik,

In our product we have various input fields. When I try to automate the renaming of a file, the WebUi Test correctly records the text typed (Set 'input_text_Inputfield' text to 'renamed.png') but for the renaming to take effect the user must press 'return'.

The pressing of the return key is not recorded by the WebUi Test and I can find no Desktop Action for it. If I try to convert to code I get the following:

 {

            // Set 'input_Text_Inputfelt' text to 'renamed.png'
            HtmlInputText input_Text_Inputfelt = Pages.Dynamicweb_7__Dynamicweb_administration_0.Frame_right.input_Text_Inputfelt;
            input_Text_Inputfelt.Wait.ForExists(10000);
            input_Text_Inputfelt.Text = "renamed.png";

  }
  
Is there a way to conclude this code with a 'return', 'submit' or something?

Kind regards
Christian

Missing User
 answered on 19 Oct 2009
3 answers
117 views

Hi,
I have on page RadDatePicker

<tel:RadDatePicker ID="dpStartDate" runat="server" DateInput-ID="diStartDate">  
<Calendar ID="c1" runat="server" FocusedDate="2006-10-30" />                      
<DateInput CatalogIconImageUrl="" Description="" DisplayPromptChar="_" PromptChar=" " 
Title="" TitleIconImageUrl="" TitleUrl=""  />                      
</tel:RadDatePicker> 

I'm trying to set a date in this RadDatePickter using WebAii Free testing framework.
When I get an instance of this picker there is no method or property to set a date. All of the are only "get" properties.
How I can achieve this functionality?
Seba
Pavel
Telerik team
 answered on 16 Oct 2009
7 answers
171 views
My page contains multiple parent silverlight applications. each parent has child user controls that has also its own child usercontrols. each "grand-children" (SLUserControlLibrary) user controls is where the actual silverlight controls are found.

PAGE
    |
    + SLAPP
               |
               +SLUserControl
                                         |
                                        + SLUserControlLibrary
                                                                            |
                                                                            +SilverLightControls
                                                                            +textbox (id="txtID500")                                                                            |
                                
My question would the WebAii SilverLight Test Automation will be able to find the controls underneath all of those nesting of user controls? or in the above illustration, can I find the textbox id=txtID500 ?

Can I still do this?

 

var SilverLightApp1 = ActiveBrowser.SilverlightApps()[0];

 

 

var txtbox500 = SilverLightApp1.FindName("txtbox500");

 

 

txtbox500.User.TypeText("Sample Text", 10);

Thanks!

 

Faris
Top achievements
Rank 1
 answered on 01 Oct 2009
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?