04-12-2011, 02:10 PM
need a urgent help
I am new to QTP.I want to know how to change the font color of a text dynamically and want to see object text in the specified color in the result details page in result viwer.
for example :
str = "this is a sample text"
// now change the font color of str ( "this is a sample text" - earlier it was balck but after changing dynamically color should be green or red )
// now i m using Reporter.ReportEvent
Reporter.ReportEvent micDone, str,"just checking the color of font color str"
so that in the test result I can identify pass or fail by seeing the font color of the text(which is present in object column in result details page in result viwer) as micDone does not specify any color in result details page.
is that possible through code that we can change the font color of text through QTP and pass it through Reporter.ReportEvent micDone?
If possible Please let me know how to do that.Please provide a solution or if it is not possible please let me know why?
Thanks in Advance..
I am new to QTP.I want to know how to change the font color of a text dynamically and want to see object text in the specified color in the result details page in result viwer.
for example :
str = "this is a sample text"
// now change the font color of str ( "this is a sample text" - earlier it was balck but after changing dynamically color should be green or red )
// now i m using Reporter.ReportEvent
Reporter.ReportEvent micDone, str,"just checking the color of font color str"
so that in the test result I can identify pass or fail by seeing the font color of the text(which is present in object column in result details page in result viwer) as micDone does not specify any color in result details page.
is that possible through code that we can change the font color of text through QTP and pass it through Reporter.ReportEvent micDone?
If possible Please let me know how to do that.Please provide a solution or if it is not possible please let me know why?
Thanks in Advance..