UiautomatorViewer-Plus

aguda

Software Development Manager

Posted on November 26, 2024

UiautomatorViewer-Plus

Automation script recorder and debugging tool based on Uiautomator secondary development. This tool will make you to quickly develop automation scripts without needing to know more about the coding. You just need to record script based on this tool, and then debug the script through the tool.
Image description
Image description
Now, let's take a look currently implemented functions, from left to right is system settings, Step adding and modifying, waiting for elements display, clicking elements, saving text, input text, adding assertions, deleting nodes, generating code, refreshing test cases and Debug tool
Image description
System settings, which can set the class names, debug servers, code templates, code output paths and test data.
Image description
Step addition, modification, and common steps. Click on 'My Testing Scenarios' to add new test steps or select common test steps
Image description
Wait for element display. Select the element you want to operate on the screen, and the text of the current element will be displayed by default. If there is no text for the element, use xpath to locate it. The default is to wait for the selected element to display, you can choose to wait for the relative element of that element to display too.
Image description
Clicking an element also uses text locate by default. You can select element, or select other relative elements. You can also set to click if a certain element displayed.
Image description
Save the text. Searching the target element can help you finding the correct element. If there is a resource id, it is used for locate by default. If not, other text relative positioning or custom xpath can be used. Click to find the target element, and the xpath and target element text will be displayed below. Then enter the key and description to save the text
Image description
Input text and searching for the element can help you finding the correct element for the text to be input. Clicking the input box for the text will bring up the second and third interfaces, allowing you to select the text to be input
Image description
Image description
Add assertions to compare the element text displayed on the screen with data in cache and profile setting. Searching for the element can help you in finding the element that needs to be compared. Click the input box at the bottom to select the expected text from the cache, or click the tab on the right to select the expected text from the profile data
Image description
Screen swipe allows you to set the direction, speed, and timeout time of the swipe.
Image description
To generate code, simply click the "Generate Code" button. The generated code includes a feature file, a Step files, a page object Screen, and a multilingual file
Image description
Image description
Image description
Image description
The Debug tool can select a step and debug it, or select an operation, click the Debug button to display the pop-up box below, and click Execute to debug the corresponding code. In the custom tab you can debug any code. You only need to specify the class name, method name, and method parameters. If there are any problems, you can check "Print PageSource" to print out the source code of the current screen.
Image description
Image description

Our github:
https://github.com/jovic2017/uiautomatorviewer-plus

💖 💪 🙅 🚩
aguda
Software Development Manager

Posted on November 26, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

UiautomatorViewer-Plus
programming UiautomatorViewer-Plus

November 26, 2024