Académique Documents
Professionnel Documents
Culture Documents
A: 1. Check Allow other Mercury products to run tests and components present under Tools > Options > Run in QTP 2. If you are running the tests on the same computer where you have QC client installed, then you will need: 1. QTP Connectivity Add-In 2. QTP Add-in 3. If you are running the tests on the different computer than where you have QC client installed, then you will need: 1. QTP Add-in where QC client is installed. 2. QTP Add-in and QC connectivity Add-in where QTP is installed. 4. QC connectivity can be found at QC server URL > Add-Ins Page link > QC Connectivity link > Download Add-in 5. QTP Add-in can be found at QC server URL > Add-Ins Page link > More QC Add-ins link > Download and install QTP Add-in according to its version.
Q: How can we connect QC with QTP using Automation Object Model (AOM)?
A: Use TDConnection Object. Example: Create the QuickTest Professional application object. Set qtqcApp = CreateObject(QuickTest.Application)qtqcApp.Launch Launch QTP qtqcApp.Visible = True Make it visible Connect to Quality Center qtqcApp.TDConnection.Connect <QC Server path>, <Domain name that contains QC project>, <Project Name in QC you want to connect to>, <UserName>, <Password>, <Whether password is entered in encrypted or normal. Value is True for encrypted and FALSE for normal> qtqcApp.TDConnection.Connect http://QualityCenterServer/tdbin, FR, Flights, learnqtp, welcome, False
A: Go to File > Quality Center Connection. Check the box marked Reconnect to server on
start-up.
Q: What if QTP tries to connect with QC automatically but QC login credentials had changed?
A: Change the following properties from 1 to 0. They are present in mic.ini file under QTP installation generally found under C:\Program Files\Mercury Interactive\QuickTest Professional\bin 1. LoginAutomatically=0 2. ReconnectToDB=0 3. ReconnectToServer=0
Q: How can we access Quality Center Open Test Architecture (OTA) using AOM?
A: Using QCUtil object (AKA TDUtil for QTP 6.5 and backwards). You can find details of all associated properties like CurrentRun, TestRun, Current Testset, CurrentTestSetTest, IsConnected, QCConnection under QTP Help > Quick Test Object Model Reference > Utility Objects > QCUtil Object.
Q: Where can we find all methods and properties present under TDConnection Object?
A: Refer QTP Help > QTP Advanced References > QuickTest Automation > TDConnection Object.
Use the SaveAs method to upload the test to Quality Center qtqcApp.Test.SaveAs [QualityCenter] Subject\FolderName\QTPTScript