I have a requirement like need to filter run ID and attach screenshots as 
well as add expected and actual results in the ALM Test Run. I used the 
below code. I got run time error as "Unexpected empty parameter". Could you 
please any one help.

dim objSfact
dim objOrun
dim mystep

Set objOrun = QCutil.CurrentRun

Set objSfact = objOrun.StepFactory
Set att = objSfact.AddItem(null)
att.name = aStepname
att.post

Set steplist = objSfact.NewList("SELECT * FROM Step WHERE
ST_STEP_NAME='" & aStepname & "'")
For each mystep in steplist
mystep.Status = aStatus
myStep.Field("ST_DESCRIPTION") = aDesc
myStep.Field("ST_EXPECTED") = aExpected
mystep.Field("ST_ACTUAL") = aActual

If mystep.Status = "Failed" then
objOrun.Status = "Failed"
end if

mystep.Post
Next

Set objSfact = Nothing
Set objOrun = Nothing

Thanks & Regards,
Bharathi K.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mercuryqtp/1d8d71ce-c1b4-4d79-802b-799d6c01fb49n%40googlegroups.com.

Reply via email to