I think 2021 will be an interesting year in our industry and test automation will become much more popular, I am intersting your opinion in this question: what kind of features should a test automation tool have ?
What features that are relevant depends on the specific use case: what is being tested and who is to be using the tool/framework. Here are some high level feature that could be relevant:
- Integrations to test case management, bug trackers and event handlers
- Integrations to pipeline and build management tools
- handling mobile
- handling things to web (desktop, mainframe, citrix, legacy)
- option to test across the desktop not only inside web
- ease of use, visual programming, low-code
- options for reusable components, high coupling, low cohesion
Please find below the list of features that a test automation tool should have :
1. Ability to insert code:
2. Easy assertions:
Recording a scenario is fairly easy to do. As the user takes action on an application, the tool records those actions. However, when a user validates the actions, that does not usually include a web action. It’s something that you do with your eyes.
Because of this, adding assertions within code-less automation tools has always been a pain, requiring manual entry by the user to describe what needed to be validated. This is neither intuitive nor easily expressed.
The process of adding assertions should be as simple as adding the navigational steps. Great consideration should be given to this feature since it’s the most important part of the test script.
Adequate reporting is a must-have for test automation, especially when testers of automation testing companies are executing hundreds—or thousands—of tests. Triaging any failures should not require reruns or extensive debugging. An automatically generated report with details on what occurred, screenshots, and even a video of the recording would be very helpful.
4. Conditional waiting:
Record-and-playback tools that require script authors to insert pauses between steps not only are tedious to use but promote a test automation anti-pattern as well.
A more modern approach, called conditional waiting, has proved quite reliable. In this approach, scripts don’t blindly wait x number of seconds before continuing to the next step; instead, they wait until a condition is true and then proceed as soon as possible.
This drastically cuts down on the execution time of the automation suite while also preventing flaky tests. Code-less tools should, at the very least, allow script authors to insert conditional waiting, but it would be even better if the tools took care of this behind the scenes.
5. Continuous integration:
Older record-and-playback tools required testers of automation testing company to click a button within the tool to execute their tests.
In the era of DevOps, test automation is a key ingredient in continuous integration and continuous deployment. Tests should integrate with such pipelines and automatically execute when triggered. For faster execution times, tests should be capable of running in parallel as well.
6. Reusable steps:
Some steps exist in multiple scenarios. For example, logging into an application may be something that the majority of tests must do. Recording this action in each of those tests is what leads to maintenance nightmares. If anything changes with the login step, the test author would need to update every test that contains this.
Code-less tools should allow authors to record common steps that they can then insert into any test flow. This would not only save time in authoring but also promote re-usability and make maintenance much simpler. Similarly, the tools should support the use of variables within tests to allow for the reuse of the state between the steps.
7. Cross-browser support:
Many record-and-playback tools come in the form of a browser extension, which means they may be tied to a specific browser. But many product teams must run tests across multiple browsers. Test authors should be able to record a scenario once on a given browser and be able to play that recording on any other major browser.
8. Control structures:
One of the major limitations of older record-and-playback tools was the absence of control structures, such as loops and conditional clauses. A script author who needed to repeat an action 10 times would need to record that action 10 times and maintain each one of the actions individually.
Also, if there were multiple viable alternatives within a step and the test author wanted to take one action if a certain condition was true, and a different action if it was not, there was no support for such logic.
In coded automation frameworks, testers of automation testing company use loops and if-else clauses to control the flow of scripts. This is a requirement for code-less solutions if the project is to be scalable.
9. Smart element locators:
One of the biggest problems with test automation is that testers of automation testing company develop against an application at a given moment in time. When the application changes, those automation scripts may break.
There’s an opportunity for code-less solutions to have an advantage over coded frameworks by gathering more than one element locator during the recording. If a locator is no longer found during playback, the alternative locators for that element can be tried. This gives the tester of automation testing company a far better chance to develop stable scripts that don’t require as much maintenance.
10. Modification without redo:
Most older record-and-playback tools did not allow authors to easily edit recorded scenarios. If the flow of a scenario changed and you needed to insert a new action in the middle of the scenario, you had to re-record the entire scenario. That’s not ideal.
As the application under test changes, the test scripts need to change as well. This may require adding or removing steps from a flow, or slightly changing existing ones. Code-less automation tools should recognize this as inevitable and make it as simple as possible to accomplish this.
Tempted to start a new thread really, because it’s not that complicated.
- No silent failures!
- Porting layer supporting remote code execution in parallel/async to any platform
- Job or task timeout detection
All things that let you test faster, sooner and with confidence.
Here the list of features that test automation tool should have:
- Dynamic element locators
- Conditional checks
- Control structures
- Easy assertions
- Easy modifications without redo
- Reusable steps
- Cross-browser support
- Ability to insert code
- Continuous integration