Micro Focus QTP (UFT) Forums
Running QTP scripts through QC - 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: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Running QTP scripts through QC (/Thread-Running-QTP-scripts-through-QC)



Running QTP scripts through QC - sunny rao - 01-21-2009

Hi All,

I am trying to run QTP 9.5 scripts using QC.

1) I wrote some sample test in QTP. Then file -> Quality Center Connection. Also checked Allow other HP products to run tests and components.
2) saved the test in QC in test plan
Question:
1) Why am I not able to see QTP script under the test script tab in Test Plan
2) In TestLab when I run the test I get error "Cannot get remote agents Class ID for test type"

Can any body suggest the correct way of loading and running QTP scripts in QC.


RE: Running QTP scripts through QC - sundarn - 01-22-2009

Hi Sunny,

Try following things :

Prerequistes: Install qc add-in for qtp 9.5.

answer for question 1 : Try this alternative:
i) Create a quick_test object in the test plan
ii) Click the icon to launch QTP from QC
iii) Write ur scripts and save
iv) Drag the same test object into the test lab , now u wud b able to execute the test scripts from QC.

Question 2: Do u wanna run locally or on remote host?


RE: Running QTP scripts through QC - bfakruddin - 01-23-2009

1.Open your Quality Center first...
2.Login with your username and password
3.Invoke your QTP
4.Develop your script
5.click on Save
' Automatically It opens your quality center database
6.Select new folder or give your test name directly into the Subject folder
7.Click on OK button
8.Select Test plan tab in Quality Center
9.Click on Refresh Button
' Here you will see your current test
10.Click on Test Lab Tab
11.Goto Test sets-->Select Tests
'Right side of screen we will get Test Plan Folder structure
12.Click on Refresh
13.Click on <-- button beside refresh button
14.The test will add to Execution Grid
15.Select your test
16.Click on Run Button
17.Automatic runner window will open
18.Test Name,Run On Host,Status... tabs are there,
19.Select Your host in "Run on Host "
20.Click on Run
'Automatically QTP invokes and runs...

These are the steps to run QTP script from QC

'I have a small question here.... After running scripts I am getting always the "Test run failed in Status ".. Test was successfully completed but why QC showing like that...

please help me


RE: Running QTP scripts through QC - bfakruddin - 01-23-2009

1. Install QC addin into your QTP...
2. You need a Host to run the script...

Once you develop the script in qtp save into the QC database, automatically QC will take that test into QC, then you will not face problem to run that test.


RE: Running QTP scripts through QC - sunny rao - 01-27-2009

Thanks for the replies

However I have following Questions


1)I am running the test locally by setting the checkbox, which says run locally. what will be the difference if I want to run on a remote host.
2)Do you know how to set up a future time, to run the scripts at the specified time.


RE: Running QTP scripts through QC - Vibheesh - 03-20-2009

Hi All,
Can Anyone help me to know how to run QTP 9.5 script from QC 9.2. I have used Function Libraries in separate folders. How can I integrate in QTP Scripts and Function libraries in QC?
My Folder structure is as follows:
1. Source\Action0
2. Source\Action1
3. Source\Config
4. Source\FrameworkLibraryFiles
5. Source\ModuleScripts


RE: Running QTP scripts through QC - MVChowdary - 03-20-2009

Hi Sunny Rao,

If you want execute on remote host through QC,you have to configure with host details while installing the QC.


RE: Running QTP scripts through QC - orange - 08-26-2009

When I run the QTP scripts in QC, I am getting error as "class is not registered". I am using QTP 9.2 . Let me know come across this type and got the answer.Thanks


RE: Running QTP scripts through QC - basanth27 - 08-26-2009

@ bfakruddin - Please ensure that the original intention of the post is retained. Per the forum Guidelines do NOT entertain different questions in the same post. Please create a new post for every new question.

@Sunny Rao - Kindly post only one question per post. Do not divert the attention to multiple questions at the same instance.

@Orange - You are trying to run QTP scripts on a QC machine using QC ?? Is that your question ? If yes,

"Class is not registered" - Several reasons behind this error message. Try the below first,
Have you ensured that the QuickTest Add-in and the QuickTest Integration add-ins are installed on the QC machine ?

1. Open a script on QTP and perform a execution. Does it work successfully ?
2. On QTP, on the Run Options look for a option called "Allow other HP products to run test and components" check the checkbox.
3. Close QTP. Close QC.
4. Open QC, Navigate to the testlab, select the test and click on Run.
5. Select "Run test locally" and click on Run.

What happens on the screen ??


RE: Running QTP scripts through QC - 1981.madhu@gmail.com - 09-16-2009

Hey still having confusion,pls give the clear steps :

For Example :i have created one script(One Action) That folder is at C:\Login

This one is how can i run from the QC?