ebodien
15 years agoContributor
OnStep Event
I'm attempting to create what I thought would be a simple event to post the Notes field of a Manual Test to the Log on step success. Based on the help files I attempted the following:
Sub GeneralEvents_OnStepSuccess(Sender, StepParams)
intStepID = StepParams.StepID
'Get the ManualTestingStepInfo Object
Set strTemp = Sender.GetStepInfo(intStepID)
'Get the data in Step notes and comments field
strTempNotes = strTemp.GetNotes()
'Outout the notes field to the log
Log.Message(strTempNotes)
End Sub
Unfortunately this results in an property or method not supported error at the "Set strTemp = Sender.GetStepInfo(intStepID)" line.
I've tried replacing "Sender" with "ManualTesting" as the help file seems to specify, but that results in an "Object required: 'ManualTesting' error.
What am I doing wrong?
Sub GeneralEvents_OnStepSuccess(Sender, StepParams)
intStepID = StepParams.StepID
'Get the ManualTestingStepInfo Object
Set strTemp = Sender.GetStepInfo(intStepID)
'Get the data in Step notes and comments field
strTempNotes = strTemp.GetNotes()
'Outout the notes field to the log
Log.Message(strTempNotes)
End Sub
Unfortunately this results in an property or method not supported error at the "Set strTemp = Sender.GetStepInfo(intStepID)" line.
I've tried replacing "Sender" with "ManualTesting" as the help file seems to specify, but that results in an "Object required: 'ManualTesting' error.
What am I doing wrong?
Never mind. I found the "hover" mouse function mentioned in a previous post.