Writing and maintaining test scripts are two important tasks directly affecting the effectiveness and efficiency of test automation. One dilemma in test automation is that if scripts are quickly generated using tools, they may not be executable or playable when the application under test (AUT) changes. This is exactly the problem with the recording capability offered in many existing test automation tools. The cost of maintaining test cases and scripts generated by recording is too high that makes benefits of test automation unattainable.
To help address this problem, Katalon introduced the new recording capabilities with several key benefits to help automation engineers improve their working processes and the quality of tests. This advanced recording is the feature not only useful for test automation beginners but also for experienced engineers.
Katalon’s new recording is designed to generate effective, efficient, and maintainable tests that can be collaborated among team members. With this enhancement, the recording becomes an essential part of Katalon Studio.
Record & Playback is incredibly useful for beginners to start within their automation career as it helps generate and execute automation test easily and quickly. However, this approach has several major drawbacks when it comes to using in professional contexts, including :
The recording capability depends heavily on a capture engine such as Selenium Webdriver which does not fully address the complexity of modern user interfaces. The generated test scripts may not be playable and fragile to changes in the AUT. For example, modern UI framework such as AngularJS has dynamically generated ID for HTML components. Therefore, scripts created by ID locator approach which is popular in recording will be more likely not playable under a small interface change.
Test cases generated from recording are linear, and they are difficult to be reused across test cases and suites. Moreover, the recording process is usually not designed in such a way that encourages automation engineer to leverage existing scripts.
In automation testing, maintainability is always the main concern in any long-term projects as the maintenance cost of test scripts can be enormous if the AUT is changing.
Learn basic “Record & Playback” using Katalon Studio here Creating test case using Record & Playback
Fortunately, Katalon’s Advanced Recording offers an answer to address the dilemma in generating tests quickly while ensuring them to be maintained easily. With Advanced Recording, automation engineers are able to enjoy fast test generation while still being able to maintain and reuse test cases easily. Furthermore, in a team with diversified skill sets, it’s essential to allow team members to collaborate effectively in creating test cases. With Advanced Recording, this goal can be achieved.
In Katalon Studio 5.5, the recording capability has been improved with the spirit of Advanced Recording: efficiency, effectiveness, maintainability, and collaborativeness.
Users are now able to load all steps of a test case to the recording window for continuing to record and generate new test steps for the test case. As shown in the figure below, when users select a test case and click on Record, a prompt will be shown to confirm if they want to record for the test case.
Test steps and corresponding dependencies of the selected test case are loaded to the recording window as shown below.
During recording, most test step types can be added. The Variables section is available for editing. Test objects in the object repository can also be customized throughout the recording process and are synched with the objects in the test steps.
Be able to execute specific steps while recording. Multiple options for executing test steps such as Run All Steps, Run Selected Steps or Run From a Selected Step are available. Logs and execution status are also tracked properly.
After recording, there’s an default option to merge recorded test objects with the existing ones if their names match.
With the above functionalities, the new recording provides the following benefits:
Note: This video is contributed by Karthik K.K from http://executeautomation.com
Katalon Studio continues improving its features to be the best that a test automation solution can offer. More features are under development to be released in the near future. Below are some:
Read more: The complete list of Exceptions in Selenium
Enjoy Katalon Studio v5.5 and let us know your feedback. Feel free to spread out this great news to the community.