How to Automate a Desktop (client - server) test case

Desktop Locators can be used to automate anything which is displayed on the screen using Desktop commands. To create a Desktop Locator, follow the steps below:

1- Go to Artifacts > Desktop Locators

2- Click + to add a new Desktop Locator 

3- Enter the locator's name, keywords and upload an image that you want this locator to interact with. For example, take a screenshot of the Start button.

mceclip0.png

4- Once the image is uploaded, click Save. 

5- Create a Test Case and use this locator with one of the various Desktop commands. The example below performs locking Windows user:

  • Step 1: Click on Windows 10 start button

mceclip0.png

  • Step 2: Click on Calculator which is pinned to Start menu

mceclip1.png

PS: You can adjust Similarity to improve the accuracy of the element search with a range between 0.1 and 0.98.

PS: You can use Crop Region Offset to designate an area for execution to look through to reduce execution duration and ensure additional accuracy. The values provided will crop the area. For example, if you provide 50 points in the Left field, only the 50% of the right side of your screen will be interacted with.

6- Run the test case locally to perform the action in the test case. You will notice that the object has been identified and clicked as instructed by the command.

 The following video executes the same test case above.

NOTE: If you are using MacOS, please refer to How to set up Desktop tests to work on MacOS

 

Was this article helpful?
0 out of 1 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.