Many customers will use vTest to record a series of interactions with web applications. They will then add data to parameterize the script so that it can be tested against a large variety of input data. They will finally attempt to replay the script. Some of the data that was used to parameterize the script (e.g. different username/password) might cause the application login to reject the username. However, they are confused when the test report shows that the test still passed.
This is where checkpoints come in. The passing or failing of the script is user determined. There is no way for vTest to decide whether a rejected login attempt should be considered a failed script. For some users a rejected login may be a passed script. The user needs to use checkpoints to validate the script and allow it to decide where it should pass or fail the test. In the case of a rejected login attempt, the next page will often contain elements (e.g. a text saying ‘Login Failed’) that will indicate a failed login attempt. The user could use one of the many checkpoints such as the Web Object Checkpoint or the Text Checkpoint to check the contents of the next page to determine success.
vTest provides a large number of checkpoints. A page checkpoint verifies the source of a page or frame as well as its properties. It can also be used to set thresholds for the loading time of a page. A text checkpoint verifies whether a given text string is displayed in a specified part of the web page. A web object checkpoint verifies the properties of a web object e.g. the HREF value of an HTML A tag. A table checkpoint verifies the contents of the cells in a table displayed in a web page. An image checkpoint can be used to find out verify the properties of an image on the web page. A database checkpoint verifies the integrity of data in the database used by your website. A file checkpoint can be used to find out if two files are identical. A string checkpoint can be used to compare any two strings in the script.
The next time you use vTest to test a web application, make sure you utilize checkpoints. This will allow vTest to accurately determine if a script should pass or fail the test.