Assignment 3, Report

 

 

CET203 Software Development

Assignment 3 (2014/15)

Report

Istvan Franko

Computing

Level 2

 

 

UML Sequence Diagrams

Use Case Diagram

Adding a new fitness class to the system

Description

Saving the data to file

Description

Generating the text reports

Description

Testing Description

Log-in test

Load Sample Data test

Save button event test

Load button event test

Add new class form button event test

Remove button event test

Web Display report section test

Save to file reports section test

Known bug

User Guide

Access to system

Log-in page (Default.aspx)

Main page (FitnessClassManagerForm.aspx)

Add new fitness class form (AddFitnessClassForm.aspx)

All classes sorted by ID page (AllClassByID.aspx)

Day Filter page (DayFilteredList.aspx)

Location Filter page (LocationFilteredList.aspx)

 

UML Sequence Diagrams

 

Use Case Diagram

Use Case diagram help to create sequence diagrams. Subscribers can watching classes in a list box or generate different type of text reports. Also allow to add a new fitness class to system or remove selected class. The other function is the file manager where user can save or load system data from file.

 

Adding a new fitness class to the system

Description

Subscriber allow to add new fitness class to system. Subscriber send a request to Web System Manager Form by filling required fields. The entered details validated in Add Fitness Class Form. If any details are invalid the server send specified error messages to user through web form. New class’s data passed to Fitness Class Opportunity Class where a new object is creating. The new fitness class opportunity is adding to Fitness Class List but first the ID being checked and if it already exist system send a Duplicate ID Exception formatted error message to user. If all data went through in the previous steps the system refresh classes in web form at list box.

Saving the data to file

Description

User allow to save all system data to a file. When user send a saving request, it is going through the IFileHandler Interface. The interface send a request to SerializeFileHandler what open the outFile. With BinaryFormatter convert data to binary and the FileStream save to file to path. Serialize file handler get system data from Fitness Class List and Fitness Class Opportunity classes. With “try” and “catch” method system send a formatted message about save function result for user to message box.

Generating the text reports

Description

This Generating the text reports Sequence Diagram show how the system manages these requests. User send a request by select a type of text reports (sorted by ID, a particular day or particular location) and use “Run Reports” buttons. From the Web Fitness Class Manager Form the request is going to Report Generator Interface. The Interface pass the request to Text Report Generator class. This class send a message to Fitness Class List Sorter to get specified data. Sorter also send a request to Fitness Class List to get all data, when it got back all data, sorter sort it or filtered necessary data and give it back to Text Report Generator. Finally Text Report Generator shows details on a formatted HTML page.

Testing Description

Log-in test

The system starting page is the Default.aspx file. There is a Log-in function and sample data load selector. The Log-in function tested with followed inputs and got results. All other page check user loged-id session and if its value not equal “1” redirect user to log-in page.

Field

Input

Result

User Name:

(empty)

Error message “User name cannot be blank!”

User Name:

Thomas

Error message “Incorrect user name!”

User Name:/Password:

(empty) / (empty)

Error message “User name cannot be blank!”

“Password cannot be blank!”

User Name:/Password:

Chris / (empty)

Error message “Password cannot be blank!”

User Name:/Password:

Chris / xyz

Error message “Incorrect password!”

User Name:/Password:

Chris / Chris

System redirect to main page

Load Sample Data test

User can load sample data via choosing “Yes” button on Log-in page. When this button been tested the system load hard coded sample data. If user press the “No” button system start without any data.

Or

Save button event test

This button save all system data to a binary file (/bin/debug/data2.dat). I have tested this button with few stage on system and it worked every time. When anything comes up and system can save the file, user get an error message.

 

Load button event test

This button load all system data from a binary file (/bin/debug/data2.dat). When I copied my whole system to other folder and tried to use this button first I got the "There is appeared an error to load data!" message. When I used the Save button first after the load function worked properly every time.

Add new class form button event test

This button redirect user to AddFitnessClassForm.aspx page. There are 10 user input fields an “OK” button and an error message text box.

All input field validated as required except Day: dropdown list (its value hardcoded) and Multiweek check box.

All validated fields have own proper error message.

Space field has a Range Validator. It must be a number between 0 and 50.

The Start Date field has another Compare Validator what check the right date format.

During my system develop I have tested all possible variation and haven’t got any unknown error.

The system also check exists ID numbers and if user try to add a same one it send error message.

Remove button event test

This button event remove a class from list. User need to enter a valid class index number to remove it. If this input text box is empty user get a “Must enter a valid number !” message.

The user input range also validated. If the input out of range (exp. 15) user get “Invalid number for remove an item !” error message.

If the input not out of range, the system delete selected class and send a warning message.

Web Display report section test

There is a radio button list and a submit button. Behind this button system redirect user to other pages where displayed selected type of report.

All classes sorted by ID page only has a Back button what is redirect user to main page. Redirection worked all the time.

At Day Filter page has a drop down list, a Submit button and a Back to main page button. The drop down list hard coded so there not need any validation. The submit button display fitness classes on selected day.

At the Location Filter page has an input text field. A Submit and a Back Button. There not need any validation because if the input box is empty or filled with unknown location, the system don’t show anything. If the field properly the submit button display all fitness class on that location.

Save to file reports section test

There are a location input text box, a day dropdown list, and a “Save to Files” button.

These input not validated because if user enter any wrong location or leave it empty it save an empty file. The drop down list hard coded, so there don’t need to validate.

The button click event use “try” and ”catch” functions and if the file saving doesn’t go through is send a "There is appeared an error to save files!" error message. If nothing wrong happened system send a confirmation message.

Known bug

During my system test I realised if I save any file to server at the next button click the system drop back to login page and I needed to log-in again. I didn’t find any solution but is not a serious error with system crash just a bit uncomfortable phenomenon, because user need to click to wanted function again. Maybe it is just a virtual server problem but I haven’t any chance to test my system on a real server.

User Guide

Access to system

 

Users

Passwords

Istvan

Istvan

Chris

Chris

Liz

Liz

Linda

Linda

Simon

Simon

This report test content can be used as a user manual as well. There are listed all possible functions from this system. I wouldn’t like to repeat everything so just write a sort list of functions.

Log-in page (Default.aspx)

· Used for log-in users and load sample data to system by chose “Yes “ or “No” button.

Main page (FitnessClassManagerForm.aspx)

· Save button. Save all system data to a binary file. (/bin/debug/data2.dat)

· Load button. Load all system data from the binary file.

· Add new class from button. Redirect user to another form. AddFitnessClassForm.aspx.

· Remove button. User must enter a valid fitness class index number what is showed in text box field to remove a class. This index number always been changed so need to recheck before want to delete another class.

· Display Report button. User can choose three type of reports. Reports displayed on other pages, so this button just redirect user to the selected page.

· Save to Files button. It save three test file to /bin/debug folder. The report_all.txt file include all fitness class list sorted by ID. The report_day.txt file include classes with selected day from drop down box. The report_location.txt file include classes what match with entered Location.

Add new fitness class form (AddFitnessClassForm.aspx)

· There are ten user input field to add new fitness class opportunity to system. All necessary field validated as described in testing section. There is not Back to main page button because we can’t go back without filling all required fields, so user must use browser back to pervious page button.

All classes sorted by ID page (AllClassByID.aspx)

· There are a text box with list of sorted classes and a Back to main page button.

Day Filter page (DayFilteredList.aspx)

· There are a day selection drop down list, a Submit and a Back to main page buttons. The Submit button display all class with selected day in the text box.

Location Filter page (LocationFilteredList.aspx)

· There are a location input text field, a Submit and a Back to main page buttons. The Submit button display all class with selected location in the text box.