Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > General Discussions > Mercury QTP
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Mercury QTP

Feed from this thread
  • Michael Keller avatar

    Posted on Apr 13, 2006 (permalink)

    I am in the process of testing an application developed with Telerik controls using Mercury QTP as a platform.  Other control packages , such as Infragistics provide support for this, but I am unable to find anything that will help QTP recognize Telerik controls properly.  Does anyone know of any package that does this, or does Telerik have something for this?

    Thanks in Advance,


    Mike

  • Paul Paul admin's avatar

    Posted on Apr 14, 2006 (permalink)

    Hi Michael,

    We had some success automating a web site via our client-side API with a browser automation tool that allowed access to the HTML DOM. You might want to try one of those. Some free ones are Selenium and Watir.

    Our controls offer rich client-side functionality, so you will most probably have to get your hands dirty and write some JavaScript. We have had great success using Selenium -- we automate our controls via their publicly-exposed API on the client and run those tests in various browsers.


    Regards,
    Paul
    the telerik team

  • Posted on Jan 9, 2007 (permalink)

    Hi,

    Is there any plug Ins to use inorder to capture the teleric controls in QTP. Any way i need to do automation using QTP. Kindly let me know the choices.

    Senthil

  • Helen Helen admin's avatar

    Posted on Jan 9, 2007 (permalink)

    Hi, Senthil.

    Unfortunately we don't provide support for Mercury QTP for the time present although we tried to contact them few months ago. I suspect we won't provide such support in near future, but you can ask them as well. If they are interested in cooperation, they can always contact us and we will be glad to check what could be done.

    Regards,
    Helen
    the telerik team

  • Posted on Jan 10, 2007 (permalink)

    Hi helen,
    Kindly let me know the functional/regression testing tools that supports Teletik controls. How about "Compuware TestPartner"?
    Thanks,
    Senthil

  • Konstantin Petkov Konstantin Petkov admin's avatar

    Posted on Jan 10, 2007 (permalink)

    Hello Senthil,

    No, we put a lot of efforts on using Selenium for the time being building a huge amount of tests to cover the functionality of r.a.d.controls suite. You can give it a try and let us know if you have other questions.

    Sincerely yours,
    Konstantin Petkov
    the telerik team

  • Posted on Jan 24, 2007 (permalink)

    Telerik team,
    We tried with "selenium-ide, ver 0.8.6" tool to automate testing of an application developed using "Telerik" and DNN controls.
    "Selenium" tool fails to identify/capture the controls listed below.
    DNN SOLPART Menus
    Telerik r.a.d panel bar 
    Telerik r.a.d Combobox.
    But it captures  Telerik r.a.d. tab controls and Grids.
    Kindly let me know the possible ways to capture/test the controls listed above?


  • Paul Paul admin's avatar

    Posted on Jan 24, 2007 (permalink)

    Hi Senthil,

    Although we use Selenium internally to test our controls, we do not provide customer support in such cases. Therefore, I'm afraid we could not be of much help on the matter.

    Regards,
    Paul
    the telerik team

  • AlexF avatar

    Posted on Feb 28, 2007 (permalink)

    You can also try SWExploreAutomation SWEA from http://webiussoft.com. SWEA was specially designed for DHTML and AJAX application testing.

  • edf avatar

    Posted on Apr 3, 2007 (permalink)

    Telerik team,

    you said: No, we put a lot of efforts on using Selenium for the time being building a huge amount of tests to cover the functionality of r.a.d.controls suite. You can give it a try and let us know if you have other questions.

    have you been able to automate a right-click in order to popup a context menu in the RadTreeview? if so, a hint would be appreciated....


  • AlexF avatar

    Posted on Apr 3, 2007 (permalink)

    SWEA can automate  a right-click in the tree view control.  SWEA simulates real mouse event (message) to popup the DHTML context menu.

    explorerManager.Navigate("http://www.telerik.com/demos/aspnet/Controls/Examples/Integration/Ajax/FileBrowse" +
                        "r/DefaultCS.aspx?product=controls");
    scene = explorerManager["Scene_0"];
    scene.WaitForActive(30000);
    scene.HtmlContent("RadTreeView1_t0_t14").Invoke("Method_RMouseClick", "");
    scene = explorerManager["Scene_0"];
    scene.WaitForActive(30000);
    scene.HtmlAnchor("treeContextMenu_m1").Click();
    scene = explorerManager["Scene_0"];
    scene.WaitForActive(30000);

  • Kevin Master avatar

    Posted on Apr 3, 2007 (permalink)

    I've found sample Selenim tests for treeView and comboBox in this forum thread, they might provide a good starting point

    http://www.telerik.com/community/forums/thread/b311D-kkcdt.aspx

  • Helen Helen admin's avatar

    Posted on Apr 4, 2007 (permalink)

    Hi Ed,

    We have been able to automate the right-click functionality of r.a.d.treeview . Please review the following test:

                    <tr> 
                        <td>open</td> 
                        <td>../Treeview/Examples/Functionality/ContextMenu/DefaultCS.aspx</td> 
                        <td></td>  
                    </tr> 
                    <tr> 
                        <td>getEval</td> 
                        <td>window.tree = frames['myiframe'].window.RadTree1;</td> 
                        <td></td>  
                    </tr> 
                    <tr> 
                        <td>assertElementNotPresent</td> 
                        <td>//div[@id="rtvcmRadTree1Mail_clone"]</td> 
                        <td></td>  
                    </tr> 
                    <tr> 
                        <td>fireEvent</td> 
                        <td>//span[text()="Deleted Items (6)"]</td> 
                        <td>mouseover</td> 
                    </tr> 
                    <tr> 
                        <td>fireEvent</td> 
                        <td>//span[text()="Deleted Items (6)"]</td> 
                        <td>contextmenu</td> 
                    </tr> 
                    <tr> 
                        <td>waitForVisible</td> 
                        <td>//div[@id="rtvcmRadTree1Mail_clone"]</td> 
                        <td></td>  
                    </tr> 

    We will try the SWEA Automation tool, but at this moment we prefer using Selenium for our tests.

    Best regards,
    Helen
    the telerik team

    Instantly find answers to your questions at the new telerik Support Center

  • edf avatar

    Posted on Apr 4, 2007 (permalink)

    Thank you, that is very helpful. I've got the right-click event firing now (although the selenium IDE doesn't seem to work with it - does this test only work with IE?)

    i'm using the context menu to generate an inline node text edit, among other things. the node goes into edit mode, an 'input' control is created, but when i try to deploy 'type' on the input, so:

    <tr>
        <td>type</td>
        <td>//input[@value="old value"]</td>
        <td>something else</td>
    </tr>

    it fails, bringing down IE in the process. i imagine you tested inline editing? how did you do it?

    thanks

    e.

  • Helen Helen admin's avatar

    Posted on Apr 4, 2007 (permalink)

    Hello Ed,

    Unfortunately the test for the context menu works in IE only. We have not found a solution under FireFox for now and will continue investigation of the problem.

    I am providing the code blocks from our test for node text editing:

    <tr> 
        <td>open</td> 
        <td>../Treeview/Examples/Functionality/NodeEditing/DefaultCS.aspx</td> 
        <td></td>  
    </tr> 
    <tr> 
        <td>getEval</td> 
        <td>window.tree = frames['myiframe'].window.RadTree1;</td> 
        <td></td>  
    </tr> 
    <tr> 
        <td>waitForPageToLoad</td> 
        <td>2000</td> 
        <td></td>  
    </tr> 
    <tr> 
        <td>getEval</td> 
        <td>frames['myiframe'].window.RadTree1.AllNodes[2].StartEdit()</td> 
        <td></td>  
    </tr> 
    <tr> 
        <td>type</td> 
        <td>//input[@class="TreeNodeEdit"]</td> 
        <td>testing</td> 
    </tr> 
    <tr> 
        <td>waitForPageToLoad</td> 
        <td>2000</td> 
        <td></td>  
    </tr> 
    <tr> 
        <td>waitForElementPresent</td> 
        <td>//span[text()="testing"]</td> 
        <td></td>  
    </tr> 
    <tr> 
        <td>assertExpression</td> 
        <td>javascript{this.page().getCurrentWindow()["Radar"].AllNodes[2].Text}</td> 
        <td>testing</td> 
    </tr> 
     
    I hope this is helpful.

    Kind regards,
    Helen
    the telerik team

    Instantly find answers to your questions at the new telerik Support Center

  • edf avatar

    Posted on Apr 4, 2007 (permalink)

    thank you, but running against my local copy of your examples, the test code you provide fails on the line

    <tr> 
        <td>type</td> 
        <td>//input[@class="TreeNodeEdit"]</td> 
        <td>testing</td> 
    </tr>

    with the error

    Element //input[@class="TreeNodeEdit"] not found

    what version of IE do you test against? I have 6.0.2900.2180 here.

  • edf avatar

    Posted on Apr 4, 2007 (permalink)

    scratch that... it does work. just not every time, and apparently never when you step through the Selenium tests. i love web development.

  • Posted on Apr 4, 2007 (permalink)

    For this type of intermittent problems, sometimes setting a delay between each step and increasing the delay time between the steps resolves the problem... but still, yeah, web development...

  • edf avatar

    Posted on Apr 11, 2007 (permalink)

    Telerik team,

    below is a testing fragment. it intermittently creates a javascript error on the highlighted lines - what appears to be happening is the expected item on the context menu is clicked, but the context menu is not disappearing in the way you would expect, which understandably breaks the scripting environment. is this something you've seen with the TreeView?

    Ed

    <tr>
        <td>getEval</td>
        <td>window.tree = window.innerTree;</td>
        <td></td>
    </tr>
    <tr>
        <td>click</td>
        <td>ctl00_MainContent_ctl00_innerTree_t0_t0c</td>
        <td></td>
    </tr>
    <!--click on node to be added to -->
    <tr>
        <td>click</td>
        <td>//span[text()="Business Area 2"]</td>
        <td></td>
    </tr>
    <tr>
        <td>pause</td>
        <td>1000</td>
        <td></td>
    </tr>
    <tr>
        <td>fireEvent</td>
        <td>//span[text()="Business Area 2"]</td>
        <td>mouseover</td>
    </tr>
    <tr>
        <td>pause</td>
        <td>1000</td>
        <td></td>
    </tr>
    <tr>
        <td>fireEvent</td>
        <td>//span[text()="Business Area 2"]</td>
        <td>contextmenu</td>
    </tr>
    <tr>
        <td>pause</td>
        <td>1000</td>
        <td></td>
    </tr>
    <tr>
        <td>waitForVisible</td>
        <td>//div[@id="rtvcmctl00_MainContent_ctl00_innerTreestandard_clone"]</td>
        <td></td>
    </tr>
    <!--mouseover on context menu item-->
    <tr>
        <td>fireEvent</td>
        <td>//div[@id="rtvcmctl00_MainContent_ctl00_innerTreestandard_clone"]/table/tbody/tr/td[text()="Add Area"]</td>
        <td>mouseover</td>
    </tr>

    <tr>
        <td>pause</td>
        <td>1000</td>
        <td></td>
    </tr>
    <tr>
        <td>click</td>
        <td>//div[@id="rtvcmctl00_MainContent_ctl00_innerTreestandard_clone"]/table/tbody/tr/td[text()="Add Area"]</td>
        <td></td>
    </tr>
    <tr>
        <td>pause</td>
        <td>1000</td>
        <td></td>
    </tr>

    <!--should be a new item-->
    <tr>
        <td>waitForTextPresent</td>
        <td>New Area</td>
        <td></td>
    </tr>


    <!--start delete-->

    <tr>
        <td>pause</td>
        <td>1000</td>
        <td></td>
    </tr>
    <tr>
        <td>fireEvent</td>
        <td>//span[text()="New Area"]</td>
        <td>mouseover</td>
    </tr>
    <tr>
        <td>pause</td>
        <td>1000</td>
        <td></td>
    </tr>
    <tr>
        <td>fireEvent</td>
        <td>//span[text()="New Area"]</td>
        <td>contextmenu</td>
    </tr>

    <tr>
        <td>waitForVisible</td>
        <td>//div[@id="rtvcmctl00_MainContent_ctl00_innerTreestandard_clone"]/table/tbody/tr/td[text()="Delete Area"]</td>
        <td></td>
    </tr>
    <tr>
        <td>pause</td>
        <td>1000</td>
        <td></td>
    </tr>
    <!--mouseover on context menu item-->
    <tr>
        <td>fireEvent</td>
        <td>//div[@id="rtvcmctl00_MainContent_ctl00_innerTreestandard_clone"]/table/tbody/tr/td[text()="Delete Area"]</td>
        <td>mouseover</td>
    </tr>
    <tr>
        <td>pause</td>
        <td>1000</td>
        <td></td>
    </tr>
    <tr>
        <td>click</td>
        <td>//div[@id="rtvcmctl00_MainContent_ctl00_innerTreestandard_clone"]/table/tbody/tr/td[text()="Delete Area"]</td>
        <td></td>
    </tr>
    <tr>
        <td>waitForTextNotPresent</td>
        <td>New Area</td>
        <td></td>
    </tr>

    <tr>
        <td>click</td>
        <td>//span[text()="Investment area 1"]</td>
        <td></td>
    </tr>
    <tr>
        <td>pause</td>
        <td>1000</td>
        <td></td>
    </tr>

    <!--end delete-->
    <!--start rename-->
    <tr>
        <td>fireEvent</td>
        <td>//div[@id="ctl00_MainContent_ctl00_innerTree_t0_t1"]/span[text()="Business Area 2"]</td>
        <td>mouseover</td>
    </tr>
    <tr>
        <td>click</td>
        <td>//div[@id="ctl00_MainContent_ctl00_innerTree_t0_t1"]/span[text()="Business Area 2"]</td>
        <td></td>
    </tr>
    <tr>
        <td>pause</td>
        <td>1000</td>
        <td></td>
    </tr>
    <tr>
        <td>click</td>
        <td>//div[@id="ctl00_MainContent_ctl00_innerTree_t0_t1"]/span[text()="Business Area 2"]</td>
        <td></td>
    </tr>
    <tr>
        <td>pause</td>
        <td>1000</td>
        <td></td>
    </tr>
    <tr>
        <td>type</td>
        <td>//div[@id="ctl00_MainContent_ctl00_innerTree_t0_t1"]/input[@value="Business Area 2"]</td>
        <td>renamed area</td>
    </tr>
    <tr>
        <td>click</td>
        <td>//span[text()="Investment area 1"]</td>
        <td></td>
    </tr>
    <tr>
        <td>waitForElementPresent</td>
        <td>//div[@id="ctl00_MainContent_ctl00_innerTree_t0_t1"]/span[text()="renamed area"]</td>
        <td></td>
    </tr>
    <tr>
        <td>click</td>
        <td>//span[text()="Investment"]</td>
        <td></td>
    </tr>
    <tr>
        <td>pause</td>
        <td>1000</td>
        <td></td>
    </tr>
    <!--end rename-->
    <!--start rename back-->
    <tr>
        <td>fireEvent</td>
        <td>//div[@id="ctl00_MainContent_ctl00_innerTree_t0_t1"]/span[text()="renamed area"]</td>
        <td>mouseover</td>
    </tr>
    <tr>
        <td>pause</td>    
        <td>1000</td>
        <td></td>
    </tr>
    <tr>
        <td>click</td>
        <td>//div[@id="ctl00_MainContent_ctl00_innerTree_t0_t1"]/span[text()="renamed area"]</td>
        <td></td>
    </tr>
    <tr>
        <td>pause</td>
        <td>1000</td>
        <td></td>
    </tr>
    <tr>
        <td>click</td>
        <td>//div[@id="ctl00_MainContent_ctl00_innerTree_t0_t1"]/span[text()="renamed area"]</td>
        <td></td>
    </tr>
    <tr>
        <td>pause</td>
        <td>1000</td>
        <td></td>
    </tr>
    <tr>
        <td>type</td>
        <td>//div[@id="ctl00_MainContent_ctl00_innerTree_t0_t1"]/input[@value="renamed area"]</td>
        <td>Business Area 2</td>
    </tr>
    <tr>
        <td>click</td>
        <td>//span[text()="Investment"]</td>
        <td></td>
    </tr>
    <tr>
        <td>waitForElementPresent</td>
        <td>//div[@id="ctl00_MainContent_ctl00_innerTree_t0_t1"]/span[text()="Business Area 2"]</td>
        <td></td>
    </tr>
    <!--end-->

  • Helen Helen admin's avatar

    Posted on Apr 11, 2007 (permalink)

    Hello Ed,

    Unfortunately can not say for certain where the problem might be. Note that we do not provide Selenium testing support option.
    Please see the test below which works normally on our side (under IE only):

    TestTreeviewQSF
    open ../Treeview/Examples/Functionality/ContextMenu/DefaultCS.aspx
    getEval window.tree = frames['myiframe'].window.RadTree1;
    assertElementNotPresent //div[@id="rtvcmRadTree1Mail_clone"]
    fireEvent //span[text()="Deleted Items (6)"] mouseover
    fireEvent //span[text()="Deleted Items (6)"] contextmenu
    waitForVisible //div[@id="rtvcmRadTree1Mail_clone"]
    click //td[text()="New folder"]
    waitForText message You clicked the 'New folder' context item for node 'Deleted Items (6)'

    Regards,
    Helen
    the telerik team

    Instantly find answers to your questions at the new telerik Support Center

  • edf avatar

    Posted on Apr 11, 2007 (permalink)

    Thanks for that, and I appreciate that Selenium tests are not really in your remit. Nevertheless, can you tell me what purpose the 'getEval' line serves in your test? i've already discovered that the test doesn't work without it or something similar, although it doesn't seem to matter whether the target is RadTree1, or innerTree, or whatever.

    is there a javascript function i can call that effectively duplicates the click on the context menu item? if I could do that directly I wouldn't need to simulate the right-click.

    thanks again,

    e.

  • Helen Helen admin's avatar

    Posted on Apr 12, 2007 (permalink)

    Hi,

    This particular test works without the line with "getEval" command. We are sorry for the confusion it might caused you.

    We use this command in variety of other tests to save the reference to the global treeview object with id="RadTree1".
    Afterwards, it is quite easy to apply client-side methods and properties to this object like the following:

    TestTreeviewQSF

    open

    ../Treeview/Examples/Functionality/CustomAttributes/DefaultCS.aspx

    getEval

    window.tree = frames['myiframe'].window.RadTree1;

    assertExpression

    javascript{tree.AllNodes[0].Attributes['CustomImage']}

    8.gif

    click

    //img[@id="RadTree1_t1c"]


    Otherwise, there is no javascript function to duplicate the click on the context menu item.

    Best regards,
    Helen,
    the telerik team


    Instantly find answers to your questions at the new telerik Support Center

  • Aditi avatar

    Posted on Oct 30, 2007 (permalink)

    hi all

    I want to learn QTP.Kindly guide me from should i start.
    From where can I get a trail version of QTP ?

  • Nishant avatar

    Posted on Nov 8, 2007 (permalink)

    hi !
    You can download the same from QTP official SIte.
    This will be a trial version for 14 days ! U have inbuilt help to guide how to start working on QTP.

    Thanks
    Nishant Verma

  • Bob avatar

    Posted on Jun 12, 2008 (permalink)

    Actually, there is a way to recognize Telerik controls with Testpartner, but it requires some coding (it's not built-in).

    Example: Recognizing values in a Telerik dropdown
    The code below displays all of the values from a Telerik dropdown in a Msgbox.

    Option Explicit  
     
    Sub Main()  
     
    Dim div As THTMLDiv  
    Dim win As TWindow  
    Dim obj As Object  
    Dim str As String  
    Dim m_browser As THTMLBrowser  
     
     
    Set win = Window("Application=IEXPLORE.EXE")  
    win.Attach  
     
        Set m_browser = HTMLBrowser("Caption=Personal Information'")  
        m_browser.Attach  
     
    For Each obj In m_browser.Children  
        If TypeOf obj Is THTMLDiv Then  
            Set div = obj 
            If div.ID = "cboName_DropDown" Then  
                strstr = str + div.InnerText  
            End If  
        End If  
          
    Next obj  
     
    MsgBox str  
              
     
    End Sub  
     

  • Arun avatar

    Posted on Jul 17, 2008 (permalink)

    Hi Telerik team,

    I work with HP Software as a Technical Consultant. Would it be possible to look at what it would take to develop support for QTP on telerik controls?

    I could sync you up with the concerned people for any info you would require.
    Appreciate if you could get in touch with details.

    Regards,
    Arun John (mailto:arun.john@hp.com)
    +91 988 024 3650
    HP Software, India.

  • Ivo Ivo admin's avatar

    Posted on Jul 18, 2008 (permalink)

    Hello Arun,

    I have sent you an email with further details about our experience with Mercury QTP. We will be happy to cooperate with you for QTP and Telerik RadControls interoperability.

    Thank you for your offer to assist. QTP support will be of good benefit to Telerik community.

    Kind regards,
    Ivo
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • Scott Genevish avatar

    Posted on Aug 1, 2008 (permalink)

    Please keep us informed of the progress with allowing interoperability between QTP and the Telerik controls.  This would be very helpful in my current automation...

    Thanks,

    -Scott Genevish

  • Oleg avatar

    Posted on Oct 15, 2008 (permalink)

    Hello,

    I was wondering if there has been any progress on establishing interoperability between Telerik and QTP?

    QTP is one of the leading test-automation tools, and majority of our customers use it. An existence of an add-in to support RadControls would make our lives so much easier.

    Thank you,

  • Ivo Ivo admin's avatar

    Posted on Oct 17, 2008 (permalink)

    Hello Oleg,

    We are working on extending the testing capabilities we provide externally to our customers and you will be able to see the new stuff in the coming months. It is really exciting -- stay tuned for more details early next year!

    Kind regards,
    Ivo
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  • Amar avatar

    Posted on Dec 30, 2008 (permalink)

    Hello,

    I was curious to know about the progress on establishing interoperability between Telerik and QTP?

    Thank you,
    Amar

  • Ivo Ivo admin's avatar

    Posted on Jan 6, 2009 (permalink)

    Hello Amar,

    We will be providing a fully automated testing solution with wrappers for RadControls for ASP.NET AJAX. This is all I can share for now -- we will officially announce this in the coming weeks. Please stay tuned for more details!

    Regards,
    Ivo
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  • shankar avatar

    Posted on Jan 17, 2009 (permalink)

    I am usinbg QTP in apps . me too eager to hear from you about QTP rad control interoperability

    Thanks

  • Steve avatar

    Posted on Jan 23, 2009 (permalink)

    Hi all,

    I've had success using QTP with a WinForms application containing telerik rad controls.  By using the .NET plugin for QTP, I was able to access the API methods of the application and use that information to automate the controls.  I've been able to access individual elements for RadGridView, RadTreeView, and custom RadControl objects.  So with a little work, it is certainly possible to use QTP for test automation for apps with rad controls.

    Regards,
    Steve

  • Scott Genevish avatar

    Posted on Jan 23, 2009 (permalink)

    Can you use QTP with the masked text box?  That's the one that fails for me.

    -Scott

  • Steve avatar

    Posted on Jan 26, 2009 (permalink)

    Scott,

    I haven't worked with the RadMaskedTextBox object, but try using the .NET object spy tool that's installed with the .NET plugin for QTP to see if you can find the properties you want to recognize there.  For example, if there is a text property for RadMaskedTextBox then the QTP command to retrieve the text would be something like:

    myText = SwfObject("radMaskedTextBox1").Object.text

    The text property might be nested deeper in the object's hierarchy so make sure you use the .NET object spy tool to explore the properties thoroughly.  For example, for a RadGridView object, to get the title for a column, I had to do something like:

    myTitle = SwfWindow("Bookstore Kiosk Demo").SwfObject("radGridView1").Object.CurrentCell.Column.UniqueName

    Regards,
    Steve

  • Christopher avatar

    Posted on Mar 3, 2009 (permalink)

    Telerik,
       Per your message posted 2 months ago, what is the status of the automated wrapper solution?

  • Sebastian Sebastian admin's avatar

    Posted on Mar 3, 2009 (permalink)

    Hi guys,

    I am happy to inform you that we already announced the new WebUI Test Studio we will offer with the Q1 2009 release of our products. It is currently in Beta version and you can gather more information about it from this section on our site:

    http://www.telerik.com/products/web-ui-test-studio.aspx

    We will also appreciate any feedback you can share with us.

    Best regards,
    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

  • Noor avatar

    Posted on Apr 1, 2009 (permalink)

    Hi this is Noor,
    I am facing the following problem, please help me out if anybody knows the solution.
    When i opened  Quick Test Professional application in my machine, the QTP launches and Lincense checking will happen.
    After License checking is successful, it will open QTP Add-In selection window.
    I have selected required Add ins and click on OK.
    Then QTP application launches and then immediately disappears and it is not displayed.In processes also nothing is running related to QTP.
    This is happening every time when i attempted to open QTP.
    Please give ur suggestions for this issue.

  • Rakesh avatar

    Posted on May 26, 2009 (permalink)

    Could anyone here please help me to identify the Telerik controls for automation using QTP 9.2.

  • Ivo Ivo admin's avatar

    Posted on May 26, 2009 (permalink)

    Hi Rakesh,

    We have not played much with QTP. We are fully involved with the new web testing tool we have released in partnership with ArtOfTest. It has full support for RadControls as well as plenty of other nice features:
    http://www.telerik.com/products/web-ui-test-studio.aspx

    Have you tried it yet?

    Regards,
    Ivo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

  • Christopher avatar

    Posted on May 26, 2009 (permalink)

    Rakesh,
       I've not had a chance to take a look at Teleriks WebUI but I know the ArtOfTest WebAII, although very cool, requires a better grasp on programming than most QA personnel have. 

    For QTP I recommend downloading the IE developer toolbar from Microsoft to help you identify the controls.
    http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en

    You need to spend some time looking over how they formed their controls and create your objects accordingly.  Here is an example of working with their Text Area fields (at least with how they are implemented with our application).

    ARCHER_APP = Browser("Browser").Page("Application")    'Reference Global Repository objects
    Public Function SetTextArea_5 (FieldId, sIndex, setvalue, flName)
      Dim objFrame, objElement, objMain

     Set objFrame = Description.Create()
       objFrame("html tag").Value = "IFRAME"
       objFrame("html id").Value = FieldID & "_contentIframe"
       objFrame("index").Value = sIndex
     Set objElement = Description.Create()
       objElement("html tag").Value = "BODY"
       objElement("index").Value = 0
     Set objMain = ARCHER_APP.Frame(objFrame).WebElement(objElement)
        If objMain.Exist(1) Then
      On Error Resume Next
      Err.Clear
       objMain.Object.setAttribute "innerHTML", setvalue
      If Err.Number = 0 Then
       SetTextArea = True
      Else
       fDebug QC_DEBUG, flName, "(SetTextArea) - Unexpected Error setting attribute."
       SetTextArea = False
      End If
      Err.Clear   ' Clear the error.
      On Error Goto 0 'Turn OFF Manual Error Handling
      Set objFrame = NOTHING
      Set objElement = NOTHING
     End If
    End Function

    Using the IE Developer Toolbar I was able to locate the fact that the text area control was located within the IFrame and I could identify the IFrame uniquely and therefore easily access other objects within the IFrame...

    So the 'FieldID' parameter that would be required to interact with the text area control when provided when replying to contents for this forum you would use: ctl00_PageContent_usercontrols_public_forums_replyforumthread_ascx1_editorReply
    Of course this fieldId is a little nicer and more understandable in our environment - at least to me ;)
    Index is always zero (I use it as a parameter in case I there is ever a chance I can use it (and this function depracated our pre-telerik control so needed the same parameters.)

    Hope this helps.  I am having a lot more success with using QTP and Telerik controls.  There are occasions however that since most of the interaction gets pretty deep into the html (dom) QTP can sometimes have some performance problems, as the telerik controls are pretty heavy in html and QTP has to cypher through it.  Hope this helps!

  • Rakesh avatar

    Posted on May 26, 2009 (permalink)

    Thanks Christopher and Telerik team for the help.

    Telerik team could you please let me know whether the new web testing tool you have released in partnership with ArtOfTest supports Flex applications testing.

  • Christopher avatar

    Posted on May 26, 2009 (permalink)

    No problem Rakesh!
      I really liked the potential of WebAii and the added capabilities compared to QTP!  There was going to be a seminar on the WebUI tool by a consulting company Falafel, but that fell thru so I've not seen WebUI and am looking forward to it.  Based on the design of WebAii and my understanding of Adobe Flex (it's actually a thin client not a web app) you could probably use the WebAii framework but you would have to create your own hooks. 

    WebAii allows you to use C# or VB to create your test cases and provides a library of functions to interact with the HTML Dom in IE or Firefox.  So that included library would probably be worthless to you forcing you to write your own...

    Good luck on your automation.

  • Atomstodin.is avatar

    Posted on Jun 19, 2009 (permalink)

    Hi,

    I am trying to get the below selenium example to simulate the right click on the context menu.

                    <tr> 
                        <td>open</td> 
                        <td>../Treeview/Examples/Functionality/ContextMenu/DefaultCS.aspx</td> 
                        <td></td>  
                    </tr> 
                    <tr> 
                        <td>getEval</td> 
                        <td>window.tree = frames['myiframe'].window.RadTree1;</td> 
                        <td></td>  
                    </tr> 
                    <tr> 
                        <td>assertElementNotPresent</td> 
                        <td>//div[@id="rtvcmRadTree1Mail_clone"]</td> 
                        <td></td>  
                    </tr> 
                    <tr> 
                        <td>fireEvent</td> 
                        <td>//span[text()="Deleted Items (6)"]</td> 
                        <td>mouseover</td> 
                    </tr> 
                    <tr> 
                        <td>fireEvent</td> 
                        <td>//span[text()="Deleted Items (6)"]</td> 
                        <td>contextmenu</td> 
                    </tr> 
                    <tr> 
                        <td>waitForVisible</td> 
                        <td>//div[@id="rtvcmRadTree1Mail_clone"]</td> 
                        <td></td>  
                    </tr> 

    This hasn't worked for me. I am using the ../Treeview/Examples/Functionality/ContextMenu/DefaultCS.aspx  example.  The last test(waitForVisible) fails but the others pass.

    Would you be able to send me an example of this?  Also any other selenium test or examples for RadControls mainly Editor, Tree, Calendar and Upload would be appreciated?

    Regards,
    Oli





  • Helen Helen admin's avatar

    Posted on Jun 22, 2009 (permalink)

    Hi,

    Please find below an example how to show the context menu and verify that it is visible:

    <tr> 
        <td>open</td> 
        <td>../Treeview/Examples/Functionality/ContextMenu/DefaultCS.aspx</td> 
        <td></td
    </tr> 
    <tr> 
        <td>getEval</td> 
        <td>window.tree = frames['myiframe'].window.RadTree1;</td> 
        <td></td
    </tr> 
    <tr> 
        <td>assertElementNotPresent</td> 
        <td>//div[@id="rtvcmRadTree1Mail_clone"]</td> 
        <td></td
    </tr> 
    <tr> 
        <td>mouseOver</td> 
        <td>//span[text()="Deleted Items (6)"]</td> 
        <td></td
    </tr> 
    <tr> 
        <td>fireEvent</td> 
        <td>//span[text()="Deleted Items (6)"]</td> 
        <td>contextmenu</td> 
    </tr> 
    <tr> 
        <td>waitForVisible</td> 
        <td>//div[@id="rtvcmRadTree1Mail_clone"]</td> 
        <td></td
    </tr> 


    Also find attached sample treeview qsf tests.

    Hope this helps.

    Greetings,
    Helen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
    Attached files

  • Atomstodin.is avatar

    Posted on Jun 22, 2009 (permalink)

    Thanks for your reply and the attached files,    

    This doesn't work for me the test runs fine until the end (waitForVisible) which timeouts. I have also tried this with the example online.
    I am using firefox and Rad Controls Q2 I am missing something?
    Regards,
    Oli

  • Atomstodin.is avatar

    Posted on Jun 22, 2009 (permalink)

    Just found the answer I didn't realize that it only worked in Internet Explorer.

    Thanks,
    Oli

  • Helen Helen admin's avatar

    Posted on Jun 23, 2009 (permalink)

    Hello,

    Here is a selenium fix for contextMenu command which works under Firefox:

    //fix for contextmenu not working under FF 
    Selenium.prototype.doContextMenu = function(locator) { 
        var element = this.page().findElement(locator); 
        this.page()._fireEventOnElement("contextmenu", element, 0, 0); 
        }; 
     
    Selenium.prototype.doContextMenuAt = function(locator, coordString) { 
        if (!coordString) 
        coordString = '2, 2'
     
        var element = this.page().findElement(locator); 
        var clientXY = getClientXY(element, coordString) 
        this.page()._fireEventOnElement("contextmenu", element, clientXY[0], clientXY[1]); 
    }; 

    And here is a sample test which works under Firefox:

    <tr> 
        <td>open</td> 
        <td>../Treeview/Examples/Functionality/ContextMenu/DefaultCS.aspx</td> 
        <td></td> 
    </tr> 
    <tr> 
        <td>getEval</td> 
        <td>window.tree = frames['myiframe'].window.RadTree1;</td> 
        <td></td> 
    </tr> 
    <tr> 
        <td>assertElementNotPresent</td> 
        <td>//div[@id="rtvcmRadTree1Mail_clone"]</td> 
        <td></td> 
    </tr> 
    <tr> 
        <td>mouseOver</td> 
        <td>//span[text()="Deleted Items (6)"]</td> 
        <td></td> 
    </tr> 
    <tr> 
        <td>contextMenu</td> 
        <td>//span[text()="Deleted Items (6)"]</td> 
        <td></td> 
    </tr> 
    <tr> 
        <td>waitForVisible</td> 
        <td>//div[@id="rtvcmRadTree1Mail_clone"]</td> 
        <td></td> 
    </tr> 



    Regards,
    Helen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

  • Oliya Dutta avatar

    Posted on Sep 10, 2009 (permalink)

    Hello Steve,

        I had tried the same way as u have explained in the post. 
        Please find the code snippet below.
    ''''''''''''
        Dim sNodes

        set x = SwfWindow("SampleForm").SwfObject("radTreeView1").Nodes(0)
        sNodes
     = x.Object.text

        msgbox sNodes
    '''''''''''''
        Error dialog box pops up saying 'object required'. My aim is to get Root node text. Please advise. 
        It will be great if Telerik teams posts this kind of inputs in Knowledge base.

    Thanks in advance,
    Oliya

  • Frank Cohen avatar

    Posted on Nov 14, 2009 (permalink)

    Hi Telerikistas!

    Ajax is a wonderful thing for producing rich user experiences. But Ajax is really difficult for test tools. We have lots of experience using Selenium, HtmlUnit, and TestMaker in Ajax environments, including Telerik, Bluenog, IceFaces, TinyMCE, Extjs, GWT, YUI, jQuery, and Appcelerator. We offer professional support and integration of these tools at PushToTest.

    I am hosting a free live Webinar on some of our favorite tools and techniques to test Ajax applications on November 19. Details are at http://www.pushtotest.com/services/workshop_tech.

    -Frank

  • Arvind Dhiman avatar

    Posted on Apr 7, 2010 (permalink)

    Hi All,

    I have gone through this forum, please let me know about the conclusion of this discussion i.e. which Tool should I use in my web based application using a lot of Telerik Controls, grids, Menu items etc. Should I go for QTP, Selenium or Web UI Test or is there is any work around for using QTP in Telerik Controls.
    For which Tool does telerik provides the support and if possible please arrange these tools in integrity with Telerik Controls.
    Please help me in this as I need a solution till Friday i.e. 9th April 2010.


    thanks and regards,
    Arvind Dhiman

  • Christopher avatar

    Posted on Apr 7, 2010 (permalink)

    Arvind,
       We have had success using QuickTest Pro to automate our application, which is heavy in Telerik controls.  Some work is required researching the HTML to find the right objects, but once it is working, everything typically works pretty good.
       Typically I spend some time using the IE Developer ToolBar to determine how the controls are built and then build out Functions in QTP to handle such controls.  For example, the Text Controls gave me a little issue and requires the function to first focus on the object, enter the data, and then mouseover the object again...

  • Arvind Dhiman avatar

    Posted on Apr 7, 2010 (permalink)

    Hi Christopher,

    thanks for your support.
    i just need to know that currently I am facing the problem while using the QTP over the Rad Editor of Telerik (Rich text Editor Box0 as QTp does not records it and also, while adding it as an Object I am unable to find the right property in QTP. Please provide me an example or the steps for How to implement Rad Editor in QTP 9.2.

    Also is it possible to have a chat or online conversation for the QTP issues (if possible for you, else its ok)


    thanks and regards,
    Arvind Dhiman

  • Christopher avatar

    Posted on Apr 7, 2010 (permalink)

    Arvind,
       I did have a little trouble working with the Rad Editor.  We've dropped our implimentation of that particular control, but I looked at what I believe is an example of it here: http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

    I believe what I recall about automating that control was I had to flip it to HTML before I could set any data.

  • Arvind Dhiman avatar

    Posted on Apr 7, 2010 (permalink)

    Hi Christopher ,

    thanks for your support and time.
    Will bother you again if faced any more difficulty :)


    thanks & regards,
    Arvind Dhiman

  • Rajasekhar avatar

    Posted on Aug 4, 2010 (permalink)

    Hi team ,

    We are using Rad controls in .net 3.5 version windows application and we need to automate testing using QTP 10.0.

    Will QTP recognise the controls,if ,please let me know the procedure.

    Regards
    Rajasekhar Tuljapur
    Mb : +919448006022

  • Helen Helen admin's avatar

    Posted on Aug 5, 2010 (permalink)

    Hello Rajasekhar,

    What kind of application do you try to automate? Windows or WebForms?

    Regards,
    Helen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

  • Rajasekhar avatar

    Posted on Aug 5, 2010 (permalink)

    Hi Helen ,
    Its .net 4 windows application

    Regards
    Rajasekhar Tuljapur

  • Peter Peter admin's avatar

    Posted on Aug 10, 2010 (permalink)

    Hello Rajasekhar,

    Thank you for the clarification.

    Currently, we are using TestComplete to test our products. Unfortunately, at the moment we do not provide support for Mercury QTP. We attempted to contact the company a few months ago and we are still waiting for their response. Please excuse us for the caused inconvenience.

    Do not hesitate to contact us if you have other questions.

    All the best,
    Peter
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

  • krishna avatar

    Posted on Nov 10, 2010 (permalink)

    Telerik Team,

    Did anything change from your last post to now on QTP support of Telerik controls?

    Thanks

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > General Discussions > Mercury QTP