MB System Test 4: Registration Page
This test runs the Registration Page scenarios. In this scenario the user accesses the Registration Page and attempts to register without entering a lastname. An error message is then displayed. The user then retries to login, but does not match the email properly. Another error message is then displayed. The user then successfully registers, and no error messages are displayed on the screen. Finally the user tries to re-register with an already registered user e-mail. This should display an error on screen.
Note: This test uses a tag mechanism [EMAILx]. The first time read by the fixture, it will randomly generate an e-mail address that will be used throughout the test. This is done so that the tests can be re-run without breaking.
| fit.ActionFixture | |||
| start | eg.Page | ||
| enter | webLocation | http://localhost:8080/musicBox/displayCreateHost.do | Start from Registration Page |
| enter | firstName | john | |
| enter | lastName | No lastname was provided | |
| enter | test2@yahoo.com | ||
| enter | confirmEmail | test2@yahoo.com | |
| enter | password | test | |
| enter | confirmPassword | test | |
| press | create | ||
| check | status | ERROR | Page returned an error |
| enter | firstName | john | |
| enter | lastName | doe | |
| enter | test2@yahoo.com | ||
| enter | confirmEmail | notest@yahoo.com | Confirmation e-mail does not match |
| enter | password | test | |
| enter | confirmPassword | test | |
| press | create | ||
| check | status | ERROR | Page returned an error |
| enter | firstName | john | |
| enter | lastName | doe | |
| enter | [EMAIL1] | ||
| enter | confirmEmail | [EMAIL1] | |
| enter | password | test | |
| enter | confirmPassword | test | |
| press | create | All required information entered | |
| check | status | OK | No error returned |
| enter | firstName | john | |
| enter | lastName | doe | |
| enter | [EMAIL1] | Trying to re-register same user as before | |
| enter | confirmEmail | [EMAIL1] | |
| enter | password | test | |
| enter | confirmPassword | test | |
| press | create | ||
| check | status | ERROR | An error is returned |