How to work with If-Else logical steps in Test Studio

In this post we will take a look on working with logical steps in Test Studio.


We will understand working with Logical Steps in Test Studio using a Test Scenario. Let us suppose you have a Web Application as following. User will enter numbers in text input and click on the Add Numbers button to get the summation of two numbers. Summation of numbers are displayed in a span.


Now suppose we have a test scenario stated as below,

“If output contains 89 then navigate to Google (or perform any other tasks) else navigate to Bing (or perform other tasks)

We are going to walkthrough, how this could be achieved.

Start recording the test.

Step 1

Navigate to application. In this example test application is on local host and can be accessed at URL http://localhost:55391/demoifelseteststudio.html

Step 2

Enter numbers in both input text boxes

Step 3

Click on the Add Numbers button

Step 4

From docked Test Studio panel, select option of Enable or Disable hover over highlighting


And select output span to put a verification step,


Select the option of Build Verifications. Here create a verification step by clicking on Content then choosing contains from drop down.


Now minimize the browser and go back to Test Studio to verify that all test steps got created as expected or not. Make sure that you are minimizing Test Studio not closing it.

Step 5

In Test Studio you will find all the recorded steps so far,


Now from the ribbon click on Logic and select If-Else


After selecting if-else, you will find two steps has been added. Hover over step contains if statement. You will get a green add button.


Click on the green add button to add a verification step as condition of if statement. Next you will find that a green add button next to the verification step (in this case InnerText Contains 89 of outputspan). Click on the green add button to select that verification. After that you will notice that that verification step has been added as condition of if statement.


Step 6

Maximize the browser in which we were recording the testing steps. And browse to . Again minimize the browser and come back to Test Studio.

Step 7

You will find a step has been added.


Drag this step and drop on if condition step.

Step 8

Maximize the browser in which we were recording the testing steps. And browse to . This time close the browser to stop the recording.

Step 9

You will find a step has been added.


Drag this step and drop on else condition step.

Now you have successfully added if-else logical step in the Test. Go ahead and execute the test and you will find all the test steps has been passed with if statement


If you change verification step form contains to not contains then steps of else condition will get executed.


In this way you can work with if-else logical condition in Test Studio. I hope you find this post useful. Thanks for reading.

How to do CSS verification of HTML Elements in Test Studio

In this post, we will take a look on doing CSS Verification of HTML element in Test Studio. You can put verification on CSS while recording the test. Let us say on following page you want to do CSS verification on highlighted element.


While recording the test click on Enable or Disable Hover.


After selecting that select element and click on blue bubble. Select “Build Verification



In DOM Explorer, select HTML element and click on Style.


In Style, you have option to select

  1. Computed Style
  2. Inline Style

You can create verification step by choosing different options from the drop down.


Let us say you want to create a verification step “Font size of element is 2em”. You can do that selecting Font and Size from drop down.


After selecting value from drop downs click on Validation Rules. You will get a message that “Validation Passed”


After closing DOM Explorer and stopping the recording, you will find a CSS verification step has been added to the Test Steps.


In this way you can do CSS verification on HTML elements. I hope you find this post useful. Thanks for reading.

How to do Exploratory Testing in Test Studio

Using Telerik Test Studio Exploratory Testing tool you can

  • Submit and send and idea
  • Submit and send Important information
  • Submit a bug to Team Pulse or TFS


Directly from your browser. In this post we will learn how we can perform Exploratory Testing. To do exploratory testing click on Telerik Exploratory Testing Extension in the browser (Chrome is being used here}



Not able to launch Exploratory Testing Tool? Read here

You will get Test Studio Exploratory toolbar open. Click on Feedback button to perform exploration testing



Next click on Capture button to capture a screenshot



Now you can capture any screen short from the page. Annotate a particular element as following. Like in following case we are saying “Change the font of Welcome element.



In the left side you get Feeback panel. Here you can provide Title, Description and tag the annotation.



You can tag either as Important or Idea. After providing all the information you can send this by clicking on send button in bottom.



You can either export to

  • Word
  • HTML

Or can send in Email. You can submit it as bug as well. You can submit to Team Pulse or TFS.




If you want to export to HTML click on HTML option. You will be asked to provide name of the file and choose the location to save the file.



You will get a confirmation message that Feedback is saved to the given location.




If you open file you will get all the information of the feedback submitted.



In this way you can perform Exploratory Testing right in your browser using Telerik Test Studio.

. I hope you find this post useful. Thanks for reading.

Not able to launch Exploratory Testing Tool in Test Studio?

You might have come across following error when you try to open Telerik Test Studio Exploratory Tool in browser


If you open exploratory tool in Internet Explorer, you will get more specific error message as following


You can solve this problem in two steps,

Step 1:

Browse to folder C:\Program Files (x86)\Telerik\Test Studio\Bin\Feedback



Step 2:

locate for file Telerik.TestStudio.Feedback.Listener.exe . Right click on the file and click Run as Administrator

After running this service go back to browser and open exploratory tool, you should able to launch it successfully.

I hope you find this post useful. Thanks for reading

How to encrypt information while testing in Test Studio?

Let us assume that you are doing automated test of login functionality. While executing the test you want to encrypt the Password information provided by the user to authenticate. Test Studio allows you to encrypt the vital information in the test steps.

Suppose you have recorded a login test as following. If you see in step 4 password is displayed in the plain text.



If you want to encrypt this information select the step and open the property. Open the property window for enter password step and navigate to Behavior tab. At the top of property window you can verify that for which step property is open. You see that Encrypt behavior value is set to false.



To encrypt the password you need to change value of Encrypt to true.


After changing this value when you navigate back to test steps, you will find password has been encrypted


So in this way you can encrypt vital information while executing the test. I hope you find this post useful. Thanks for reading.

How to Submit a Bug to TeamPulse from Test Studio

In this post we will see, “How could we submit a bug from Test Studio to TeamPulse?

Let us assume that we executed an automated functional test and we got the following result. Step 6 in the test failed.


We need to submit this bug to Team Pulse. To submit bug to Team Pulse double click on Red Cross and you will get Step Failure Details dialog box as shown in following image.


Click on the Submit Bug. If Team Pulse is not configured then you will get dialog box to set up Team Pulse. In this dialog box click on Set this up now


If you have already configured TeamPulse or TFS in any of the other Test Project then Test Studio remember that and prompt you that whether you want to import previous setting or you want to go with New Setup. Let us go ahead with New Setup for that click on New Setup.


After clicking on New Setup now you will get below dialog box. Select TeamPulse Server and click on Configure Selected.


In next dialog box, provide

  1. Url of TeamPulse
  2. Username and Password to authenticate to Team Pulse.


After providing credential you need to click on the Connect button. After successful authentication you will get Project to select. Select Project, Severity and Status from drop down. At last click on Done button.


If you have successful connected to Team Pulse, you will get Green Right icon next to TeamPulse. Check on check box to make it default and click on Donebutton.


Next you will be prompted to dialog box to submit the bug.


Before submitting bug, you can Edit Title and Description of the Bug. If you want to submit files related to Failure details then check the check box Attach Failure details. To submit the bug, click on Submit button.

You will get successful message on successful submission of bug from Test Studio to TeamPulse


In this way you can submit bug to TeamPulse from Test Studio. I hope you find this post useful. Thanks for reading

Question and Answers from “Performance and Load Testing with Test Studio” Webinar

I would like to thank everyone for attending webinar on “Performance and Load Testing with Test Studio”. Please find below answers of the questions come up in the webinar.

How to encrypt the password and please can you show us how to handle the parameterization?

Password encryption is set via the property panel for that test step.


How to handle dynamic objects?

See the Video here

Can we do Performance test & Load test with third party application that do not run through browser

Test Studio support web applications. Other applications are not supported.

Test Studio is only for .NET testing not for the JAVA or other testing. Can it test standalone java application?

Test Studio will test any web, Silverlight, or WPF application. The web application can be written on any platform. Java, Ruby, .NET, Python, PHP, it doesn’t matter as long as HTML is sent across the wire.

How many computers we can select at one shot during performance testing

We support multiple computers. We’ve tested with large configurations.

Can we have test suites for the performance testing?

Yes. Test Lists may be created which focus on performance tests.

Can we have custom performance counters added?

Custom counters will be available if they are added through the Windows Performance counter infrastructure.

Describe how to identify the memory leakage using Telerik Test Studio

Memory leakage would be monitored by using performance monitor counters for memory usage. (Total available bytes, garbage collection, etc.)

What criteria would you use to select Web transactions for load testing?

If by “transactions” you mean use cases, then you want to select as many different ones as possible in order to model your site’s traffic as accurately as possible.

How to use Regular Expression in Load Runner for web functions

This webinar is about Telerik’s Test Studio. Please see HP for questions about Load Runner.

Can do the Regression Testing also by using Test Studio

Yes. Automated tests are perfect for regression testing.

What are Performance Testing and Load Testing?

See How Telerik Test Studio helps in Load Testing

See How Telerik Test Studio helps in Performance Testing


Performance Testing

Performance Testing is being performed to measure smoothness and readiness of the application. While creating an application the vital factors should be kept in mind are as follows

  • Speed of the application at any given condition
  • Response time of the application
  • How much resources being used by the application
  • How stable is the application at given time
  • Throughput of the application
  • For web application times spent in making HTTP calls at server and client etc.

Performance Testing is type of testing that test application on above listed criteria.


Performance Testing measures performance of the application. After measuring performance of the application it sets the base line for further testing. Performance testing is very important since cooperate prestige of the application or decision on the final release of application based on the analysis of the results produced by this test. Performance testing does not find any defect in the application. Often, we perform Performance testing on a stable system.

Performance Test finds performance issue in the

  • Database access
  • Network latency like time spent on the network
  • Time spent on reading or writing files on the disc
  • Time spent on making HTTP calls etc.

So we can summarize Performance testing


Load Testing

Load Testing determines user experience when application is under load. In Load Testing, we test application with maximum number of users or with the expected number of users in the production environment.



Load Testing determines upper limit of the application. Load testing simulates expected number of users from the production environment and tests the application with that number of users. When we exceed number of users to test the application much beyond expected number of users from production environment then we call testing as STRESS TESTING. In majority of the time we consider Stress Testing as Load Testing.

Purpose of Load Testing is to find defect in the application when application is running under maximum load. Some of the defects could be as follows

  • Memory leak
  • Buffer Overflow
  • Server failure
  • Network failure
  • Input devices reading failure
  • Writing on output device failure etc.

We can summarize that Load Testing tests application behavior and sustainability with the maximum number of user inputs.

Make sure you have enabled Test Studio Add-ons in Firefox before executing test

I was trying to execute a functional test in Firefox browser. For that I selected FF and clicked on Run to execute the functional test in Firefox browser.


However while executing the test, I got this message and Test Studio was kept waiting for the browser to respond.


After investigation I found that in Add-ons of Firefox, Telerik Testing Framework Add-ons was not enabled.


Make sure to enable both the Add-ons and you will be able to execute the function test in Firefox.


After enabling that you should able to execute a function test in Firefox browser.

Setting up environment for Load Testing in Test Studio

In this post we will follow step by step approach to setup environment for Load Testing in Test Studio. Very first go to Program ->Telerik ->Test Execution and open Configure Load Test Services


Next you will get dialog box to configure the services.


In this dialog box you need to make sure that all the services are started and most importantly make sure that you have given correct database instance name in the Reporter Database Connection setting


In above case kumar is the database server name running on my machine. So I provided instance name kumar\sqlexpress. You do not need to create TestStudioReportingDB database manually. Test Studio will create this database in given database server. After making sure all the information is provided correctly click on Ok to restart all the services.

Next open Test Studio and create a test of type Load Test. Very first you will get following screen


Click on Okay and from the ribbon click on Manage


Here you got an option to Add Controller and manage the number of Virtual users. To Add Controller click on Add Controller button


In Add Controller dialog box give the name of the computer or IP of the computer you want to set as controller and click on Test Connection. After successful connection click on the Add button to add a controller


On the successful adding of controller you need to set the number of Virtual Users for the Controller as following. We have added 258 virtual users in this controller


Next we need to set Controller and Reporter. Select the computer from drop down and click on the connect button.


After successful connect you can see green signals beside Controllers, Reporters and Agents.


All three green signals imply that environment for load testing in Test Studio has setup successfully. Now you can go to design and create ass cases to perform Load Testing

Slides and Projects to download from Test Studio webinar


Very first thank you very much for attending Test Studio webinar on 22nd September . We had great time presenting and hope you had great time learning about Test Studio as well. In this webinar we covered following topics

  • Benefits of Automation
  • Automated Web Testing
  • Data Driven Testing
  • Working with TestLists
  • Ajax Testing

We strongly recommend you to download 30 days free trial and start playing with it and learn more about Test Studio here

Download Test Projects and Slides Deck from here

Below are the some of the questions asked in webinar,

What is the difference between Creating a Folder and Creating a Test?

Folders are for organizing tests in; the test is the piece of automation

What’s Test Studio Express?

Express is a plug in for Visual Studio. You can create, execute, and maintain tests in it. It helps collaboration. Testers can work in Test Studio Standalone, then hand tests off to developers if they need to do things like check the database or use support infrastructure. Testers can use Test Studio Express, too, if they’re more comfortable there and like working in Visual Studio.

Is this a limitation of test studio that it allows recording in IE ONLY?

Recording is an extraordinarily difficult operation. We focus on IE so that we can make it powerful, smooth, and easy to use. You can play back in IE, Firefox, Safari, or Chrome

When we add multiple Tests inside a Test List, After finishing each test, will Test Studio close the window every time and re-launch it for the next test ?

By default, yes. You can also select to “Recycle Browser” in the web tab of the test list’s Settings. This will keep the same browser open; however, you have to be very careful about state, session, cookies, etc.

Where can we make custom code changes to any particular test step?

Yes! You can convert any test step to code by right clickign on it and selecting Convert to Code. You can also add custom code steps.

In case I don’t want to record and run the test but i want to do manual coding to create my own automation suite?

Yes, you can do fully manual coded tests or steps. You can write in C# or VB.NET

How TestStudio is helpful for Silverlight OOB applications?

Test Studio can be used to test the Silverlight OOB applications as well. Silverlight tests get recorded in exactly the same fashion as the web tests DJ has been showing. The experience is very similar. You can explore the visual tree, etc.

Which scripting language is supported by Test studio?

C# and VB.NET

Does it support SAP?

If the SAP application renders HTML, Silverlight or WPF then yes!

Does it work on other tools than .net?

Test Studio will test against any server technology. The demo application is written in Ruby!

Do we have any quick start guide on that?

Yes, please see for some great videos on testing Silverlight!

What about performance testing?

We have separate webinars on performance and load testing!

How to simulate multiple users?

You can use Load testing feature to simulate multiple users.

Will it work for software build using procedural language like Clarion?

If the system renders HTML, Silverlight or WPF then Test Studio will work fine with it.

If application is publish in citrix can we record and test it?

Possibly, there are sometimes difficulties depending on your environment.

I hope you had  worth of your time in this webinar. Looking forward  for your participation in further webinars ..