TestResults.io
  • What is TestResults.io
  • System Architecture
  • Regulated Markets
    • Health Care Industry
    • Financial Services Industry
  • What's new?
    • Update Instruction
      • Update of the Designer extension in Visual Studio
      • Update the Execution Engine
      • Update the Base- and Environment Models
    • Migration to new project file
  • Designer
    • Overview
    • First Steps
    • Installation
    • TestResults.io solution
    • The development environment
      • Tool Window Overview
        • Test Environments
          • Steps to configure a SUT VM
          • How to access files on the system under test
        • Remote Viewer
          • Control Mode
          • Capture Mode
          • Screen Editor
          • Capture Single Image
        • Screen Explorer
        • Test Case Designer
        • Image Explorer
        • API Testing
        • TestResults.io options
          • Engines
          • Servers
    • Test Cases
      • Adding Test Cases
      • Test Case structure
      • Simple Test Case (Example)
      • Executing your Test Case
      • Generating Test Containers
      • Publishing Test Cases
      • Execution Variables
    • Software Models
      • Adding SW Models
      • Referencing the Model in the Test Case
      • Generating Test Containers
      • Publishing SW Models
      • Screens and Screen Elements
        • Tables
        • Visual Sense
        • Custom Screen Elements
    • Installers
      • Adding Installers
      • Generating Test Containers
      • Publishing Installers
    • Automation Framework Reference
      • Attributes
      • Enumerations
      • Filters
        • IImageFilter Interface
        • Select
        • Resize
      • GlobalEngineParameters
      • ImageDetectionParameters
      • ImageReference
      • Interfaces
        • ITester Interface
          • ITester Methods
          • ITester Properties
        • ITestee Interface
          • ITestee Methods
        • IConnections Interface
          • IConnections Methods
          • IConnections Properties
        • IDebug Interface
        • IEngineResult
        • IHelpers Interface
        • IImageHelper Interface
          • IImageHelper Methods
        • IKeyboard Interface
          • IKeyboard Methods
        • IMouse Interface
          • IMouse Methods
          • IMouse Properties
        • IReport Interface
          • IReport Methods
        • ISUTConnection Interface
      • OcrEngineParameters
        • Best practise
        • IronOcrEngineParameters
        • LEADOcrEngineParameters
        • OcrEngineRelatedCharacters
        • OcrPreprocessingParameters
      • ResultRectangle
      • SutNotReadyException
      • TestStepAbortedException
    • FAQ
      • Two-factor authentication (2FA) and One Time Passwords (OTP)
      • Receive and verify Emails
      • Using Excel as test data source
      • Verify PDF Content
  • Portal
    • Overview
    • First Steps
    • User's Guide
      • Login
      • Projects
      • Dashboard
      • Test Cases
      • Software & Environments
      • Test Sets
      • Job Queue
      • Management
      • Notifications Summary
    • Automation Engineer's Guide
      • Test Automation Workflow
      • Automating a test case
      • Enabling Software & Environments
    • REST API Reference
      • Authentication
      • Projects
      • Test Sets
      • Test Cases
      • Test Plans
      • Test Reports
      • Files
      • Software
      • Environments
      • Untitled
      • Executions
      • Favorites
      • Statistics
      • User Management
      • Customer Management
      • Notifications
      • Configurations
      • Invoicing
  • Models
    • Overview
    • Base Model
      • BaseScreen
        • BaseScreen Properties
        • BaseScreen Methods
      • OnScreenElement
        • OnScreenElement Methods
        • OnScreenElement Properties
      • Primitives
        • Button
          • Button Methods
          • Button Properties
        • Checkbox
          • Checkbox Methods
        • ContextMenu
          • ContextMenu Methods
          • ContextMenu Properties
        • Dropdown
          • Dropdown Methods
          • Dropdown Properties
        • DropdownMenu
          • DropdownMenu Methods
          • DropdownMenu Properties
        • GenericScroller
          • GenericScroller Methods
          • GenericScroller Properties
        • HorizontalScroller
        • IconButton
          • IconButton Properties
        • Label
        • LabelWithButton
          • LabelWithButton Properties
        • LabelWithCheckbox
          • LabelWithCheckbox Properties
        • LabelWithValue
          • LabelWithValue Methods
          • LabelWithValue Properties
        • PwTextBox
          • PwTextBox Methods
        • TextBox
          • TextBox Methods
          • TextBox Properties
        • Tables and lists
          • Column
            • Column Methods
            • Column Properties
          • ItemList
            • ItemList Methods
            • ItemList Properties
          • Row
            • Row Methods
            • Row Properties
          • TableBase
            • TableBase Methods
            • TableBase Properties
        • LabelWithElementBase
          • LabelWithElementBase Properties
      • Enumerations
      • Extensions
        • EngineResultExtensions Methods
        • EnumExtensions Methods
        • ReportExtensions Methods
        • StringExtensions Methods
        • TesterConnectionExtensions Methods
        • TesterDebugExtensions Methods
        • TesterHelperExtensions Methods
        • TesterMouseExtensions Methods
        • TesterOnScreenElementExtensions
        • TesterSelectExtensions Methods
      • Helper Classes
        • BaseModelHelpers
          • BaseModelHelpers Methods
          • BaseModelHelpers Properties
        • Attributes for Designer
        • ListHelpers
      • Exceptions
        • ElementNotFoundException
        • InteractionFailedException
        • ScreenNotFoundException
      • Interfaces
        • IAppBasics Interface
          • IAppBasics Methods
          • IAppBasics Properties
        • IBrowser
        • ICommandLineWindow
        • IScroller Interface
          • IScroller Methods
          • IScroller Properties
        • ISutLocale Interface
          • ISutLocale Methods
          • ISutLocale Properties
        • ISystemHelpers
        • ISystemInteractions
        • IWindow
    • Environment Model
      • Windows
        • Screens
          • CmdWindow
            • CmdWindow Methods
            • CmdWindow Properties
          • FileDialog
            • FileDialog Methods
            • FileDialog Properties
          • FileExplorer
            • FileExplorer Properties
          • RunWindow
            • RunWindow Methods
            • RunWindow Properties
          • Window
            • Window Methods
            • Window Properties
        • SutLocale
          • SutLocale Methods
          • SutLocale Properties
        • SystemHelpers
          • SystemHelpers Methods
          • SystemHelpers Properties
        • SystemInteractions
        • WebBrowser
          • Browser
            • Browser Methods
            • Browser Properties
          • BrowserScroller
            • BrowserScroller Methods
            • BrowserScroller Properties
          • AuthenticationDialog
            • AuthenticationDialog Methods
            • AuthenticationDialog Properties
          • DownloadDialog
            • DownloadDialog Methods
            • DownloadDialog Properties
        • EnvironmentModel Enumerations
        • Interfaces
          • IWebAppBasics
            • IWebAppBasics Property
Powered by GitBook
On this page
  • Use Cases
  • Excel content requirements
  • Import Excel
  • Use Variables in a Test Case
  • Test execution with Excel data (Visual Studio)
  • Test execution with Excel data (Portal)
  • Looping interactions with different Test Data
  • Update Excel data

Was this helpful?

  1. Designer
  2. FAQ

Using Excel as test data source

PreviousReceive and verify EmailsNextVerify PDF Content

Last updated 7 months ago

Was this helpful?

Use Cases

The two main use cases for Excel data are:

  • Use different test data as input for each test case execution (e.g. login with different credentials, enter different data in a form etc.)

  • During a test execution (e.g. verify all rows in a table, )

Excel content requirements

To be able to import your Excel file please make sure to meet the following requirements:

  • Row 1 contains the name of each column. Make sure each name is unique. These names will be used as variable names in the automated test case.

  • There are no empty rows in between data rows.

  • Only the first sheet of the excel will be imported

  • Save the file as .xlsx

  • The name of the file will also be imported and used as a prefix for all variables.

The following image displays a simple example: Row 1 contains the header names and there a 3 data rows.

Import Excel

The "Manage Variables" dialog will be opened and shows a preview of the currently selected row. Note that the value in "Selected Row" corresponds to the row number in Excel. If you start an execution of your Test Case the values of that row are loaded into the corresponding Variable keys.

If you change the selected Row make sure to close the Dialog with the Save button.

Use Variables in a Test Case

The values of the currently selected row are loaded as Variables. These variables can be used as values for parameters. In this example we selected the Operation "Enter" on the Textbox "Email Address". Click on the "Use variable" icon to switch the parameter from free text entry to variable.

Test execution with Excel data (Visual Studio)

After selecting the Excel Variable as parameter in the Test Case designer, start an execution and the value of the excel row 2 is entered into the textbox.

To execute the Test Case with different test data, reopen the "Manage variables" dialog and change the selected row.

Test execution with Excel data (Portal)

When you are done with the Test Case Design, upload it to the portal as usual.

Start an execution, multiple instances will be started and all executions are run in parallel. In the results you will have multiple report instances, each using a different excel row as test data.

Looping interactions with different Test Data

The second use case for excel test data is to repeat an interaction with different data during a single test execution. In this example we will verify the rows of a table in our application with the test data given in an excel file.

Update Excel data

To update the Excel data simply repeat the import of the updated file.

A warning dialog will be displayed that your data will be updated.

The columns will also be updated. Note that if you remove a column Test Cases that used this property will need to be changed before you can successfully run it again.

To import your Excel file into the Test Case click on the icon in the Test Case Designer (Designer Version required)

Before the actual import a dialog will show you what data has been found. If this preview does not show the expected data please check the chapter .

Open the Test Case in the and switch the Test Type to Performance and enter the number of Data Rows in the the Instances field (in this example we had 3 data rows in the )

Please note that in this use case the excel also has to and can be in the same way. Just the "Selected Row" in the variables dialog has no impact as all rows will be used in the loop.

from the excel as Parameter values and also select the Checkbox "Loop over all TestData"

4.8 or newer
Excel content requirements
Portal
excel
meet the same requirement
s
imported
Use the Variables
loop over all data
Example of a valid test data excel file
Click on the "Use variable" icon to switch a parameter from free text entry to variable selection.
The "LoginData:Email" is used a parameter value
Result of the execution
reopen the dialog
Change the selected row and close the dialog with save
Row 3 of the excel is now used as test data, so a different email is entered
Upload the Test Case to the Portal
Select Test Type "Performance" and the number of instances which equals the number of data rows in the Excel (Column header row not included)
Table in our test application which needs to be verified
Excel data used in this example
The selected Row can still be used as preview for the data, but the loop will use all rows of the excel
Select the "Loop over all SignInData" Checkbox, it will become visible as soon as a Excel variable is selected as a parameter
During the execution all 3 rows are searched and verified
The Result of the execution shows that the 3 rows given in the excel file were verified