Hi all,
I think I have found a logic issue with content validation, but it maybe that I'm just not understanding something, or not applying the test correctly. Would somebody clarify this for me, please?
I have a field called 'roleCreatedOn' that contains a plain text date-time. The HTML is:
I want a test that checks that the field is not empty, so I set the Build Verification as:
Content Verify TextContent NotContain (empty)
But when I then check that the validation is correct, Test Studio displays this:
Since the field is not empty, surely the test value returned should be true? Why does Test Studio think the Expected Result should be ''?
Am I testing for an empty or null field correctly?
Thanks,
Nigel Edwards, Transition Computing.
I think I have found a logic issue with content validation, but it maybe that I'm just not understanding something, or not applying the test correctly. Would somebody clarify this for me, please?
I have a field called 'roleCreatedOn' that contains a plain text date-time. The HTML is:
<td id="roleCreatedOn">
19/03/2012 11:29:54
</td>
I want a test that checks that the field is not empty, so I set the Build Verification as:
Content Verify TextContent NotContain (empty)
But when I then check that the validation is correct, Test Studio displays this:
Content.TextContent of elementdoes not match!
Match Type: 'NotContain'
Expected Result: ''
Value at time of failure: '19/03/2012 11:29:54'
Parameters:
-----------
TagSegmentType = 'TextContent'
CompareType = 'NotContain'
ExpectedString = Expected:[] , Actual:[19/03/2012 11:29:54]
Since the field is not empty, surely the test value returned should be true? Why does Test Studio think the Expected Result should be ''?
Am I testing for an empty or null field correctly?
Thanks,
Nigel Edwards, Transition Computing.