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

Customizing the test result

3 Answers 110 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Archana Sathyanarayan
Top achievements
Rank 1
Archana Sathyanarayan asked on 07 Sep 2010, 05:40 AM
Hi,

This is Archana.

How do I customize my test results.
I have converted the steps to VB code.
I tried using print but it seems not working.

Thanks & Regards
Archana

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 08 Sep 2010, 11:42 PM
Hi Archana Sathyanarayan,

I am sorry but the "how" depends on what sort of customization you want to achieve. Can you elaborate please on where/how you want it changed? Where does the current results not meet your needs?

Best wishes,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Archana Sathyanarayan
Top achievements
Rank 1
answered on 09 Sep 2010, 02:57 AM
Hi Cody,

Thanks for the reply.

I am verifying the text box value. If the value is not valid then I want to display customized result saying invalid input entered.

I want this to be printed on the results page.


Thanks & Regards
Archana
0
Nikolai
Telerik team
answered on 09 Sep 2010, 06:06 AM
Hello Archana Sathyanarayan,

 You can write custom verification like this:
 Assert.IsTrue(false, "MyCustomMessage");

This way if the assertion fails your custom message will be part of the StackTrace of the error:

InnerException:
ArtOfTest.Common.Exceptions.AssertException: MyCustomMessage - [Expected:True],[Actual:False]
   at ArtOfTest.Common.UnitTesting.Assert.IsTrue(Boolean condition, String message)
   at WebUIStudio.Tests.Verf.Verf_CodedStep() in C:\TFS\TestNode\WebTestingProject\WebUIStudio.Tests\Verf.aii.cs:line 78

You don't even need to convert the step to code. All "Verification" action steps have the LogMessageOnFailure property in which you can set your custom message.


Sincerely yours,
Nikolai
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Archana Sathyanarayan
Top achievements
Rank 1
Answers by
Cody
Telerik team
Archana Sathyanarayan
Top achievements
Rank 1
Nikolai
Telerik team
Share this question
or