This is a migrated thread and some comments may be shown as answers.

How to schedule a test to run every 1 hour?

14 Answers 231 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Björn
Top achievements
Rank 1
Björn asked on 21 Jul 2010, 01:31 PM
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

14 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 21 Jul 2010, 01:37 PM
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
0
Björn
Top achievements
Rank 1
answered on 22 Jul 2010, 03:28 AM
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
0
Cody
Telerik team
answered on 22 Jul 2010, 04:12 PM
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
0
Cody
Telerik team
answered on 27 Jul 2010, 03:26 PM
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
0
Brad
Top achievements
Rank 1
answered on 31 Dec 2010, 09:33 PM

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

0
Stoich
Telerik team
answered on 04 Jan 2011, 06:40 PM
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
0
Brad
Top achievements
Rank 1
answered on 04 Jan 2011, 07:10 PM

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

0
Stoich
Telerik team
answered on 05 Jan 2011, 08:03 PM
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
0
Kruba
Top achievements
Rank 1
answered on 29 Nov 2011, 04:38 AM
Hi Stoich,

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

Thanks,
Kruba
0
Stoich
Telerik team
answered on 02 Dec 2011, 02:13 PM
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
0
Vasu
Top achievements
Rank 1
answered on 12 Dec 2011, 11:15 PM
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
0
Stoich
Telerik team
answered on 15 Dec 2011, 02:00 PM
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
0
Sriram
Top achievements
Rank 1
answered on 04 Feb 2013, 01:22 AM
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,
0
Stoich
Telerik team
answered on 07 Feb 2013, 08:18 AM
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
Tags
General Discussions
Asked by
Björn
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Björn
Top achievements
Rank 1
Cody
Telerik team
Brad
Top achievements
Rank 1
Stoich
Telerik team
Kruba
Top achievements
Rank 1
Vasu
Top achievements
Rank 1
Sriram
Top achievements
Rank 1
Share this question
or