Welcome, Guest. Please login or register.
Login with username, password and session length

 
Advanced search

18120 Posts in 4741 Topics- by 31743 Members - Latest Member: suuraj
 

Pages: [1]   Go Down
Print
0 Members and 1 Guest are viewing this topic.
Author Topic: Running Scripts from QC    (Read 248 times)
Madhu S
Active User
**
Offline Offline

Posts: 84


« on: February 23, 2010, 12:33:08 AM »

Hi ,
     Here my issue is ,if my scripts uploaded at QC in specicific domain ,in specifi project's folder in QC.After that i created a testset in Test lab.From here i want to run these scripts from qtp.What is my approach?how can we code it .Iam totally new for this QC integrtaion through qtp in Automation.
Please help me in this issue,will feel great for ur Valuable inputs .

Regards
Madhu
Logged
Asiq Ahamed
Moderator
Sr. User
*****
Offline Offline

Posts: 459



WWW
« Reply #1 on: February 23, 2010, 12:43:39 AM »

Hi Madhu,
       The below steps to be followed before running your scripts in QC,

1) Make sure QC QTP Addin is installed in your machine.
2) After creating test set in Test Lab, click on 'Select Tests' button. Test Plan Tree will be opened, there you need to select your corresponding QTP Script.
3) Now you can run your script by clicking Run icon in your Test Lab.


Good Luck Smiley
Logged
Madhu S
Active User
**
Offline Offline

Posts: 84


« Reply #2 on: February 23, 2010, 12:57:01 AM »

Yes Asiq,Your Right,As like as we do in manual one .Here i have doubts like,how can i export all my scripts to that folder and want to automate the script running (with using some code not with manual,in certain time).
I dont want to run by manual,i want to run these scripts at specific time (yes we have batch runner,to run like this at specific time at bacth wise)here i want to run by code.
To make connection to the QC.
TO export all my QTP Automated scripts to the QC under specific folder
After running i want to export my results to QC and if any script fails raise defect .

I know my question is very lenghty,and too many doubts.But i want automate this integration part with QC.
Asiq pls help me on this .

Regards
Madhu
Logged
Asiq Ahamed
Moderator
Sr. User
*****
Offline Offline

Posts: 459



WWW
« Reply #3 on: February 23, 2010, 01:13:39 AM »

Hi Madhu,
     Try the below code,

Code
GeSHi (qtp):
Set qtApp = CreateObject("QuickTest.Application")

qtApp.Launch

qtApp.Visible = False

If Not(qtApp.TDConnection.IsConnected) Then

qtApp.TDConnection.Connect " [url=http://../qcbin"]http://../qcbin"[/url],"Domain", "ProjectName", "userid", "password", False



qtApp.Open "
[QualityCenter] Subject\QCScriptPath\ScriptName", False'Make Sure about your script path.

qtApp.Test.Run



qtApp.TDConnection.Disconnect

qtApp.quit

Created by GeSHI 1.0.7.20
Logged
Asiq Ahamed
Moderator
Sr. User
*****
Offline Offline

Posts: 459



WWW
« Reply #4 on: February 23, 2010, 01:18:52 AM »

Hi Madhu,
        Please refer the below link, you will get the complete code,

http://www.sqaforums.com/printthread.php?Board=UBB20&main=549692&type=post
Logged
Madhu S
Active User
**
Offline Offline

Posts: 84


« Reply #5 on: February 23, 2010, 01:27:11 AM »

Oh,using AOM.Its Great Asiq,its connecting with out any error.But iam not able to see visible QC in mydesktop after running code.I created one  .vbs file(in that i pasted ur code and given url of qc,with project name ,doamin name and all ) and executed.

Super thanks Asiq.From here i will go ahead.I wil try to export the scripts to the specific location in qc ,if i get any issue let u know.

Regards
Madhu

Logged
Pages: [1]   Go Up
Print
Jump to: