Category: Testmate

UI Automation | Set Root For AUT

The code below demonstrate the usage of SetRoot method for UI automation.  When a root is set, the Testmate engine accepts the newly set object as parent instead of the desktop. By doing this, the performance of the scripts can be improved as it reduces the time of object identification. 1 2 3 4 5

Chapter 8 – Execution From Vbscript

You can execute the Testmate scripts from vbscript in the same way it is run using command line Copy the following code in a .vbs file and run it. VbScript 1 2 3 4 5 'Create Shell Object using vbscript Set obj = CreateObject("Wscript.Shell")   'Run the shell command with parameters obj.Run """C:\<strong>Testmate </strong>\TesterAt.exe""    ""c:\TestPath\Testname.jts"""'Create

Chapter 7 – Execution From Command Line

You can run the Testmate scripts from command line by passing the test name as parameter.   E.g. C:\Testmate >TesterAt.exe  c:\TestPath\Testname.jts   The Execution takes place with the tool in invisible mode and results are reported in the report path configured in the config.xml

Chapter 6 – Create a Test

Create Test   Launch Testmate and click on  ‘ + ’ (New) button to create a new test   2. Write the code as you would like and click on save button   3. Save the file in .jts format. Remember the scripts can be only be saved as .jts format and libraries  can only

Chapter 5 – Object Repository

Object Repository Object Repository or as we say OR is an XML file which contains the description of objects. The OR path has to be specified in config file. Although you can use notepad but It is recommended to use microsoft XML Notepad (free to download )to work on config file The above Or in Notepad looks

Chapter 4 – Object String | Webdriver

Object String Object String is a string which is used to identify an automation object based on its attributes and hierarchy. In Webdriver we have following locators to identify an object: XPath Id Name TagName ClassName CssSelector LinkText PartialLinkText   The object string for webdriver has the following format: <Locator>::valueThe object string for the search

Chapter 3 – Object String | UIA

Object String Object String is a string which is used to identify an automation object based on its attributes and hierarchy in a particular application. Any tool can be used for object identification, ‘Microsoft Inspect’ is the recommended tool. (You can download it for free from Microsoft’s website. It also comes bundled with windows SDK)

Chapter 2 – Reserved Objects

Reserved objects To facilitate quicker automation a few objects have been reserved as below. uia : This object is used to interact  with all the applications supported by UI   Automation. wd:  This is the reserved object for webdriver. native: This object can invoke all the native methods. util:  This object is used to invoke various

Chapter 1 – Setting Up Environment

Environment Setup Setting up a config file is the most simple thing in the entire process. Before creating a test file, a Config.xml file must be created in the test folder (Test will throw an error if you do not have a config file in your test folder) A test folder can have a multiple