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

Assert Message not logged on test case failure

1 Answer 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mukesh
Top achievements
Rank 1
Mukesh asked on 03 Dec 2013, 01:45 PM
Hi,
When I add any message to the Assert API call. On failure of Test step I am expecting that it should log failure message with the message given in Assert API. But test studio doesn't log the Assert message instead it logs the Test step description.

[CodedStep(@"Verify All Controls visibility is Visible", RequiresSilverlight = true)]
public void NetworkSettingsPage_Functionality_ControlVisibility()
{
    // Verify EditButton's visibility is Visible
    Assert.AreEqual(ArtOfTest.WebAii.Silverlight.UI.Visibility.Visible, Pages.PC5xxLogin.SilverlightApp.EditButton.ComputedVisibility, "Edit Button Element visibility does not match expected value");
}

In above code on failure of Assert it doesn't log the message given in Assert API Call instead it logs description in code step attribute.
I searched around online but didn't get any help.

Please let me know if this is a known issue or I am missing something.

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 06 Dec 2013, 12:13 PM
Hello Mukesh,

Thank you for contacting us.

I was able to reproduce the issue and I have logged a bug report on that which you can track here.

I have also updated your Telerik points.

Thank you for your feedback.

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