Notes on testing some actions from Project Admin & Review
Upload Submission
To go to the upload submission page you should enter the following into the Address field of your browser:
http://localhost:8080/review/actions/UploadSubmission.do?method=uploadSubmission&pid=
where
SELECT FROM upload; SELECT FROM submission;
Also, it is possible to use an ID of the newly-created submission in subsequent testing of actions from Project Review assembly.
Download Submission
To download a submission you need to know an ID of its corresponding active upload (Managers can download even uploads that have "Deleted" status though). Here is the link to start download:
http://localhost:8080/review/actions/DownloadSubmission.do?method=downloadSubmission&uid=
It is advisable to first use Upload Submission action to create some uploads in the file store.
Notes on testing some actions from Project Review assembly.
Create Screening
To create screening you should enter the following into the Address field of your browser:
http://localhost:8080/review/actions/CreateScreening.do?method=createScreening&sid=
where
Create Review & Create Approval
The links for these two actions are almost the same as the link for Create Screening action:
http://localhost:8080/review/actions/CreateReview.do?method=createReview&sid=
for Create Review, and
http://localhost:8080/review/actions/CreateApproval.do?method=createApproval&sid=
for Create Approval actions.
Edit Screening
To edit screening you should create its draft version first (by using Create Screening action). After that, you can use the following link to edit screening:
http://localhost:8080/review/actions/EditScreening.do?method=editScreening&rid=
where
Edit Review & Edit Approval
The links for these two actions are:
http://localhost:8080/review/actions/EditReview.do?method=editReview&rid=
respectively. Refer to the previous section to find out where to ged a value
for
Save Screening, Save Review, and Save Approval
You don't have to undertake special actions to access these Struts Actions. They may easily be accessed from appropriate Create/Edit pages.
View Screening
To view screening you must finish (commit) some screening review. The link for this Struts Action is:
http://localhost:8080/review/actions/ViewScreening.do?method=viewScreening&rid=
Refer to section 3 for information on
View Review & View Approval
The links for these two actions are:
http://localhost:8080/review/actions/ViewReview.do?method=viewReview&rid=
Refer to section 3 for information on
Edit Aggregation
To edit Aggregation you need to have review of type Aggregation in your database. File "I-7 - Add Reviews.Sql", which can be found in /src/sql directory, contains appropriate SQL scripts that create such sample Aggregation. The review created by these scrips will have ID 4000. When you populated your database with Aggregation (either by executing scripts from sample file, or by any other means), you should be able to open Edit Aggregation page by following this link:
http://localhost:8080/review/actions/EditAggregation.do?method=editAggregation&rid=
View Aggregation
To view Aggregation you must commit it first. Use Edit Aggregation action to edit and submit (or commit) Aggregation (detailed descriptions of how it can be done now are contained in item 8). When you have commited Aggregation you should be able to open View Aggregation page by following this link:
http://localhost:8080/review/actions/ViewAggregation.do?method=viewAggregation&rid=
Note, that review ID will be the same as the one you used with Edit Aggregation action.
Edit Aggregation Review
User is allowed to review an Aggregation only if that Aggregation was committed first (refer to item 8 for information on how to edit Aggregation). The following link will lead you to Edit Aggregation Review page:
http://localhost:8080/review/actions/EditAggregationReview.do?method=editAggregationReview&rid=
As with View Aggregation action, the ID of review is the same as the one used to Edit Aggregation.
Committing Aggregation Review
Aggregation Review must be committed by all reviewers and a submitter who this Aggregation was made for. If some reviewer is also an Aggregator (who committed Aggregation), he does not need to commit the Aggregation Review.
View Aggregation Review
Users are allowed to view reviewed Aggregation once it has been reviewed and commited by all users who had to do that. Refer to items 10 and 11 to get more information on how an Aggregation can be reviewed and committed. The following link will open View Aggregaton Review with comments from all participants for you:
http://localhost:8080/review/actions/ViewAggregationReview.do?method=viewAggregationReview&rid=
Edit Final Review
To perform Final Review you need to have review of type "Final Review" in your database. File "I-7 - Add Reviews.Sql", which can be found in /src/sql directory, contains appropriate SQL scripts that create such sample Final Review. The review created by these scrips will have ID 5000. When you populated your database with Final Review (either by executing scripts from sample file, or by any other means), you should be able to open Edit Final Review page by following this link:
http://localhost:8080/review/actions/EditFinalReview.do?method=editFinalReview&rid=
View Final Review
To view Final Review you must commit it first. Use Edit Final Review action to edit and submit (or commit) Final Review (detailed descriptions of how it can be done now are contained in item 13). When you have commited Final Review you should be able to open View Final Review page by following this link:
http://localhost:8080/review/actions/ViewFinalReview.do?method=viewFinalReview&rid=
Note, that review ID will be the same as the one you used with Edit Final Review action.
Save Aggregation, Save Aggregation Review, and Save Final Review
You don't have to undertake any special actions to access these Struts Actions. They may easily be accessed from appropriate Edit pages.
Note also, that you must log in under an appropriate user to be able to perform the aforementioned actions.
Notes about logging in into the application.
Notes about Informix version
Although we used Informix v9.4 JDBC driver during the development of Admin part of assembly, we had to switch to the Informix v10.0 one, because of the read-only feature used by one of the componets (the Deliverables Management Persistence one). So, from now on, only the driver from evaluation version of Informix 10.0 is included with the submission. If you have Informix 9.4 installed on your machine, it should work pretty well with the newer version of the driver (at least it worked for us).
Notes about building / preparing distributive packages / deploying / testing.
This submission includes sample topcoder_global.properties file. We recommend you to use it to get an idea which properties should be overridden.
You should be able to compile the application by executing "ant compile".
You should be able to prepare distibutive package by executing "ant dist".
You should be able to deploy application to JBoss automatically by executing "ant deploy".
You may run tests by executing "ant test". Note, you must have Tomcat 5.5 Web Server to run the tests.
Notes about database tables creation / population / cleaning / deletion.
All the needed SQL scripts can be found in /src/sql folder of this package.
Scripts which names begin with the digit denote scripts that contain commands essintial for the normal operation of the application. These scripts should be executed in exactly that order as specified by the number on the beginning of their filename.
Scripts which names have letter "I" at the beginning contain commands to populate database with some sample data. These scripts should not be used when the application is deployed to its final destination, they have been provided for testing purposes only to help reviewers/testers quickly start verifying the operation of the application.
Note, that if you do not use the scripts described in the previuos section, you should populate the database with so-called Global Managers, i.e. resources who have the Manager role, and have no project assigned.
If the contents of some tables should be removed (deleted), scripts with letter "X" at the beginning of their names may be used. These scripts contain commands that delete volatile data from the database only. They neither delete lookup data, nor do they delete (drop) any tables from the database. Note, there is special script named "X - Drop All.Sql". See next item for more information on its purpose.
The script file named "X - Drop All.Sql" contains commands to remove all the data (including lookups and tables) from the database. This file doesn't destroy the database itself, though. You'll need to recreate all tables and insert lookup data at the minimum in order to return the application back to working state after using this script.