Your First Project

Once you have successfully installed and activated Test Studio, you are ready to setup the machine for testing and create your first automation test. The process is divided in several steps:

  1. Create new project
  2. Calibrate your browser for testing
  3. Add a Test to the Project
  4. Test Recording
  5. Test Execution
  6. Execution Results

Create New Project

When you launch Test Studio, you will see the Welcome Screen. It lets you open or create projects, and see notifications about software updates and news related to the product.

In the Project section you can decide whether to create a new project, open a local one, choose from the recently used or open a source controlled project (Git or TFS).

Create Project

Let's create a new project for the current demonstration, specify its name and location and click the Create button.

Create Project

After the project is successfully created, you can open the Tips and Tricks from the top right corner of Test Studio. The popup dialog has many useful references to the documentation and a short video on some of the topics.

You can explore a sample Web & Desktop project, from the Get Started section.

Get Started Projects

Configure Your Browser for Testing

Once the test project is created you need to configure your browser for testing, we call this "browser calibration". This is done to ensure flawless and consistent automation process. We have implemented a feature to automatically calibrate the browser out of the box without manual actions. In this case we will be using Internet Explorer.

Note: Other supported browsers like Chrome and Firefox require the Progress Test Studio extension, where Microsoft Edge uses the WebDriver.

Add a Test to the Project

The same project can have different types of tests, organized in folders. Those tests can be later added to test lists. For your first test in this project add a new Web test.

  1. Go to the Project ribbon and click on the Add Web Test button.

    Add new test Project Ribbon

  2. This automatically adds a web test in the Project Explorer in edit mode to enter its meaningful name.

    Choose name for the new test

  3. Other test types can be selected from the down arrow of the Add Web Test button.

    Add other test type test Project Ribbon

You can find more information on all test types available in a Test Studio Web & Desktop project:

Test Recording

The Test Studio Recorder will add all actions against the application to your test. You can enable the highlight mode from the recording toolbar and explore the DOM tree of the page and add the necessary verifications steps.

  1. Double click the newly created test to open it. Click the Record button in the Tests ribbon or press CTRL+R.

    Add new test Project Ribbon

  2. In the Recording dialog type the URL you want to navigate to, select Internet Explorer browser and press Enter or the Record button. You can choose a URL from your recent URLs.

    Note: Selecting the recording browser will be skipped if you have already set a preferred browser from the Test ribbon.

    Choose browser

  3. Once the selected browser navigates to the desired page, the recorder gets attached to it. A navigate step is recorded in the Steps pane and you can continue recording the next actions as per the required scenario.

    Attached recorder

  4. Lets navigate to the Test Studio documentation. Click on DOCS & SUPPORT button, find Test Studio and click it and click on Documentation. All of those actions are recorded as steps in the test.

    Step pane

Test Execution

It is time to execute the recorded test or test list and observer the execution process. At the end of the execution, you will see which step passed and which failed, along with the execution log.

While a test is being executed do not start another instance of the same browser until the run is finished!

  1. Once a test scenario is already recorded, click the Execute button in the Test ribbon.

    Test Studio

  2. Select Internet Explorer as the execution browser and click Run. This step will be skipped if you have already set a preferred browser from the Web ribbon.

    Select browser

  3. The Test Studio Test Runner first launches a command prompt window and opens the selected browser.

    Test Runner

  4. By default in the lower right of your screen there is a ribbon which indicates the current step, includes play and pause ability, and shows additional Debug Options if you set a Breakpoint to any step. This is the visual debugger and is a feature you could turn on or off.

    Visual Debugger Indicator

    Click Debugging Options icon in the Test ribbon or the Visual Studio toolbar to turn the debugger on/off and customize the Auto-Pause Options, if errors occur during the execution.

    Test Studio

  5. Enable the Toggle Annotation button to have the browser annotate each step with a brief message and by highlighting that step's element. This will also slow the test run by the configured amount (in milliseconds) between each step. You can set it either from the menu or by entering a custom value.

    Toggle Annotation

Execution Results

When the test execution is complete, there will be an indication for each step if it Passed or Failed. Test results are automatically generated and details can be reviewed by clicking on View Log.

View log

The results from test list executions are available in the Results tab.

In this article
Not finding the help you need? Improve this article