Rename Recorded Controls
How to rename the controls that will be generated for the Test Case Generator
Last updated
How to rename the controls that will be generated for the Test Case Generator
Last updated
Please edit only the elements described in this article; other changes might negatively affect the model.
The Recorder Model is the one that stores the UI Tree and the Recordings.
The Model can be found on the Project directory in the Raw folder with the name model.json
Once you open the model file, we will be only working on the ComponentTree area (the UI Tree).
The Component is a representation of the UI element recorded, and is only inside the ComponentTree.
Once you find the component to edit its name, type and selectors, it will look like these
This structure could change over time. But will always be inside ComponentTree
The UserDefinedProperties is a structure that every Component has.
It will store desired properties of the actual component for the generated solution.
Name ➔ string
Type ➔ string
Selectors ➔ List
To change the Name and Type just change the null for what you want inside of double quotes (").
If you don't know the Type which is a QualityMate Interface just leave the null, the TestCasesGeneration will fill.
The selectors are a List of Selector which has Technology and Value (only CSS selector is supported in the TestCasesGenerator).
If we want to add a selector for the component, first add square brackets ([,]) to Selectors
Now we can add Selectors inside the list with curly brackets ({,}). Also, both Technology and Value inside double quotes (").
If you want more than one just add a comma (,).
If you are in the Recorder UI, these changes will be affected after loading the model.