Scan the demo application

This chapter describes step 1 in the Tricentis Tosca First Steps Tutorial.

What will you do?

You will scan the Tricentis Tosca demo application.

Why is that important?

The pages of the demo application consist of various elements, such as text boxes, buttons, or drop-down menus. These elements are called controls.

Ultimately, you want the TestCase to interact with these controls: enter text, click buttons, use the menu.

So you need to get the controls' technical information into Tricentis Tosca. You do that by scanning all pages that you want to steer. Tricentis Tosca saves the information as a Module. You will later use this Module to tell your TestCase what to do.

For more information on creating Modules, see chapter "Create and manage Modules".

Scanning process

To scan the demo application, follow the steps below:

  1. Open all applications that you need for this tutorial:

Open a workspace

  1. Create a new folder where you will save your Modules:

Create a new Module folder via the mini toolbar

  1. Rename the new folder to Vehicle Insurance.

  2. Start the scan. To do so, go to the Modules menu and click Scan->Application.

    Alternatively, you can right-click the Vehicle Insurance folder and select Scan->Application from the context menu. For more information on ribbon and context menus, see chapter "Tosca Commander menus".

  3. This opens the Select Application window, which displays all applications that are currently open on your machine. Select the one you want to scan by clicking on the respective tile.

Click on the tile that shows the application you want to scan

This opens the scan interface on the Basic view.

Since the demo application is simple, we'll use the Basic view. Depending on the complexity of your application, you may prefer other views (see chapter "Navigate the Tosca XScan UI").

Scan interface in Basic view

Create Module 1: demo application start screen

  1. At run-time, Tricentis Tosca should click on the link Automobile on the demo application start screen. This starts the quoting process for automobiles. Consequently, you need the technical information for this control.

    To transfer the information to Tricentis Tosca, click on Automobile on the demo application start screen. This highlights the link in blue and adds it to the scan window.

Select the control Automobile on the Tricentis demo application start screen

  1. By default, Tricentis Tosca uses a window's caption as the name for the Module.

    For this tutorial, change the Module name from Tricentis Vehicle Insurance to Home. To do so, click onto the name in the scan interface and enter the new one.

  1. Click on Finish Screen. This concludes your work on the first Module.

The scan interface stays open, so you can continue to create Modules.

Create Module 2: Enter Vehicle Data

  1. In the demo application, click on Automobile to access the next page: Enter Vehicle Data.

    At run-time, Tricentis Tosca should fill out all fields that are marked with an * asterisk. Consequently, you need to get their technical information into Tricentis Tosca.

    Additionally, you need the Next button, so Tricentis Tosca can navigate to the next page.

Enter Vehicle Data page in the Tricentis demo application

  1. To start scanning the Enter Vehicle Data page, click on Scan Screen in the scan interface.

  2. On the Enter Vehicle Data page, click on the following controls:

    • All fields that are marked with an * asterisk.

    • The Next button.

    Ensure that the icons next to the controls in your scan window are the same as in the screenshot below. If an icon looks different, you have selected a different item on the screen.

Controls of the Enter Vehicle Data page

  1. Ensure that your Modules and controls have simple, intuitive names. This makes your work much easier down the line.

    For this tutorial, rename the controls [kw] and MM/DD/YYYY. To do so, click on the name in the scan interface and enter the new one.

    • Rename [kw] to Engine Performance.

    • Rename MM/DD/YYYY to Date of Manufacture.

  2. Click on Finish Screen. This concludes your work on this Module.

  3. Before you proceed to the next page, fill out the Enter Vehicle Data page as shown in the screenshot below.

    You need to fill out the fields, so that the Select Price Option screen displays a quote later on.

Fill out the fields on the Enter Vehicle Data page

Create Module 3: Enter Insurant Data

  1. Once you have filled out the Enter Vehicle Data page, click on Next to access the next page: Enter Insurant Data.

    At run-time, Tricentis Tosca should fill out all fields that are marked with an * asterisk. Consequently, you need to get their technical information into Tricentis Tosca.

Enter Insurant Data page in the Tricentis demo application

  1. To start scanning the Enter Insurant Data page, click on Scan Screen in the scan interface.

  2. On the Enter Insurant Data page, click on the following controls:

    • All fields that are marked with an * asterisk.

      For the field Hobbies, click on the check boxes next to the individual hobbies.

    • The Next button.

    Ensure that the icons next to the controls in your scan window are the same as in the screenshot below.

Controls of the Enter Insurant Data page

  1. Rename the control MM/DD/YYYY to Date of Birth.

  2. Click on Finish Screen. This concludes your work on this Module.

  3. Before you proceed to the next page, fill out the Enter Insurant Data page as shown in the screenshot below.

Fill out the fields on the Enter Insurant Data page

Create Module 4: Enter Product Data

  1. Once you have filled out the Enter Insurant Data page, click on Next to access the next page: Enter Product Data.

    At run-time, Tricentis Tosca should fill out all fields that are marked with an * asterisk. Consequently, you need to get their technical information into Tricentis Tosca.

Enter Product Data page in the Tricentis demo application

  1. To start scanning the Enter Product Data page, click on Scan Screen in the scan interface.

  2. On the Enter Product Data page, click on the following controls:

    • All fields that are marked with an * asterisk.

      For the field Optional Products, click on the check boxes next to the optional products.

    • The Next button.

    Ensure that the icons next to the controls in your scan window are the same as in the screenshot below.

Controls of the Enter Product Data page

  1. Give intuitive names to your controls:

    • Rename MM/DD/YYYY to Start Date.

    • Rename the first Yes to Euro Protection.

    • Rename the second Yes to Legal Defense Insurance.

  2. Click on Finish Screen. This concludes your work on this Module.

  3. Before you proceed to the next page, fill out the Enter Product Data page as shown in the screenshot below.

The Start Date must be at least two months in the future. You may need to pick a different date.

Fill out the fields on the Enter Product Data page

Create Module 5: Select Price Option

  1. Once you have filled out the Enter Product Data page, click on Next to access the next page: Select Price Option.

    This page displays all available insurance packages for the vehicle, insurant, and product data that you entered. You can select a package by clicking the respective radio button in the row Select Option. Note that the quoted prices may differ from the ones in the screenshot below.

Note the quote for the Platinum package.

You will later create a TestCase that verifies whether the insurance website calculates the correct quote for this package. If the prices you see differ from the ones in the screenshot, you need know the correct quote.

Select Price Option page in the Tricentis demo application

  1. To start scanning the Select Price Option page, click on Scan Screen in the scan interface.

  2. The information in the Select Price Option page is in the form of a table. Tables tend to be slightly more complex controls. Consequently, we will use the Advanced view of the scan interface (see chapter "Navigate the Tosca XScan UI").

    To access the Advanced view, click on Advanced in the scan interface.

Access the Advanced view of the scan interface

  1. The Advanced view displays all controls on the current screen. Choose the controls that are relevant for your Module by selecting the respective check boxes.

    For this tutorial, select the check box for Home and for priceTable.

Select relevant controls in the Advanced view of the scan interface

  1. Click Finish Screen.

  2. Now you have all Modules that you need for your TestCase.

    To close the scan window and return to Tosca Commander, click Close.

You can find your new Modules in the Vehicle Insurance folder that you created at the start of this chapter.

What's next

You have your Modules. Now it's time to create your TestCase.

Proceed with chapter "Create the demo TestCase".