DateBoundary

Location

<UFT One installation folder>\CodeSamplesPlus\Flight_Samples\DateBoundary

Description

Enters incorrect values and checks error messages of the Date field in the main application window.

This section describes the key issues covered by this test, a test summary, and external actions called by this test.

Key Issues Covered by This Test

  • Using static (local) functions inside a test script

  • Using Reporter object to report events during the test run

Test Summary

  1. Open and log in to the application.

  2. Clear the main application window.

  3. Check the status of the Date field.

  4. Enter alphabetical characters and press Enter.

  5. Check the text in the error message.

  6. Enter five digits for the year value in the edit box and press Enter.

  7. Check the text in the error message.
  8. Enter a date in the format D-MMM-YYYY (month is a string, i.e. Jul) and press Enter.
  9. Check the state of the OK button.

  10. Enter a month value higher than 12 and press Enter.

  11. Check the text in the error message.

  12. Enter a day value higher than 31 and press Enter.

  13. Check the text in the error message.

  14. Return to the main application window.

External Actions Called by This Test