05-02-2008, 03:13 PM
Hello,
I'm very new to QTP and just started going through the QTP Tutorial with comes with QTP 9.2 software. Right now I'm reading Lesson 7.
I followed exactly what is been asked to do in the lesson regular expression for date.
[0-1][0-9]/[0-3][0-9]/200[0-9] - This instructs QuickTest to check that each character in the selected text matches the number-range format defined by the regular expression. The expression checks for the following format: MM/DD/200Y.
But when i run the test it fails.
Test Results
------------
Text Checkpoint "CheckExpectedText": Failed
Date and Time: 5/2/2008 - 10:40:17
Checkpoint Timeout: Waited 5 seconds out of a possible 5 seconds
Details
Text Checkpoint: captured "5/2/2008" between San Francisco and SELECT , expected "[0-1][0-9]/[0-3][0-9]/200[0-9]"
Regular Expression : ON
Match case: OFF
Exact match: OFF
Ignore spaces: ON
Can you please tell me what's going wrong and also how to debug such issues? Thanks in advance
I'm very new to QTP and just started going through the QTP Tutorial with comes with QTP 9.2 software. Right now I'm reading Lesson 7.
I followed exactly what is been asked to do in the lesson regular expression for date.
[0-1][0-9]/[0-3][0-9]/200[0-9] - This instructs QuickTest to check that each character in the selected text matches the number-range format defined by the regular expression. The expression checks for the following format: MM/DD/200Y.
But when i run the test it fails.
Test Results
------------
Text Checkpoint "CheckExpectedText": Failed
Date and Time: 5/2/2008 - 10:40:17
Checkpoint Timeout: Waited 5 seconds out of a possible 5 seconds
Details
Text Checkpoint: captured "5/2/2008" between San Francisco and SELECT , expected "[0-1][0-9]/[0-3][0-9]/200[0-9]"
Regular Expression : ON
Match case: OFF
Exact match: OFF
Ignore spaces: ON
Can you please tell me what's going wrong and also how to debug such issues? Thanks in advance