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

Functionalities for Test Studio

4 Answers 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mihai
Top achievements
Rank 1
Mihai asked on 01 Aug 2012, 02:28 PM
Hello,

We want to use Test Studio or other tool for automated testing, but before we decide we have some questions.
Does the application has any of the below functionalities:
- email alert (I saw this was an option for some test but how about performance test, load test ... )
- can we use multiple users to run tests in the same time? How many?
- can we run scripts in the beginning/middle/end of the test?
- can we simulate response from an address that is unavailable from testing server? (Let's say the application calls an internet service and the test  server does not have internet access would be good if we simulate a response)

4 Answers, 1 is accepted

Sort by
0
Byron
Telerik team
answered on 01 Aug 2012, 04:21 PM
Hi Mihai,

Each of these is possible, although simulating site response requires additional software. Specifically:

Does the application has any of the below functionalities:

- Email alert


Yes. Email alerts are an option for scheduled tests. They can be configured at the time the test is scheduled. You can schedule a test list, which can be made up of web tests (which can also target Silverlight applications) or WPF tests, but not load or performance tests. 

- Can we use multiple users to run tests in the same time? How many?

Yes. If you wish to run the same test using multiple virtual users, you can do so using our load test features. If you wish to run different tests simultaneously, you can do so using multiple machines with installations of Test Studio Runtime Edition. The Runtime edition can execute tests, but cannot create or edit them.

- Can we run scripts in the beginning/middle/end of the test?

Yes. Using a coded step, you can insert C# or VB code at any point in your test.

- Can we simulate response from an address that is unavailable from testing server?

Yes. However, Test Studio does not provide this functionality built-in. Instead, you can use Fiddler trace to capture web traffic against the live site, then simulate its responses later. Fiddler will capture the browser's requests and respond to them as the website did; Test Studio will automate the browser as usual. If you are unfamiliar with how to do that please refer to this short video. You can download the Fiddler application from here.

All the best,
Byron
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Byron
Telerik team
answered on 01 Aug 2012, 05:25 PM
Hi Mihai,

I would like to add:

Regarding scheduled tests, automated tests can be scheduled only for web or WPF tests, but manual and performance tests can be scheduled by changing the test list type for the scheduled list to 'Manual' or 'Performance'.

Kind regards,
Byron
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Mihai
Top achievements
Rank 1
answered on 02 Aug 2012, 05:49 AM
Hi Byron,

Thanks for your responses. I would like to add one last question. We would like to test if the when the response time for some services/sites are above a certain level. Can we make tests for this and receive results by email when the request is above a specified time span?

Thanks,
Mihai
0
Byron
Telerik team
answered on 02 Aug 2012, 08:38 PM
Hello Mihai,

There is not currently a feature to accomplish this automatically through the user interface.  You can receive email updates when a test list executing in performance mode completes. However, to receive emails from Test Studio only when the results of a performance test meet certain criteria, you will need to use code.

To do so, you will need to create a test studio extension. The following code sample is an example of accessing the performance results, specifically, writing the server and client time for each step in the performance test.

public override void OnAfterTestCompleted(TestResult result)
{
    string filePath = result.ProfilerResultsPath;
    ProfilerResultsFile resultsFile = new ProfilerResultsFile(null, filePath);
    foreach (ProfilerTestStep step in resultsFile.Steps)
    {
      Log.WriteLine(step._serverTime);
      Log.WriteLine(step._clientTime);
    }   
}

You can also use C# to generate emails with output from your extension.

Please let us know if we can assist you further.
 
All the best,
Byron
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Mihai
Top achievements
Rank 1
Answers by
Byron
Telerik team
Mihai
Top achievements
Rank 1
Share this question
or