Automated testing involves using an automation tool to run a suite of tests. Whereas manual testing is performed by a person sitting in front of a computer, carefully performing all stages of testing.
Automation software is capable of entering test data into the tested system, comparing expected results and the outcome, and generate detailed reports about testing. However, it requires a significant investment of money and resources.
The development cycle requires multiple executions of the same suite of tests during development. Using automation, you can write a test suite and rerun it if needed. Once it is suite automated, there is no need for human intervention. It also helps to improve ROI (return on investment). The goal of automation is not to eliminate manual testing but to reduce the number of tests that need to be run manually.
Let us take a closer look at the problems of automated testing. Conventionally, automated testing can be divided into two parts:
In the web document, we search by DOM structure, namely X-Path locators or CSS locators. On desktop and mobile, most often the search is carried out by their coordinates. And after the search, we perform an action or test on the found element.
A locator is a path to the element you are looking for in a structure. We work with locators every day, for example, the file system on our computers.
Are you ready to learn automation testing? Check out our online automation testing course.
1. An absolute file path is the path to the file starting from the disk and indicating all folders. The main advantage is that it includes all the necessary information to find the required file, starting from the parent element (disk) and going through all attachments to the desired file. The disadvantage is that if someone moves the folder, the path will become invalid. In other words, this path includes many values, changing which can affect the path itself.
C: \ Users \ Alex \ Pictures \ test_file.txt
2. The relative path to the file will help to avoid the problems of the previous path, we just need to know where is the folder with the file. The advantage of this path is that it is more protected from moving or renaming folders. Since if we know how to find the required folder, then we will be able to find our file.
Pictures \ test_file.txt
3. The exact or short path allows you to find a file simply by searching by its unique identifier (for example, name). This way is the best. However, you must watch out for name duplicates.