Completed
Last Updated: 01 Jul 2014 14:07 by ADMIN
ADMIN
Boyan Boev
Created on: 06 Dec 2013 12:04
Type: Bug Report
0
IsVisible assert error message is not added into the log
When I add an error message to the assert function, on failure of the test step I am expecting that it should log failure message with the message given in the assert. However Test Studio doesn't log the assert error message into the log.

Sample code:

[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");
}
1 comment
ADMIN
Daniel Djambov
Posted on: 01 Jul 2014 14:07
Telerik: It can't reach AreEqual method because of failing SilverlightApp.EditButton access as you can see from the stack trace in the "Element Not Found" exception thrown in such a case. If the call passes and AreEqual method in this case is executed, the error message passed as argument will do the job.