How to schedule a test to run every 1 hour?

15 posts, 0 answers
  1. Björn
    Björn avatar
    2 posts
    Member since:
    Nov 2007

    Posted 21 Jul 2010 Link to this post

    Hi!

    I am trying the trial version of WebUI Test Studio QA edition.
    The application seems really good, but I can not find a way to schedule a test to run for example every 1 hour, or once every day.
    How to do this?

    It is important for me that tests can be scheduled to run automatically and that we can get e-mail notifications if a testcase fails.
    Is this feature provided, or do all tests need to be executed manually?

    Regards
    Björn Söderberg
    WebSearch
  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 21 Jul 2010 Link to this post

    Hi Björn,

    Thank you for your evaluation of WebUI Test Studio and the good words about our solution.

    The feature is not yet available built-in. Since this is a frequent request though we will surely add it for a future version of the product (most probably later this year). In the meantime you can find a possible solution pointed on the blogs.

    We appreciate your feedback so please keep it coming, thank you!

    Greetings,
    Konstantin Petkov
    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
  3. Björn
    Björn avatar
    2 posts
    Member since:
    Nov 2007

    Posted 21 Jul 2010 Link to this post

    Thanks for your reply.

    It seems that I can schedule the tests as described in the blog using the windows scheduler. Will try this out today.
    I have one more question that is critical for us.

    At the end of each testcase if any of the steps fails i want to send a report by e-mail (or SMS) to myself so we can do something about it quickly. As far as I can see that can not be done from the application. But perhaps we can make a custom step and write that code in C#?

    So my question is.
    Is it possible to make a custom step where we write our own C# code that will see if any of the previous steps have failed and if so send an e-mail notification. Our programmers can easily write the code, the question is how we can know if the earlier steps failed or not. Is this information available to us from the code?

    Regards
    Björn Söderberg
    WebSearch
  4. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 22 Jul 2010 Link to this post

    Hi Björn,

    What you and your programmers will want to do is override the CleanUp() method in a code behind file. This won't actually appear as a custom step. The code will resemble this:

    public override void CleanUp()
    {
        if (this.ExecutionContext.TestResult.Result == ArtOfTest.Common.Design.ResultType.Fail)
        {
            // The test has failed. Perform any action needed on failure.
            this.Log.CaptureBrowser(this.ActiveBrowser);
        }
        base.CleanUp();
    }

    To add this using QA edition follow these steps:

    1. Open the test you want this code added to.
    2. Click Script Step - you can skip this step if you already have a custom coded step. This is just to get the code behind file created. We won't actually be creating a custom coded step.
    3. Click Class View to view the entire code behind file.
    4. Above the added "CodedStep" line add the public override method as shown above. You can skip the CaptureBrowser if you like. I put it in there just for demonstration purposes. You can now delete the entire CodedStep method that was added in step 2 above. We won't be using it.

    The only caveat to the above I need to warn you about is that the CleanUp method is only called at the very end of a test run... i.e. after all iterations of a data driven test have been executed. Let me know if I can be of further assistance.

    Sincerely yours,
    Cody
    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
  5. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 27 Jul 2010 Link to this post

    Hello Björn,

    Just wanted to touch base with you. Did you get this problem resolved? Do you need any further assistance with this?

    Kind regards,
    Cody
    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
  6. Brad
    Brad avatar
    2 posts
    Member since:
    Dec 2010

    Posted 31 Dec 2010 Link to this post

    I am also trying the trial version of WebUI Test Studio QA edition.  I saw this post is alittle over 5 months old and was wonder if this functionality is built into the product yet for this was a previous response "The feature is not yet available built-in. Since this is a frequent request though we will surely add it for a future version of the product (most probably later this year)"

    Thanks,

    Brad Hall

  7. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 04 Jan 2011 Link to this post

    Hi Brad,
         I'm happy to say that the feature was added. Our current official release is Q3 SP1. You can check out the new features here.
    Specifically on Scheduling you can first check out this tutorial and also the Scheduling section in our Knowledge Base.

    We're also hard at work on up-to-date documentation for WebUI Test Studio which will explain the Scheduling feature in with details.

    Meanwhile try it out and please don't hesitate to ask if you have any questions at all related to WebUI Test Studio

    Hope to hear from you soon!

    Best wishes,
    Stoich
    the Telerik team
    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  8. Brad
    Brad avatar
    2 posts
    Member since:
    Dec 2010

    Posted 04 Jan 2011 Link to this post

    Stoich,

    Thanks for getting back with me.  I saw this about email notications in the documentation:
     
    "Q: Does this feature include automatic sending of emails with the summary of the test result?

    A: Yes, you can configure the Scheduling Server to connect and use an SMTP server. Then per scheduling test list you can add the recipient(s) email to send the run result to. We also provide the option to send emails conditionally, e.g. whether to get email when the tests complete, on test failure and more."

    Here is the big money question for this is the functionality my company requires:
    Does the email that is sent have a customizable subject line and body?

    Thanks again,

    Brad Hall

  9. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 05 Jan 2011 Link to this post

    Hi Björn,
        we're very seriously considering adding such a feature in the near future. I completely agree with you that it would be great to have it and I believe it would not be hard to add it.

     To that end please could you describe in more detail exactly what your company needs in this respect. We'll take into account customer feedback when deciding priorities of feature requests.

    I hope I've managed to answer this question for you, please let me know if there's anything else I can help you with.

    Greetings,
    Stoich
    the Telerik team
    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  10. Kruba
    Kruba avatar
    9 posts
    Member since:
    Nov 2011

    Posted 28 Nov 2011 Link to this post

    Hi Stoich,

    Just curious to know whether the 'Customizable Email' feature has been added or not.

    Thanks,
    Kruba
  11. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 02 Dec 2011 Link to this post

    Hello Krubaanandh,
    not yet but you can vote for it here:
    http://www.telerik.com/support/pits.aspx#/public/test-studio/6767

    All the best,
    Stoich
    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
  12. Vasu
    Vasu avatar
    5 posts
    Member since:
    Nov 2011

    Posted 12 Dec 2011 Link to this post

    Hi,

    The new scheduler does not give an option to schedule test every 1 hour. What is the best way to do it in 2011.2 version?

    Thanks,

    Vasu
  13. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 15 Dec 2011 Link to this post

    Hi Vasu,
    as of our latest release this is still not implemented. It's still only a Feature Request. You can track it and vote for it from the this URL:
    http://www.telerik.com/support/pits.aspx#/public/test-studio/6767

    We take votes into account heavily when deciding on what new features/fixes to focus in the future.

    Greetings,
    Stoich
    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
  14. Sriram
    Sriram avatar
    1 posts
    Member since:
    May 2011

    Posted 03 Feb 2013 Link to this post

    We are in the process of evaluating our options for purchasing the Telerik Test Studio. One our needs is to schedule tests every few minutes and was wondering if this issue has been resolved yet? 

    Any assistance is appreciated.

    Thanks,
  15. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 07 Feb 2013 Link to this post

    Hello Sriram,
    we've implemented the feature that allows you to configure the content of your result emails. However, a feature that will allow you to run the test every hour is still on the drawing board.

    Obviously, you can make Test Studio execute a TestList every hour but you would manually have to schedule those executions one by one. There's no button to say "RunEveryHour=true".

    I hope this helps.

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