When a user type in a value like 106 or 88.8 a message should indicate
with this value, I have indicated &Temp in the message, but it is not
working. Any help will be greatly appreciated.
I did indicated Object.Text, I don't think it is the right way to do.
VbWindow("CWMainForm").VbWindow("frmVitalSigns").ActiveX("ComponentOne
Tab Control").ActiveX("Threed Panel Control").ActiveX("VSViewPort
Class").VbEdit("txtTempF").Set "106"
VbWindow("CWMainForm").VbWindow("frmVitalSigns").ActiveX("ComponentOne
Tab Control").ActiveX("Threed Panel Control").ActiveX("VSViewPort
Class").VbEdit("txtTempF").Type micTab
Temp = VbWindow("CWMainForm").VbWindow("frmVitalSigns").ActiveX
("ComponentOne Tab Control").ActiveX("Threed Panel Control").ActiveX
("VSViewPort Class").VbEdit("txtTempF").Object.Text
If Temp > 105 then
VbWindow("CWMainForm").Dialog("Vital Sign Range").Activate
VbWindow("CWMainForm").Dialog("Vital Sign Range").Static("&Temp°F is
not in the typical").Check CheckPoint("&Temp°F is not in the typical
range ( 95 to 105 ) for Temperature. Is this correct?")
VbWindow("CWMainForm").Dialog("Vital Sign Range").WinButton
("No").Click
else
end if
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en