Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running QTP scripts through QC
#1
Not Solved
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.
Reply
#2
Not Solved
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?
Reply
#3
Not Solved
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
Reply
#4
Not Solved At 
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.
Reply
#5
Not Solved
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.
Reply
#6
Not Solved
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
Reply
#7
Not Solved
Hi Sunny Rao,

If you want execute on remote host through QC,you have to configure with host details while installing the QC.
Reply
#8
Not Solved
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
Reply
#9
Not Solved
@ 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 ??
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#10
Not Solved
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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Running UFT scripts on a remote machine with no UFT installed on the Remote machine anupam4j 0 2,795 01-21-2016, 06:48 PM
Last Post: anupam4j
  Running QTP scripts without QC sowjanya 3 5,912 07-16-2015, 11:16 AM
Last Post: ravi.gajul
  QTP does not stop running furqanmlk 2 3,665 08-25-2013, 02:06 PM
Last Post: GregHicks
  QTP11 Crashing after running 2-3 scripts. anand.shrivastava86 4 6,436 06-13-2012, 03:37 PM
Last Post: linhke
  Issue with running scripts developed in qtp10 using qtp11 fghiremath 0 2,958 03-14-2012, 05:37 PM
Last Post: fghiremath

Forum Jump:


Users browsing this thread: 1 Guest(s)