Unit testing involves checking of the different components of a software
application. In this, each part of software system is validated to ensure its
operation. For example, consider a simple HTML login form; In this form you
have a login id and password fields. To validate it you may check following
conditions:
Leave
both fields blank and click on submit button.
Leave user id blank and fill
password. Click on submit button.
Fill user id and leave password
blank. Click on submit button.
Enter Wrong information in both
fields and submit form.
Enter correct user id but wrong
password and submit form.
Enter correct password but wrong user id and submit form.
Enter user id and password correct
and submit form.
No comments:
Post a Comment