Updating the test case document: Messages

Messages and warnings that are referred in the Test Cases are specified in this tab. These messages and warnings are specified in the WebSphere Commerce properties file. The message and value pairs can be copied and pasted into this tab. The messages and warnings are separated from the test cases so that they can be easily updated and maintained. If a message or warning is used in multiple places and if it changes, one place update in the messages and warning tab is adequate to update the test cases.

Messages contains two columns:
Name
Name is an identifier to identify the message. Names are copied from the store properties file without any modification.
Value
Value is the actual message or warning from the properties file. Values are referenced in the test case expected results column. The message or warning values can be changed and the changes are automatically reflected in the test cases.
  • If an existing message or error is updated, check other test cases that reference the message and determine if they are affected.

About this task

Messages or warnings are not often updated. The updates are required only if the actual message is changed in the code.

Procedure

  • Existing message or warning is updated
    1. Identify where the message is in the Messages tab by using the Find function to search for the old message or warning name.
    2. Update the appropriate Message Value with the new value.

      The messages and warnings in the test cases are automatically updated

  • New message or warning is added. Determine whether to add a Test Case:
    OptionDescription
    Test Case is added
    1. Insert a new row in a logical place and add the name-value pair in the Messages tab.
    2. Reference the value from the appropriate test step from the new Test Case.
    Existing Test Case is modified
    1. Insert a new row in a logical place and add the name-value pair the Messages tab.
    2. Update the test step that is modified to reference the new message or warning