Any way of scripting for automating the application, without record and reply.....

4 posts, 0 answers
  1. wish
    wish avatar
    43 posts
    Member since:
    Aug 2011

    Posted 16 Feb 2012 Link to this post

    Hi,

    This is hari. i have a question to ask.
    some time back, i have used this telerik test studio trail for automating our client application(6 months back). We did this as a POC to our client (my client is already using telerik controls in our application,hence there are customer/client to you also).
    But at that time, you supported only record and replay for automating the applications.

    from that time, we are looking for any tools in the market which automate our silverlight application with out concept of record and replay. ( reason for not going to record and replay procedure is if any change in the application will need to re-record again).

    Recently we found a tool called TestComplete 8(smartbear.com), which supports record n replay and J#/VB Script/Delphi/C++/C# scripting method, which really suits to our requirement and started working on this scripting way to automate our application.

    This tool is 80% successful in completing our requirement(20% lags becos its in emerging state, need to be fix the issues what customers raises) please find below C# scripting to login in to my application for reference using testcomplete 8:
    *************************************************************************************************************************

    function Login()

    {

    var iexplore, URL,app,bi,us,pwd,lb;

     

    iexplore =

     

    TestedApps["iexplore"]["Run"]();

     

    URL = "http://xxxxxxxxx/xxx/";

    if (!iexplore.WaitPage("*", 10000)["Exists"])

     

     

    Sys["Keys"]("[Esc]");

     

    iexplore["WaitPage"]("*", 2000)["ToURL"](URL);

    iexplore.WaitChild("form1",5000);

    app = iexplore["Page"]("http://xxxxxxxxxxxxx/xxx/")["Form"]("form1")["Panel"]("silverlightControlHost")["Object"]("XXXSLApp");

     

    bi = app["SlObject"]("RadBusyIndicator","");

    us = bi["SlObject"]("PART_ExtendedTextbox");

    us.Keys("username");

    pwd = bi["SlObject"]("Password");

    pwd.Keys("password");

    lb = bi["SlObject"]("LoginButton");

    lb.Click();

    }


    *************************************************************************************************************************

    We went with POC of this to our customer using testcomplete 8(they are customer to you also bcos using telerik controls in our silverlight application). They are happy with the approch of us, but they were asking us to check whether this scripting procedure of automating the application is available with telerik also.

    Please let me know if this kind of approach is available to automate our application in telerik or not. Your response is going to be big help for us.

    Thanks.,
    Hari/wish

       


  2. Phillip Lacey
    Admin
    Phillip Lacey avatar
    2 posts

    Posted 16 Feb 2012 Link to this post

    Hello Hari/wish,

    If you really want to stick with100% hand coding of your tests you can always use our our free Telerik Testing Framework product. It is simply a set of .NET libraries and browser plug-ins you can use to write your own tests and execute them in Visual Studio and/or your own continuous integration server environment. 

    Looking at the code sample you posted leaves me with the impression that you are hand coding all of your tests from scratch. We, the Test Studio group, strongly believe that writing tests in code consumes a lot more time creating your tests compared to recording them, plus it leaves your tests far more fragile and requires significantly more effort to maintain and keep running compared to using Test Studio and its record & playback capability. Rarely do changes in the Silverlight application require to you re-record your scripts. Even when it does, usually you only need to slightly tweak an existing script (e.g. add a Click step, add a Set Test step in the middle of an existing test due to a new button/input field).

    Saving time is what automation is all about.  Successful Silverlight automation with record & playback saves a tremendous amount of time compared to hand coding all of your tests. We could look at your application and show you how Test Studio would work - with both record/playback AND code, and perhaps provide an attractive option for your client.  

    If you want to take advantage of our recorder and still stay mostly in code, you can use Test Studio Express (bundled with Ultimate Collection) and, once you have recorded a test, convert all steps to code.

    I hope this information is helpful.  Please let me know if you would be interested in discussing this further.

    Greetings,
    Phillip Lacey
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. wish
    wish avatar
    43 posts
    Member since:
    Aug 2011

    Posted 17 Feb 2012 Link to this post

    Hi Phillip,

    The link which you shared with me will again redirecting me to Test Studio.

    Can you please share me exact url of free Telerik Testing framework.

    Thanks in adavance.


    Thanks,.
    Hari/wish
  4. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 17 Feb 2012 Link to this post

    Hi,

    You'll find the Framework download link about halfway down the Free Products page.

    Greetings,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top