ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
How to connect QTP to Testdirector
 Question Submitted By :: Srikanth
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to connect QTP to Testdirector
Answer
# 1
First install qtp 9.0 or 8.2 in your machine..after install 
testdirector 8.0 or Qualtiy center.The latest version of 
Test director is webbased test management tool.After 
installing the Test Director u got one url for accessing 
test director..Then copy that url. Then switch to Qulity 
center conncetion option in QTP .then paste it in that url 
appropriate quality center connection window..then clik 
connect..it will takes some time ..
 
Is This Answer Correct ?    5 Yes 1 No
Murali Raju
 
  Re: How to connect QTP to Testdirector
Answer
# 2
Thanks Murali, but through scripting how to connect to QC
 
Is This Answer Correct ?    1 Yes 2 No
Srikanth
 
 
 
  Re: How to connect QTP to Testdirector
Answer
# 3
I am sending the complete script to connect Quality Center

'***********************************************************
************************************************************
* 

'Description: 

' 

'This example connects to a Quality Center project, opens a 
test (checks it out, if applicable), 

'updates the Active Screen values and test object 
descriptions, and, if applicable, 

'checks the modified test back into the Quality Center 
project. 

' 

'Assumptions: 

'The test1 test is not already checked out. 

'There is no unsaved test currently open in QuickTest. 

'For more information, see the example for the Test.SaveAs 
method. 

'When QuickTest opens, it loads the add-ins required for 
the test. 

'For more information, see the example for the 
Test.GetAssociatedAddins method. 

'***********************************************************
************************************************************
* 

 

Dim qtApp 'As QuickTest.Application ' Declare the 
Application object variable 

Dim qtUpdateRunOptions 'As QuickTest.UpdateRunOptions ' 
Declare an Update Run Options object variable 

Dim qtRunResultsOptions 'As QuickTest.RunResultsOptions ' 
Declare a Run Results Options object variable 

Dim blsSupportsVerCtrl ' Declare a flag for indicating 
version control support 

 

Set qtApp = CreateObject("QuickTest.Application") ' Create 
the Application object 

qtApp.Launch ' Start QuickTest 

qtApp.Visible = True ' Make the QuickTest application 
visible 

 

' Make changes in a test on Quality Center with version 
control 

qtApp.TDConnection.Connect "http://tdserver/tdbin", _
              "MY_DOMAIN", "My_Project", "James", "not4you",
 False ' Connect to Quality Center 

 

If qtApp.TDConnection.IsConnected Then ' If connection is 
successful 

    blsSupportsVerCtrl = 
qtApp.TDConnection.SupportVersionControl ' Check whether 
the project supports vervion control 

 

    qtApp.Open "[QualityCenter] Subject\tests\test1", 
False ' Open the test 

    If blsSupportsVerCtrl Then ' If the project supports 
version control 

        qtApp.Test.CheckOut ' Check out the test 

    End If 

 

    ' Prepare the UpdateRunOptions object 

    Set qtUpdateRunOptions = CreateObject
("QuickTest.UpdateRunOptions") ' Create the Update Run 
Options object 

    ' Set the Update Run options: update the Active Screen 
and test object descriptions. Do not update checkpoint 
values 

    qtUpdateRunOptions.UpdateActiveScreen = True 

    qtUpdateRunOptions.UpdateCheckpoints = False 

    qtUpdateRunOptions.UpdateTestObjectDescriptions = True 

 

    ' Prepare the RunResultsOptions object 

    Set qtRunResultsOptions = CreateObject
("QuickTest.RunResultsOptions") ' Create the Run Results 
Options object 

    qtRunResultsOptions.ResultsLocation 
= "<TempLocation>" ' Set a temporary results location 

 

    'Update the test 

    qtApp.Test.UpdateRun qtUpdateRunOptions, 
qtRunResultsOptions ' Run the test in Update Run mode 

    qtApp.Test.Description = qtApp.Test.Description & 
vbNewLine & _
                              "Updated: " & Now ' Document 
the update in the test's description (Test Settings > 
Properties tab) 

 

    qtApp.Test.Save ' Save the test 

 

    If blsSupportsVerCtrl And qtApp.Test.VerCtrlStatus 
= "CheckedOut" Then ' If the test is checked out 

        qtApp.Test.CheckIn ' Check it in 

    End If 

 

    qtApp.TDConnection.Disconnect ' Disconnect from Quality 
Center 

Else 

    MsgBox "Cannot connect to Quality Center" ' If 
connection is not successful, display an error message. 

End If 

 

qtApp.Quit ' Exit QuickTest 

Set qtUpdateRunOptions = Nothing ' Release the Update Run 
Options object 

Set qtRunResultsOptions = Nothing ' Release the Run Results 
Options object 

Set qtApp = Nothing ' Release the Application object
 
Is This Answer Correct ?    5 Yes 0 No
Murali Raju
 
  Re: How to connect QTP to Testdirector
Answer
# 4
How to connect to Test Director through Scripting
 
Is This Answer Correct ?    0 Yes 0 No
Dev Kumar
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How to map the test cases to requirements in QC? IBM2
Plz explain about object propeties in object identification? means.. explain about 1. mandatory properties.2. assestive properties 3. ordinal properties. TCS3
Which object repository we use in real time and can we merge 2 object repostiory and how? HCL6
how can we write descriptive programming for menus when qtp is not able to identify it..and how can we write descriptive programming for partially identified and non standard objects..do i have to map the objects before writing the script  1
Hi I have a doubt in qtp. Can you please clarify my doubt. If we are importing the data from excel sheet in qtp the the script is running the number of row times. I mean if there are 4 rows in excel sheet the script is running 4 times. cant we avoid this. suppose i have tis script: datatable.Import "C:\Documents and Settings\sailaja\My Documents\login1.xls" n = datatable.GetRowCount For i =1 to n systemutil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe" datatable.SetCurrentRow i Dialog("Login").WinEdit("Agent Name:").Set DataTable ("Username", dtGlobalSheet) Dialog("Login").WinEdit("Password:").Set DataTable ("Password", dtGlobalSheet) Dialog("Login").WinButton("OK").Click Window("Flight Reservation").ActiveX ("MaskEdBox").Type "020209" Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt" Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles" Window("Flight Reservation").WinButton("FLIGHT").Click Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click Window("Flight Reservation").WinEdit("Name:").Set "Sailaja" Window("Flight Reservation").WinButton("Insert Order").Click Window("Flight Reservation").WinMenu ("Menu").Select "File;New Order" window("Flight Reservation").Close next I created a excel sheet with 3 rows and 2 columns. (username and password). The script is running 9 times. I made the option run one itaration only . eventhough it is running 9 times .can u plaese clarify my doubt. Thankyou Sailaja.  2
How can you delete the results file (XML)  2
Is the provision for integrating QTP with QC ,available from the version 9.0 onwards only or even 8.2 version has such provisions?  1
In our application (Web based application)we will get a pdf file and we have check a particular text in that pdf. Can any one tell how to check text in a pdf file. In the same pdf file it generating some links and I have to click that links. QTP unable recognizing that links, even id did record and playback qtp does not generating any script. Can any one help me….?  5
where is the bitmap checkpoint be saved  3
hi i have one issue while coding the dates . i want to add the date curret to 4 days . can any one helme plz about this regards balaji  2
Hi, It is HR question. What are the qualities you like and dislike in your Project Manager? TCS2
Explain about reusable actions? IBM2
wht is Automation testing frame work. pls explain it Wipro3
What is a Web Table? Kanbay4
I have to do testing for XML file using QTP. 1. I was given a sample XML, I had to edit that with my actual data and had to make a new XML-- this part is completed, I did that. 2. Now I have to copy the exact contents of that XML file and have to paste it in a web application as a request message for web appliaction processing, using QTP. So I am unable to copy and paste it in web application, please help me out.  1
What is difference between WR and QTP?  2
Difference between image checkpoint and bitmap checkpoint  2
i'm using QTP 8.2, How should i select(browse) object repository from desktop(or from local local drives like C:\,D:\)?. Note:- object repository to select(browse) is been sent by some other person who is using QTP 9.0  1
How to check the URL using Automation tool QTP  2
what are the metrics in general we use in testing. TCS5
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com