"ant webtest" - run webtests
mainLinksTest - click links on main page
addDepartmentTest - adding department
addEmptyDepartmentTest - adding department with default values
addDepartmentNoTest - return from adding department page
addDirectorTest - hire director for department
seeDepartmentInfoTest - go to department info page
addHeadDepartmentTest - change head department
seeDirectorInfo - go to staff info page from department page
deleteDepartment - press Delete button on department info page
seeHeadDepartmentInfo - go to head department info page
hireWorkerOnPosition - choose staff member for position
fireWorkerFromPosition - press remove button for staff member on position
filterDepartments - enter filter value and press Filter button
addPosition - press Add position button and choose values and confirm position addPositionWithNegativeSize - as previous, but size value is choosed incorrect (setted on zero instead)
notAddPosition - return from position edit page
addAndDeletePosition - press Delete button during adding position
editPosition - press Edit position button anf change values
editPositionToNegativeSize - as previous, but with incorrect size value
editPositionToLessSizeThanHiredMembers - as previous, but try to reduce position size
notEditPosition - press Back button on position edit page
deletePosition - press Delete button on position edit page
setWorkerStartTime - enter value for worker start time and confiem it
setWorkerStartTimeWrong - as right, but wrong
fireWorkerWithOtherDate - enter value for fire time and confirm
fireWorkerWithOtherDateWrong - as previous, but wrong
filterStaffMembersByNameTest - enter filter name value on staff page and filter
filterStaffMembersAddressesTest - enter filter value on staff page and filter
filterStaffMembersBySEmploymentDateTest - enter filter value on staff page and filter
filterStaffMembersByAllParamsTest - threee previous in the same time
addStaffMemberTest - press Add member button, enter values and confirm
addStaffMemberWithWrongWorkStartTest - press Add member button, enter values with incorrect date and confirm
addEmptyStaffMember - add default member
noAddStaffMemberTest - return from adding member page
seeStaffMemberInfoTest - go to staff info page
returnFromStaffInfoTest - return from staff info page
deleteStaffMemberTest - press delete button on staff info page
editStaffMemberTest - press Edit button on staff info page, change values and confirm
noEditStaffMemberTest - as previous, but instead confirming return to info page
seeStaffPositionDepartmentTest - go on link of staff position department
editStaffMemberWorkTimeTest - change history position values and confirm
editStaffMemberWorkTimeTest - change history position values on wrong ones and confirm
deleteStaffMemberHistoryPositionTest - press delete button on history member position
ant glassfish_start
ant deploy
see http://127.0.0.1:8080/res
"ant deploy" - deploy war
"ant undeploy" - undeploy war
"ant war" - create war file
"ant glassfish_start" - start server
"ant glassfish_stop" - stop server
PostgreSQL was used;
User "WebPrac" with password "WebPrac"
should have all privilegies for database "StaffInfo".
Other actions can be made with ant commands.
"ant build" - build class files from source code
"ant run" - run java code
"ant create-javadoc" - generate documentation
"ant clean" - clear work directories
"ant test" - run tests with TestNG
"ant db_create" - create tables
"ant db_init" - fill tables with test data
"ant db_remove" - remove tables
To see documentation generated by javadoc, run 'ant create-javadoc' and open Documentation/Main.html
Information about the personnel of the company
Application pages and user scenarious descriptions are contained in 'Documentation' folder.
Constraint: For each employee endTime value must be entered only
when position is free from staff member. Before this moment it should be null. Not-null value
is a signal, that position is not holded my member at the moment.
Full text scheme is alo contained in 'Documentation' folder, also file 'App_Pages' contains text description.
Button "Departments" linked with page 2, Departments
Button "Staff" linked with page (8), Staff
Contains button "main", linked with page 1, Main page.
Contains button “add department”, linked with page 4, Department edit.
Contains list of all departments. Each department name is linked with page 3, Department info.
Contains search panel, which, after using, changed departments list in accordance with the imposed restrictions. Search parameters: Department name.
Contains “Delete” button, which deletes current department and returns user on page 2, Departments page.
Contains “Edit” button, which moves user on page 4, Department edit page.
Contains “Return” button, which moves user on page 2, Departments page.
Contains “Name” filed with current department name.
Contains “Director” field, with current department director name, linked with according page 9, Staff member info page.
Contains “Head department” field, with current department head department name, linked with according page 3, Department info page.
Contains list of sub-departments, each of them is linked with according page 3, Department info page.
Contains list of positions. If any staff member holds a position, his name is placed near position name and is linked with according page 9, Staff member info page. Each position is connected with page 6, Staff member assignment page.
Contains “Return” button, which moves user on page 3, Department info page.
Contains “Confirm” button, which saves result and moves user on page 3, Department info page.
Contains “Add position” button, linked with page 5, Position edit page.
Contains editable “Name” field.
Contains “Director” button, connected with page 6, Staff member assignment page.
Contains “Head department” button, connected with page 7, Department assignment page.
Contains positions list, each is clickable and connected with page 5, Position edit page.
Contains editable fileds “Name”, “Size” and “Duties”.
Contains “Return” button, which moves user on page 4, Department edit page.
Contains “Confirm” button, which saves result and moves user on page 4, Department edit page.
Contains “Return” button, which moves user on page 4, Department edit page.
Contain list of staff members. Each is clickable and connected with page 4, Department edit page.
Contains staff search panel. Changing search parameters changes list of staff members.
Contains list of all departments. Each department name is linked with page 4, Department edit page.
Contains search panel, which, after using, changed departments list in accordance with the imposed restrictions. Search parameters: Department name, department size.
Contains “Return” button, connected with page 4, Department edit page.
Contains button "main", linked with page 1, Main page.
Contains button “add staff member”, linked with page 10, Staff member edit page.
Contains list of all staff members. Each staff member name is linked with page 9, Staff member info page.
Contains search panel, which, after using, changed staff members list in accordance with the imposed restrictions. Search parameters: Staff member name, date of employment.
Contains fields with staff member information.
Contains “Delete” button, connected with page 8, Staff page.
Contains “Return” button, connected with page 8, Staff page.
Contains list of held positions with button “Show history”, which adds last positions. Position departments are clickable and connected with page 3, Department info page.
Contains editable fields with staff member information.
Contains “Return” button, connected with page 9, Staff member info page.
Contains “Confirm” button, connected with page 9, Staff member info page.
Main -> departments -> search department -> department info
Main -> departments -> search department -> department info
Main -> departments -> search department -> department info
Main -> departments -> search department -> department info
Main -> departments -> search department -> department info
Main -> departments -> add department
Main -> departments -> search department -> department info -> delete
Main -> departments -> search department -> department info -> edit -> department edit page
Main -> departments -> search department -> department info -> positions list -> staff member assignment
Main -> departments -> search department -> department info -> positions list -> fire button
Main -> departments -> search department -> department info -> edit -> department edit page -> add position -> position edit page
Main -> departments -> search department -> department info -> edit -> department edit page -> position edit page -> remove
Main -> departments -> search department -> department info -> edit -> department edit page -> position edit page
Main -> staff -> search staff members
Main -> staff -> search staff members -> staff member info
Main -> staff -> add member
Main -> staff -> search staff members -> staff member info -> delete member
Main -> staff -> search staff members -> staff member info -> staff member edit