Adding a new TestObject
You can add a new TestObject when there are no TestObjects with the method that you want
to expose for a control, available within the set of predefined TestObjects provided by HCL DevOps Test
UI (Test UI). For example, you can expose any
button control as GuiTestObject()
and operations such as
click()
and doubleClick()
are defined as methods in it. You
can create a new TestObject if you want to introduce a new method call such as
myClick()
, which is not defined in any of the existing
TestObjects.
Before you begin
About this task
Procedure
- Create the constructors for the TestObject.Note: Every TestObject must have five standard constructors. New methods that are defined follow these constructors.
- Define new canonical names for the TestObject in the customization
file.
You must specify two entries for every canonical name for both Java and .NET TestObjects in the customization file, because they are developed in both Java and .NET.
- Map the proxies to the newly created TestObject.
- Build the TestObject binary files.
You can group all the Java TestObject binary files in a single JAR file and the .NET TestObjects in a single .NET assembly.
- Deploy the TestObject binary files by copying the files to the Test UI customization directory, C:\ProgramData\HCL\DTUI\customization.
- Restart Test UI.