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
  • DesignerControlColorAttribute Class
  • ScreenElementsAttribute
  • SimpleModeElementAttribute Class

Was this helpful?

  1. Models
  2. Base Model
  3. Helper Classes

Attributes for Designer

PreviousBaseModelHelpers PropertiesNextListHelpers

Last updated 4 years ago

Was this helpful?

These attributes are associated with classes inheriting from to allow the to use them in the . You can use these attributes for your own implementation of that are defined in the SW Model, e.g.:

    [ScreenElements(
        "appBasics:AppBasics",
        "displayName:string:Name",
        "imageName:Image:Textbox Image",
        "filters:ScreenSelect")]
    [DesignerControlColor("Purple")]
    public class MsDynamicsDropdown : Dropdown
    { ... }

DesignerControlColorAttribute Class

Determines the color of the selection frame in the remote viewer when adding screen elements. Can be any color name from the .

ScreenElementsAttribute

Controls the input masks when adding this type of screen element in the .

Syntax:

public ScreenElementsAttribute(
	params string[] elements
)

Every string in elements describes one parameter of the constructor of the screen element that will be instantiated in the generated screen. The syntax of the individual strings is as follows: "{ParameterName}:{Type}:{PropertyDisplayName}[:ImageName][:({SearchType.Value})][:optional][:notInCtor]" or "{ParameterName}:{ParameterValue}" properties in [ ] are optional

Name

Description

ParameterName

The name of the parameter in the constructor of the screen element, e.g. "content"

ParameterValue

A fixed string that will be directly used as the value of the parameter in the constructor. E.g.:

"tester:t"

Type

The type of the parameter, e.g. string or Image

If the type is an enum, you need to give the possible values in {}; these values will be given as a dropdown list in the screen edior UI. e.g.

"relativePosition:RelativePosition{Right,Under,Left,Above}:Relative Position of Checkbox"

Type strictstring can be used for strings that are validated not to contain whitespaces.

PropertyDisplayName

The name that will be shown in the screen editor UI for this parameter, e.g. "Search Image"

ImageName

If the Type is "Image" it means that one Image can be selected in the screen editor UI. For some controls you need to give multiple images that are present in a folder. In that case the Type needs to be given as "ImageFolder" and the imageName property will determine the name of the particular image in the folder. E.g.:

"activeImageReference:ImageFolder:Active Image:active:(Image)", "inactiveImageReference:ImageFolder:Inactive Image:inactive:(Image):optional"

SearchType.Value

A condition to show this property in the UI based on the selection of the searchType parameter. Requires the parameter searchType to be defined. E.g.:

"searchType:SearchType{Image,Text}:Search Type", "imageReference:Image:Search Image:(Image)", "searchText:string:Search Text:(Text)"

:optional

if the "optional" tag is present, the parameter is optional and does not need to be given in the UI in order to be able to add the screen element in the screen editor UI.

:notInCtor

If the "notInCtor" tag is present, the parameter will be shown in the screen editor UI but will not be included in the generated constructor call.

This is typically used for the searchType selection to switch between image and text search in the screen editor UI, but the generated constructor doesn't need the searchType parameter and distinguishes between image and text based on the type of the imageReference or searchText parameter.

SimpleModeElementAttribute Class

Determines whether or not the element will be available to add in simple mode of the screen editor (add multiple elements). If the attribute is added to an OnScreenElement, the element will be available.

OnScreenElement
Designer
Screen Editor
OnScreenElements
.net colors
Screen Editor