| || |
QC11 / OTA: Importing design steps fails
For QC10, I had written a custom test case importer in VBA, which creates tests and the corresponding design steps in TestPlan. For some reason, in QC11 it does not work anymore. Here is the relevant piece of code:
<font class="small">Code:</font><hr /><pre>
' if test does not exist, create it
Set lobjTest = lobjTestFactory.AddItem(Null)
lobjTest.Name = lstrTestName
lobjTest.Type = "MANUAL"
lobjTest.Field("TS_STATUS") = "Imported"
lobjTest.Field("TS_DESCRIPTION") = lstrTestDescription
' If the first design step is defined, create it
If lstrStepName <> "" Then
Set lobjStepFactory = lobjTest.DesignStepFactory
Set lobjDesignStep = lobjStepFactory.AddItem(Null)
lobjDesignStep.StepName = lstrStepName
lobjDesignStep.StepDescription = lstrStepDescription
lobjDesignStep.StepExpectedResult = lstrExpectedStepResults
Set lobjDesignStep = Nothing
Set lobjStepFactory = Nothing
Set lobjTest = Nothing
This piece of code fails at the step lobjDesignStep.Post. The error message is: "Failed to post Des Step". However, I fail to see what is wrong with this code (especially as it worked in QC10).
Anybody got a clue?
Re: QC11 / OTA: Importing design steps fails
Have you tried to add an unlock operation to designstep before it was posted.