Update QC 9.2 Parameter during run
We have a Test Parameter which we need to update in QC during the running of a QTP test in testlab.
I have been trying lines like below in my QTP test but it is not working.
Set Params = QCUtil.CurrentTest.Params
Params.ParamValue("ToUpdate") = "Test"
Does anyone know how I can update a QC Parameter while running a QTP test from the testlab in QC
The Params object you are using is not for QTP test. This is for Manual tests params and will not work in this case. You need to look into something else. Check in QC API Help and see if there is any other object that allows this
You can add parameter at test level in QTP and can access those parameter in ALM TestLab-->Execution Grid-->Test InstanceDetail-->Execution Setting-->Automated.
For accessing those parameter value in QTP use TestArgs("param_name")
Thanks for the reply. I can access the test parameters using TestArgs but need to update the value of one of them during the QTP test. I'm trying to find out if this is possible
Tags for this Thread