Is Telerik testing framework supports silverlight application with Page object model?

7 posts, 0 answers
  1. uday
    uday avatar
    10 posts
    Member since:
    Aug 2015

    Posted 17 Aug 2015 Link to this post

    Hi Team,

     I would like to ask few questions about Telerik Testing Framework for silverlight applications

       I need to  build a framework to automate the silverlight applications using telerik

    Using Telerik Testing Framework :-

          1. Is Telerik Testing Framework supports automating silverlight applications or not ? If yes then can I convert into POM(Pageobject model) like as in selenium. I've already done the same for HTML applications to some extent .

          2. If Telerik Testing Framework supports silverlight applications  then how can i inspect the locators with out using telerik teststudio highlighting tool/element repository however, can't  able to inspect element from silverlight application web UI like as HTML application.

    Building a framework for silverlight applications using telerik teststudio (standalone /Visual studio plugin):-

          1. Is this above approach is possible i e converting the teststudio in to a POM (Page Object Model) and locating the elements using highlighting (Add to element repository)

    NOTE:-  Please provide me correct possibilities and limitations of the way of approaches I choose . Please let me know your opinion on which way the silverlight applications can be automated that can handle maintainable, reusable, report generation and easier process.

    Thanks in advance please respond me ASAP

    Regards,

    Udaykumar
  2. uday
    uday avatar
    10 posts
    Member since:
    Aug 2015

    Posted 19 Aug 2015 in reply to uday Link to this post

    Hi Team,

    Its very urgent to know the possibilities for me so that I can quick start the process please provide me valuable suggestions and as soon as possible Thanks in advance

    Regards,

    Uday.

     

  3. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 20 Aug 2015 Link to this post

    Hi Uday,

    Thank you for your interest in Telerik Testing Framework.

    Yes you can automate SL application.

    Please check out this and other section in our documentation which describe the process in details.

    If you have further questions please let us know.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  4. uday
    uday avatar
    10 posts
    Member since:
    Aug 2015

    Posted 21 Aug 2015 in reply to Boyan Boev Link to this post

    Thank you for your response,

     

    I've studied the document that you've provided and my question was I'm not able to Inspect the web element(locator) like as in HTML application i e through  " Inspect element " option . because of this I'm not able to view the DOM to identify the locator in silverlight application. Please provide me enough knowledge on locating DOM  tree of silverlight application for TTF (without using telerik teststudio).

     

    Regards,

    Uday

  5. uday
    uday avatar
    10 posts
    Member since:
    Aug 2015

    Posted 25 Aug 2015 Link to this post

    Hi Team,

    I'm working on creating a Telerik Testing Framework for HTML/Silverlight applications using Nunit following are the issues I encountered

    1. To achieve Page Object Model I had seperated TestSuites,Pagemethods,SafeActions and except Locators I'm not able to store the locators outside the testsuite file I'm getting the errors while doing this
        as 
        ERROR:  An object reference is required for the non-static field, method, or property 'ArtOfTest.WebAii.Core.Find.ById(string)' D:\Telerik\TTF_FRAMEWORK\TelerikFramework2\Pages\PageConstants\GmailConstants.cs 148 31 TelerikFramework2
         
    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 ArtOfTest.WebAii.Win32.Dialogs;

    using ArtOfTest.WebAii.Silverlight;
    using ArtOfTest.WebAii.Silverlight.UI;

    using NUnit.Framework;
    using Core = NUnit.Core;
    using TelerikFramework2;

    namespace TelerikFramework2.Pages.PageConstants
    {
       public  class Gmail : BaseTest
        {

         
         public static Element ID = Find.ById("Email");
         
         }
    }


    I understand "Find" class doesnot have any object reference since I'm not storing it in TestSuite ,I'm storing it in a class .cs file. Please provide me some suggestions so that I need to store all the locators seperatley and able access them from another class.Please Respond me ASAP ,Thanks in advance



    Regard,
    Uday. 
  6. uday
    uday avatar
    10 posts
    Member since:
    Aug 2015

    Posted 25 Aug 2015 Link to this post

    Hi Team,

    I'm trying to build a framework which follows PageObjectModel using Telerik Testing Framework for Silverlight application on Visual studio.

    ELEMENT INSPECTING PROBLEM:

             I'm not able to inspect the element directly from UI of silverlight application as like in HTML application. so, to identify the locator in DOM I've used Telerik standalone Record and Playback approach so that by using Highlighting tool I'm able to View the DOM of silverlight.

              I've also recorded a step and edit the element through ElementRepository and found a path for a particular field i e like
     (XamlTag=contentpresenter", "name=PART_FieldsContentPresenter1", "|", "XamlTag=TextBox)

     I've used the same path in TTF using XamlFindExpression   as below
    app.Find.ByExpression(new XamlFindExpression("XamlTag=contentpresenter", "name=PART_FieldsContentPresenter1", "|", "XamlTag=TextBox")).User.TypeText("telerik", 10);  //return null
    but here it returns null however I tried with different paths by looking on to DOM at standalone and below one is working fyn
     app.Find.ByName("ContentElement").User.TypeText("telerik", 10);  //able to enter text

    I don't know why it beheaves like this the path(locator) which works in standalone is not works in Telerik Testing Framework. Can you please explain me why it beheave like this and what way it was finding element.  
    please let me know is there any thing that i need to import when finding elements with.ByExpression .
             

             Below attached is a sample test on silverlight application using TTF find the commented code which was the path stored in Standalone elementrepository.     


    Regards,
    Uday.
  7. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 26 Aug 2015 Link to this post

    Hello Uday,

    You cannot inspect the DOM via the Framework like in Test Studio. You should use some third party tool like SilverlightSpy.

    Regarding the other issues the best practice is to split separate issues in different tickets which help us better investigate and handle them in timely manner.

    Thank you!

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top