Testing your changes

To test the new version of your schema:

  1. In the Designer workspace, click File > Validate to verify that your schema definition contains no errors. The results appear in the pane at the bottom of the Designer. Fix any errors before continuing.
  2. Click Database > Set Test Database.
  3. In the Test Database list in the Test Database window, select test, which is the name of the test user database that you created in the Create a test user database exercise. Enter admin in the User Name field. Leave the Password field blank. Click OK.
  4. Click File > Test Work to start your test session.
  5. In the Rational® ClearQuest® Client client, click the New Defect toolbar icon. The Submit Defect form opens.
  6. Enter values in the mandatory fields, which are identified by having red labels. Verify that the user database is validating the User_ID field correctly. Enter a noninteger value in the field and click OK. An error message should appear reminding you to enter an integer. Enter an integer that is outside the range of 1 to 100. Click OK. An error message should appear reminding you to enter an integer between 1 and 100. Enter an acceptable integer in the field.
  7. Click the Documentation tab. Click the arrow in the Doc_Impact field and verify that the choice list of values is displayed.
  8. Click the Attachments tab. Click Add to attach a file to the defect.
  9. On a piece of paper write down the defect number. Click OK to submit the defect.
  10. Click Edit > Find Record. Enter the defect number in the ID field of the Find Record window and click OK.
  11. Click Actions and select Assign.
  12. In the Owner field, select admin to assign the defect to yourself. Click OK.
  13. Open the defect again.
  14. Click Actions and select Open to transition the defect from the Assigned state to the Opened state. Click OK.
  15. Open the defect again. Test the reassign action that you added to the schema. Click Actions and select Reassign. You should see an error message reminding you to enter a value in the Action_reason field.
  16. Enter text in the Action_reason field. Click OK. The defect should be moved to the Reassigned state.
  17. Close the Rational ClearQuest Client.