History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: STORMWINDACCURACY-40
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Bernardo Heynemann
Reporter: Bernardo Heynemann
Votes: 0
Watchers: 0
Operations

Attach file to this issue
Clone this issue
If you were logged in you would be able to see more operations.
Stormwind Accuracy

Refactor error messaging

Created: 04/Aug/08 06:30 AM   Updated: 03/Oct/08 11:49 AM
Component/s: BDD Framework, Browser Driver - WatiN, Fluent Interface - I
Affects Version/s: None
Fix Version/s: 0.5.0.0


 Description  « Hide
Error messaging in Accuracy is becoming funky and repetitive.

We should come up with a way of handling it in a better way.

These things are coming up too often and are hard to mantain (if messages change it's hard to track them):
 throw NewException
                    .WithMessage(string.Format("The \"{0}\" {1} is not visible or could not be found (Control Suffix being '{2}').", elementKey,
                                               elementType, id))
                    .Because("The currently selected Browser Driver could not find the given " + elementType +
                             " or it's not visible.")
                    .WithWorkaround(string.Format("See if the {0} is registered in the {1} " +
                                                  "page and that it's visible.", elementType,
                                                  GenericContext<Context>.Current.CurrentPage.Key))
                    .Of<ExceptionType>();

 All   Comments   Change History   Subversion Commits   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.