This is a migrated thread and some comments may be shown as answers.

Verify TextContent fails when text is the same

3 Answers 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Seth
Top achievements
Rank 1
Seth asked on 14 Dec 2016, 10:52 PM

Here's my scenario. I have a data-driven test that is comparing some text fields to values in the spreadsheet. For one field and one iteration, it always fails but the data and the text on the field matches. Here is the log for the exception.

ArtOfTest.Common.Design.Exceptions.VerificationException: Content.TextContent of 'CphContentTabsPropOneTabpanDeedsRptDocsLblDocumentNoSpan' does not match!

   Match Type: 'Same'
   Expected Result: '571871'
   Value at time of failure: '571851'
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

As you can see, the expected value and the value at time of failure are both '571871'. Am I missing something here? 

My Product Version is 2016.3.928.0

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Cody
Top achievements
Rank 1
answered on 15 Dec 2016, 02:49 AM

Well, have a closer look at those two values:

Expected: 571871

Actual: 571851

Do you recognize the difference now?

 

0
Seth
Top achievements
Rank 1
answered on 15 Dec 2016, 06:20 AM
Oh my goodness! Chalk that up as the dumbest post ever! Thanks for the 2nd pair of eyes.
0
Cody
Top achievements
Rank 1
answered on 16 Dec 2016, 02:13 AM
No worries. I've made similar mistakes in the past. Nothing like a second set of eyes to point out the obvious. :-)
Tags
General Discussions
Asked by
Seth
Top achievements
Rank 1
Answers by
Cody
Top achievements
Rank 1
Seth
Top achievements
Rank 1
Share this question
or