Creation of Test Instance in QC through QTP
I want to develop a script that will create an instance
of a test (TS_NAME) in a test set (TEST_SET_PATH\TEST_SET_NAME) and set it's status (we'll start with PASS) within Quality Center. We'll assume that the test set has already been created and the path is given. I want to create an instance of a specific test (AE_DateCalc_001) in the test set and then update it's status.
The big challenge, I suppose, will be to navigate to the TestSet Path, be able to pull our TS_Names into an array and create the instance and update the status of the individual tests.
Can anyone write a code in VBScript (in QTP) to cater to the above requirement. Preferably the code should use QCUtil and Filter functions.
Re: Creation of Test Instance in QC through QTP
Actually you can do that by using Automation object model. Here is what you will need to do
Create a VBS file which does the following:
Create the QTP AOM application object
Connect QTP to QC using AOM
Open script present in QC
Create the result object with QC test set path
Run the script
This will automatically create the test in test set and set its status.