Micro Focus QTP (UFT) Forums
how to reference a Quality Center test case in QTP - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: how to reference a Quality Center test case in QTP (/Thread-how-to-reference-a-Quality-Center-test-case-in-QTP)



how to reference a Quality Center test case in QTP - johno - 01-05-2009

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


RE: how to reference a Quality Center test case in QTP - dbonin - 01-30-2009

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


RE: how to reference a Quality Center test case in QTP - johno - 01-30-2009

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.