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
  • Getting started
  • API Explorer and API Call Designer
  • Import your Swagger or OpenAPI specification
  • API Model and generated Classes
  • Using the API Model in a Test case

Was this helpful?

  1. Designer
  2. The development environment
  3. Tool Window Overview

API Testing

Generate an API Client to test your API

PreviousImage ExplorerNextTestResults.io options

Last updated 1 year ago

Was this helpful?

Getting started

In case you have not yet created a solution , follow our guide on how to create a Solution in Visual Studio. During the creation wizard create a Software Version with Installation Type "API"

If you already have a solution create the API Software Model in the Portal and add it to your Solution using the Testresults.io Context Menu:

API Explorer and API Call Designer

For API Testing you will mainly use the two windows API Call Designer and API Explorer. The API Call Designer helps you to create and edit saved API Calls. The Api Explorer is used to give you an overview of the saved API Calls.

Import your Swagger or OpenAPI specification

The easiest way to start API Testing is to import the Swagger or OpenAPI specification file of your API. You can still use all functionality in case you do not have a API specification file, use the API Call Designer to create your API Model.

Note: We support Versions v2.x and v3.x and while APIs may be defined in either YAML or JSON format, the importer only supports JSON files for now.

To import your Json file navigate to the API Explorer and select the Import Icon.

In case you already created an API Model for the same API you can still import a file. But already saved API calls will be deleted and overwritten by the import.

After the import the API Explorer will display the API structure. A subfolder will be created for each Tag, Path and Operation Verb. The last element in the hierarchy is an example API Call which is automatically generated. If you double click on it you can edit and test the API call inside the API Call Designer. In case your API changes you can also add new Paths and Operations using the API Call Designer.

API Model and generated Classes

The imported or manually saved API Calls will also create a C# Project and Classes which will be used in the Test case itself.

The project contains a main class (in this example in the testresultsio.cs file) which has access to all the different Api Paths. For each Tag a Class is generated in the Folder Api, for each Schema Object a class is generated in the Model folder.

Following the same principle as with our Screen classes, each class is split into a ".cs" file which you are free to extend and a generated "g.cs" partial class file.

Make sure to regenerate the Classes incase you change something, using the Icon in the API Explorer.

Using the API Model in a Test case

In case you do not have created a Test case yet, use the context action on the Solution to create one. During the creation make sure to select the API Model as the Software model, so all project references are automatically created.

Inside the Testcase the Api is accessible using the Keyword Api

Add an API Model by right clicking on the Solution in the Solution Explorer
The API Explorer and API Call Designer can be found under Extensions --> TestResults.io --> API Explorer
Use the Import Icon to load you API specification file
This warning will be displayed if a project already exists for the API
API Explorer displaying the complete structure of the API. The API Call Designer is used to edit and test the API Model.
The solution explorer shows the created API Project in this example for the testresults.io API
Each Class is split into partial Classes
Icon to regenerate the class files
Right click on the Solution to create a Test case.
Select the API project as the Software model
Example on how to use the generated classes inside a Test case