nawerbravo.blogg.se

Alm uft tutorial
Alm uft tutorial













  1. #ALM UFT TUTORIAL HOW TO#
  2. #ALM UFT TUTORIAL MANUAL#
  3. #ALM UFT TUTORIAL PASSWORD#

We can use the above technique to pass parameters to the script using the design steps in an automated script. 'Move to the next row of the results TDRes.Next Wend 'Loop throuh all the results in the recordsetWhile Not TDRes.EOR "Select OS-DESCRIPTION, DS_EXPECTED Froa DESSTEPS 'read the Step Description and Expected Text 'Get all the design steps present in the Test and 'Get the ID of the current test in the Data base TestID = QCutil.

#ALM UFT TUTORIAL MANUAL#

Manual Steps) present in test plan for the current test:

#ALM UFT TUTORIAL HOW TO#

The following code shows how to get the Design Steps (i.e. Details about the QC database tables are out of scope for this book but we will show how to make a simple query and process the results. The Command and Recordset objects allow us to get data directly from the QC project's database. 'Release the connection to the server TDConnection. TDConnection.ConnectProjectExsDOMAIN, sProjectName, sUser, sPassword Set TDConnection = CreateObject("TDAPIOleS0. 'Create the TDConnection object using OTA COM object The method given above uses QTP AOM to get a TDConnection object reference, but it is also possible to create the object using the CreateObject function as follows: OQCConnection.ConnectsServerURL, sDOMAIN,sProjectName,sUser ,sPassword, True The code lines that would be changed are as follows:

#ALM UFT TUTORIAL PASSWORD#

If we don't want to use a plain text password then we can use the QTP Password Encoder tool located in the QTP programs folder menu. The code given above first determines if we are already connected to the desired project and if not then it performs the required connection. 'Get the TDConnection OTA Object reference OQCConnection.ConnectsServerURL, sDOMAIN,sProjectName,sUser, sPassword, False 'ProjectNameAs String, UserNarae As String, Password As String, 'Sub Connect(ServerURL As String, DomainName As String, 'Connect only if we are not connected to QC 'Disconnect from the project, we would like to reconnect "Check if the connection parameters are same with the Set qtpApp = CreateObject("QuickTest,Application") The second method is to connect using the QTP Automation Object Model (AOM), which is shown using the following code: There are two ways to connect to QC through QTP, one of them is to connect through the QTP UI which has already been discusses earlier. 'Get the TDConnection OTA object referenceīut if we are not connected to QC then the above statement won't work and returns 'Nothing'. In QTP we obtain a reference to this object using the following statement: This object is required to connect to the QC server and works with any project. TDConnection is the top level object in the model.















Alm uft tutorial