![]() |
Reporting enabled/disabled fields - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Reporting enabled/disabled fields (/Thread-Reporting-enabled-disabled-fields) |
Reporting enabled/disabled fields - janriis - 09-30-2009 Hi all I need to validate on a field, whether its been enabled after af selection in a combo. The following code checks for this and pops up a msgbox Code: CheckEnabledField1=vbwindow("Main").VbWindow("Firstscreen").ActiveX("anotherscreen").ActiveX("Tab").VbEditor("txtfield1").GetROProperty("Enabled") I need to get this in a report instead of a msgbox, how do i do that ? RE: Reporting enabled/disabled fields - qtpdeepak - 09-30-2009 Hi, You can user Reporter.ReporterEvent. Go through the QTP Help file, you will find the syntax of using it. Regards, Deepak. RE: Reporting enabled/disabled fields - PrabhatN - 03-22-2010 Hello janriis, You can do it as following If CheckEnabledField1 Then Code: Reporter.ReportEvent micPass,"Field Enabled ?","The Field is Enabled" |