🖋️
QualityMate
  • QualityMate
  • Getting Started
    • Introduction
    • Why QualityMate
    • Architecture
    • Supported Web Browsers
    • Glossary
  • Components
    • UI Player
      • Basic Concepts
      • UiPlayer
      • MSTest Integration
      • Samples
        • QualityMate Sample Desktop
        • QualityMate Sample Web
        • QualityMate MSTest Integration Sample Desktop
        • QualityMate MSTest Integration Sample Web
        • QualityMate Integration with Test Frameworks
        • Web Authentication Sample
      • QualityMate Project Template
    • UI Recorder
      • Basic Concepts
      • Setting Up the Recorder
      • Validating an Element
      • Generating QualityMate Solution
  • Tools
    • File Comparators
    • Image Processor
    • Project Merger
    • Test Case Generator
      • Filters
      • Rename Recorded Controls
  • Basic Concepts
    • Page Object
      • Work Guide
    • Controls
      • Control Types
        • Generic Types
        • Desktop types
        • Web Types
        • WebMap types
          • Kendo PowerBuilder
          • Kendo WinForms
          • Kendo Silverlight
      • Interactions
        • SendKeys
        • Validate
    • Selectors
      • Selectors in Code
      • Default Selector
      • Shared Selector
      • Selectors Category
        • CSS Selector
        • XPath Selector
        • Image Selector
        • Frame Selector
      • Identifying Selector
        • Identify for Windows Desktop
        • Identify for Web
  • How to Guides
    • Setting Up the Configuration
      • Parameters
      • Context
      • Loading External Data
    • Awaiting for the Application
      • Busy Loaders
      • Retries
    • Defining Controls
      • Extending Controls
      • Control Slice
      • Control Collection
    • Logging on Tests
      • QualityMate Reports
      • Logging
  • Help
    • Best Practices
      • Environment
      • Tests
      • Page Objects
      • Validations
      • Interactions
      • Image Comparisons
    • Known Issues
    • Continuous Integration
      • Agents Session
    • Upgrading QualityMate
      • From version 7 to version 8
      • Previous Versions
      • How to switch from TestFeature to UiTest
    • VS Test
      • Command Line
      • Generate Reports
  • API
    • Control Interfaces
      • IButton
      • ICheckBox
      • IComboBox
      • IControl
      • IControlSlice
      • IDateTimePicker
      • IElement
      • IGrid
      • IGroupBox
      • ILabel
      • IListBox
      • IMenu
      • INumericUpDown
      • IPageObject
      • IProgressBar
      • IRadioButton
      • IRadioButtonGroup
      • ISplitButton
      • IStatusStrip
      • ITab
      • ITextBox
      • IToggleButton
      • IToolBar
      • ITreeView
    • Behavior
      • ICheckableControl
      • IList
      • ITextControl
    • Enums
      • ClickType
      • KeyModifiers
      • MouseButton
  • Changelog
    • Changelog
      • Version 8
      • Version 7
      • Version 6
      • Version 5
      • Version 4
      • Version 3
Powered by GitBook
On this page
  • Setting Up
  • Filling the Filter.json

Was this helpful?

  1. Tools
  2. Test Case Generator

Filters

PreviousTest Case GeneratorNextRename Recorded Controls

Last updated 3 years ago

Was this helpful?

The Filters is a JSON file that specify which controls will be converted to a Page Object.

Filters may be handy when there are User Controls or controls with a lot of sub controls.

Setting Up

First add a new folder with the name Filter in your Recorder Project folder then create a new file with the name Filter.json, you may have a structure like this:

📂 RecorderProjects
┣ 📂 Project1
┃  ┣ 📂 Raw
┃  ┃ ┗ 📄 model.json
┃  ┣ 📂 Filter
┃  ┃ ┗ 📄 Filter.json
┃  ┗ 📜 Project1.rp

The name for folder and files are case sensitive

After or using the you will have the Filter folder and the Filter.json file in the Recorder Project folder.

Filling the Filter.json

Once we have our file, then its time to fill it with the filters that we want. The filter will take into account two properties for each component: ClassName and ControlType. You can identify them using .

In the file we need to add the key with the name InnerPageObjectFilters and we will populate it with a list. Inside the list we create an object with our two properties like the following example:

{
  "InnerPageObjectFilters": [
    {
      "ClassName": "MyClassName",
      "ControlType": "MyControlType",
    }
  ]
}

If you need to add more filters create a new object; also you leave one property as an empty field adding the null word or omitting it.

{
  "InnerPageObjectFilters": [
    {
      "ClassName": "MyClassName",
      "ControlType": "MyControlType",
    },
    {
      "ClassName": "MyNewClassName",
      "ControlType": null,
    },
    {
      "ControlType": "MyOnlyControlType",
    },
    {
      "ClassName": "MyOnlyClassName",
    },
  ]
}

Once the file is in the folder the Test Case Generator will use to create Page Objects.

Generating QualityMate Solution
Test Case Generator
Identyfing Selector