Micro Focus QTP (UFT) Forums

Full Version: how to reference a Quality Center test case in QTP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all.

I have a bit of a problem.

I'm attempting to do the following:

1) From a new QTP script to open an existing vbscript (TEST CASE) that I saved in Quality Center.

I get an error code 1012 stating "You cannot run the test because the test is currently active"

I'm using Qucik Test Professional ver 9.1.0.0 build 2565.
My test case is stored in Quality Center vr 9.1.0

I'm not sure if my reference to the test case in Quality Center is correct.

I reference it as follows:

qtApp.Open
"[QualityCenter] Subject\Automated_Testing\test_case_PTC_0001", false

This is after my initial connect to Quality Center, which I did as:

Code:
Dim    qtApp

On Error resume next
set qtApp = CreateObject("QuickTest.Application")

IF Err.Number <> 0 then
  Reporter.ReportEvent micInfo , "Error#"  & CStr(Err.Number) ,
                                                              Err.Description
  Err.Clear
End if

Thanks in advance for your help.




John
I'm having the same issue/question.

Did you ever figure this out?

I'm trying to rewrite my winrunner framework in QTP and I'm having to relearn how to do all my "was simple to do in winrunner" type of tasks in QTP! So far, it's been a little painful being forced to work with QTP "rules"....
Hi Dbonin.

Not yet.

I'm trying a different angle to the problem.

Will let you know over the weekend.

Sometimes you have to take a step back & approach the problem from a different view.

Cheers.