Webaii test code to run under Telerik Test Studio.

6 posts, 0 answers
  1. SD
    SD avatar
    62 posts
    Member since:
    Apr 2010

    Posted 09 Sep 2012 Link to this post


    Hi,

    Is it possible to run webaii tests (C# coded using MS VSE) within the Telerik Test Studio instead of Nunit ?
    Ta.
  2. Ivaylo
    Admin
    Ivaylo avatar
    782 posts

    Posted 13 Sep 2012 Link to this post

    Hello SD,

    From your question I'm getting a little confused, are you using our tests with coded steps or you are using Nunit tests? 
    If you are using our webaii tests you just need to include them into a project and you will be able to run the test. If you are using Nunit tests it will not be possible to run them with Test Studio.

    Regards,
    Ivaylo
    the Telerik team
    Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
    Vote now
  3. SD
    SD avatar
    62 posts
    Member since:
    Apr 2010

    Posted 16 Sep 2012 Link to this post

    Hi, I'm refering to your Testing Framework (Webaii).

    We've got bunch of tests that currently running using nunit.
    We would like to stop using nunit and run the above tests using a commerical tool sucn as Test Studio.
    Can Test Studio run tests written for nunit ?

    Ta.


  4. Ivaylo
    Admin
    Ivaylo avatar
    782 posts

    Posted 19 Sep 2012 Link to this post

    Hello SD,

    Unfortunately Test Studio cannot run straight/unmodified NUnit tests directly, even those designed to use our Testing Framework.
    The only option for you can be if you take your tests and modify them to run as coded steps instead. You will have to create a new Test Studio test for each NUnit test, then copy/paste the existing code into a new coded step.

    All the best,
    Ivaylo
    the Telerik team
    Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
    Vote now
  5. SD
    SD avatar
    62 posts
    Member since:
    Apr 2010

    Posted 26 Sep 2012 Link to this post

    Ta.

    I have now downloaded the latest version of the Telerik Test Studio in an attempt to
    see if we can run our tests using TS not Nunit as before and do so while using what you call 'Coded Steps'.
    The thing is our code is desinged is a fully OOP fashion, i.e. test usally call test methods from other classes incl Enum-like types etc.

    For example to login I'm using the following:

    Navigate.Navigate_Generic(Environments.Local, Users.User1);
     The definitaion of Navigate_Generic is:
    public static void Navigate_Generic(String Environment, String user)
         {
             Manager.Current.LaunchNewBrowser(Settings.Current.DefaultBrowser);
             Manager.Current.SetNewBrowserTracking(true);
             Manager.Current.ActiveBrowser.NavigateTo(Environment);//Manager.Current.Settings.BaseUrl
             Manager.Current.ActiveBrowser.WaitUntilReady();
             Manager.Current.ActiveBrowser.RefreshDomTree();
     
             Manager.Current.ActiveBrowser.Find.ByName<HtmlInputText>("j_username").Text = user;
             Manager.Current.ActiveBrowser.Find.ByName<HtmlInputPassword>("j_password").Text = "somepassword";
             Manager.Current.ActiveBrowser.Find.ByName<HtmlInputSubmit>("submit").Click();
     
             if (Manager.Current.Browsers[0].Find.ByAttributes<HtmlControl>("value=Log me in") != null &&
                 Manager.Current.Browsers[0].Find.ByAttributes<HtmlControl>("value=Log me in").IsVisible())
             {
                 Manager.Current.Browsers[0].Find.ByName<HtmlInputSubmit>("submit").Click();
                 System.Threading.Thread.Sleep(3500);
             }
     
             WaitForWindow(2);
     
             Manager.Current.SetNewBrowserTracking(false);
             Manager.Current.ActiveBrowser.Window.Maximize();
            M anager.Current.ActiveBrowser.RefreshDomTree();
     
             Assert.True(Manager.Current.ActiveBrowser.ContainsText("Dashboard"), "Dashboard didn't show up");
         }
    You get the idea.
    Is it possible to use TS in the same way ? We understand that TS stand alone is not a full IDE.

    Ta.

  6. Ivaylo
    Admin
    Ivaylo avatar
    782 posts

    Posted 27 Sep 2012 Link to this post

    Hello Sd,

    Yes, it is possible to use Test Studio in the way you are describing. It is not a problem to call test methods from other classes. 
    Please note that they need to be in the same project, you cannot call methods from different projects.

    Kind regards,
    Ivaylo
    the Telerik team
    Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
    Vote now
Back to Top