Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reporting enabled/disabled fields
#1
Solved: 11 Years, 4 Months ago
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")

msgbox CheckEnabledField1


I need to get this in a report instead of a msgbox, how do i do that ?
Reply
#2
Solved: 11 Years, 4 Months ago
Hi, You can user Reporter.ReporterEvent. Go through the QTP Help file, you will find the syntax of using it.

Regards,

Deepak.
Reply
#3
Solved: 11 Years, 4 Months ago
Hello janriis, You can do it as following

If CheckEnabledField1 Then
Code:
Reporter.ReportEvent micPass,"Field Enabled ?","The Field is Enabled"
Else
Reporter.ReportEvent micFail,"Field Enabled ?","The Field is not Enabled"
End If
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  object disabled eliass 1 1,712 05-30-2017, 02:28 AM
Last Post: Vichu M J
  How to set a value if webEdit control is disabled? rohit.kum.02@gmail.com 1 3,538 12-30-2015, 12:25 PM
Last Post: vinod123
  How to check empty fields? ripchin 1 3,411 05-10-2014, 01:18 PM
Last Post: Ankur
  How to mask the particular read only mode fields while capturing screenshot in QTP kalaivanan123 2 3,524 03-18-2014, 11:31 AM
Last Post: basanth27
  Payment details fields are getting flushed vimalkamothi 4 3,441 01-04-2014, 11:09 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)