Answered by:
exceptions thrown

Question
-
hi,
as i'm new to c# and never deal with exceptions i would like to get an explanation about this issue.
i'm running my script and everything seems to look fine,the script is running and ended properlt and it also pass.
but when I'm debugging the script i can see at the right side of the of the vs screen a window name InelliTrace open and display exceptions list of through caught.i that these exceptions are being treated by the vs catch exceptions system but i don't know if it's the right way of dealing these exceptions.i also know that it's possible to avoid those exceptions by setting entering Debug-->Exceptions... menu and uncheck the exceptions i don't want to deal with (or maybe i'm wrong with this one).
i want to work as customary and the right with these exceptions.i think that sometimes the script is fail because of me not dealing with the exceptions i see.
i want to know also where these exceptions are coming from.what class,what function and what code line cause it.
can anyone give an explanation of this issue or a URL to read about it?
thanks
Ofer
Friday, November 26, 2010 9:40 PM
Answers
-
if your script has thrown any exception, it will bubble up and fail the test unless you have caught them explicitly in your code. For more information, refer this thread
http://social.msdn.microsoft.com/Forums/en-GB/vsautotest/thread/20a84e11-3bd9-4175-b50a-0646d5e155e1
Please mark the post as answered if this answers your question. ThejK- Proposed as answer by ThejKumar Siddhotam Sunday, November 28, 2010 9:54 AM
- Marked as answer by Shina35 Sunday, November 28, 2010 9:55 AM
Sunday, November 28, 2010 9:54 AM
All replies
-
These are the exceptions that are thrown and caught/handled by coded ui test internally. You don't have to worry about those. Your way of avoiding those excepions is fine.(Debug->Exceptions and unchecking)
Please mark the post as answered if this answers your question. ThejKSaturday, November 27, 2010 6:04 AM -
thanks theikumar,
than how can i know if my script thrown because of an exception or not?and how do i deal with these exceptions?
Saturday, November 27, 2010 4:36 PM -
if your script has thrown any exception, it will bubble up and fail the test unless you have caught them explicitly in your code. For more information, refer this thread
http://social.msdn.microsoft.com/Forums/en-GB/vsautotest/thread/20a84e11-3bd9-4175-b50a-0646d5e155e1
Please mark the post as answered if this answers your question. ThejK- Proposed as answer by ThejKumar Siddhotam Sunday, November 28, 2010 9:54 AM
- Marked as answer by Shina35 Sunday, November 28, 2010 9:55 AM
Sunday, November 28, 2010 9:54 AM -
Got it ThxSunday, November 28, 2010 9:56 AM