MB System Test 3: Event Count

This test runs an Event Count scenario. In this scenario a previously registered user will logon to the system. A test will then be made to verify that the the correct number of events assigned to the user is displayed. A new user will then be registered and a check will be made to verify that no events are currently assigned to this new user.

Note 1: 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.

Note 2: This test assumes that no new events are created for the existing user in between runs of this test; otherwise, the test will be broken.

 

fit.ActionFixture  
start eg.Page    
enter webLocation http://localhost:8080/musicBox Start from MusicBox home page
enter email jones@yahoo.com  
enter password test  
press go    
check status OK No error returned
check countEvents 21 Event count matches expected
enter webLocation http://localhost:8080/musicBox/displayCreateHost.do Start from Registration Page
enter firstName john  
enter lastName doe  
enter email [EMAIL1]  
enter confirmEmail [EMAIL1]  
enter password test  
enter confirmPassword test  
press create   All required information entered
check status OK No error returned
check countEvents 0 Event count matches expected