Overview

The TestResults.io designer is an extension to Visual Studio which allows you to create and execute test cases during your test automation development cycle.

Introduction

The TestResults.io designer has been create in order to help the software developers and testers in designing robust and easy to maintain test models. The Designer together with the TestResults.io engine allows you to build a test model based on the images and text displayed on the Subject Under Test (SUT). Any steps which is being done in a manual test case can be easily replaced by a step created with TestResults.io

Keep in mind that the Designer is not a capture and reply tool and does require basic C# coding skills in order to create your test model and write your test cases.

Designer: Environment Viewer

How does the TestResults.io designer work?

The designer contains of several modules which will allow you to create test cases and test models fast and efficiently. The bottom line is that it is an extension to Visual Studio. Therefore, you can benefit from all of the advantages of the object oriented programming as well all of the advantages of C# programming language. You will still need to write code however the designer will help you to prepare what you need in order to do so. The flow presents itself as follows:

The Test Case as well as the Test Model are developed locally on the test engineers/automation engineers PC. The execution of the test case (hosting) is done locally however the test case itself is executed on the desired dedicated test environment.

Once the test case (and/or test model) are developed and proven to work locally, the user can upload the test case directly from the Designer to the Portal and afterwards control the execution of the test case from the Portal. The files which are uploaded to the Portal from the Designer are called TestContainers.

The detailed explanation on how to execute the test cases from the Portal level can be found in chapter TestSets.

The option to upload the designed test cases and test models is not available for the Community edition license

Different methods of identifying objects on the Subject Under Test

The TestResults.io engine allows you to identify objects on the screen in two different ways:

Image Recognition

The designer allows you to take images of the controls of Subject Under Test. Those images are afterwards used within the code you write so that you can interact or observe the SUT. The details of taking images and coding will be presented in the next chapters however from a high level overview it looks as follows.

  • We take an image with the Designer e.g.

  • We reference the image within the test case/test model code e.g.

t.Testee.FindImage(Images.GooglePage.GoogleSearch);
  • or

t.Testee.Mouse.Click(Images.GooglePage.GoogleSearch);
  • There are also more advanced options which will be a part of the next chapters like

GoogleSearch.Click(AreSearchResultsDisplayed);

Keep in mind that the Designer doesn't limit you to UI tests only. You can also replace the engine with the engine of your desire e.g. Selenium

Text Recognition

Whenever you cannot use the Image Recognition you can use the Text Search (OCR Search) to identify objects of the SUT. Following the Google Search button example it would look as follows:

t.Testee.FindText("Google Search");
  • or

t.Testee.Mouse.Click(text: "Google Search");

The next chapters will also show you the details of how to effectively search for text.