QTP
How to print Output Values in QTP/UFT with Example
What is the Output Value? An output value step is a step in which an object property value is...
In this tutorial, we will be working with Excel with Micro Focus UFT
Consider we want to import the following Sales.xls
Once imported into HP UFT, the top row becomes the column header. So structure your data accordingly.
The Syntax to import entire Excel file is
DataTable.Import(FileName)
In our case
Datatable.import "D:\Automation\Sales.xls"
The Syntax to import a particular sheet is
DataTable.ImportSheet(FileName, SheetSource, SheetDest)
Use the method Getrowcount to get number of rows in the sheet
Datatable.import "D:\Automation\Sales.xls"row = Datatable.getsheet(1).Getrowcount MsgBox row
To set the current row to use the method SetCurrentRow
Datatable.import "D:\Automation\Sales.xls"DataTable.SetCurrentRow(1)
' In the code below, 1 is the sheet number
Row1= Datatable.Value("Year",1)
DataTable.SetCurrentRow(2)
Row2= Datatable.Value("Year",1)
MsgBox("Year Row 1 =" & Row1 & " Year Row 2 =" & Row2 )Use the Value method to change data in the imported sheet. Use the Export method to export the Excel
What is the Output Value? An output value step is a step in which an object property value is...
Installing the trial version of HP UFT or QTP from the Micro Focus site is a 2-step process. Part 1)...
This tutorial demonstrates advanced coding in HP QTP using if and else loop {loadposition video} Video...
An optional step is a step that is not necessarily required to successfully complete a run...
What is QTP/UFT? QTP is an automated functional Testing tool that helps testers to execute...
This questionnaire is divided into Beginner and Advance questions. If you are experienced in QTP...