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

Faliure on expected out put verification

1 Answer 12 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Niranjalee
Top achievements
Rank 2
Niranjalee asked on 29 Oct 2013, 03:37 PM
 

Hi Team,

I am using data binding to add notes to a form and save it. The note will have a title and a description. I am getting the title and the description from my data binding.

After adding the note I click on save and I wanted to verify whether the title and the description is correct.

So I got the same fields above to do the verifications. My test failed at the below step when attempting to verify the description.

The description is same as I call the same excel cell for input data and then to verify the saved data

Below is the failure message.

Should I be doing anything differently? In the failure information I see the expected and the actual is the same. Not sure how/why it failed.

 


Please see below.

Failure Information: ~~~~~~~~~~~~~~~Content.InnerText of 'ThisIsTheSpan0' does not match! Match Type: 'Contains' Expected Result: 'This is the note for the search term : PD 6687-1:2010 Background paper to the National Annexes to BS EN 1992-1 and BS EN 1992-3 of standard BS EN 1990:2002 A1:2005' Value at time of failure: 'This is the note for the search term : PD 6687-1:2010 Background paper to the National Annexes to BS EN 1992-1 and BS EN 1992-3 of standard  BS EN 1990:2002 A1:2005'


Expected Result: 'This is the note for the search term : PD 6687-1:2010 Background paper to the National Annexes to BS EN 1992-1 and BS EN 1992-3 of standard BS EN 1990:2002 A1:2005'

Value at time of failure: 'This is the note for the search term : PD 6687-1:2010 Background paper to the National Annexes to BS EN 1992-1 and BS EN 1992-3 of standard  BS EN 1990:2002 A1:2005'

1 Answer, 1 is accepted

Sort by
0
Velin Koychev
Telerik team
answered on 31 Oct 2013, 02:16 PM
Hello Niranjalee,

I am sorry to hear that  you are experiencing this issue.

I can see from the log file that there is a difference between the expected and the actual result. There is one extra whitespace between the following two words in the actual result: standard BS

Just add one extra whitespace between these words and that should resolve your problem.

Let me know if you need any additional assistance. 


Regards,
Velin Koychev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Niranjalee
Top achievements
Rank 2
Answers by
Velin Koychev
Telerik team
Share this question
or