09-17-2012, 09:13 AM
I am leaning QTP, I have huge and complete framework to practice on. I am trying to build a new one. But Initialization prfocess is vital part to understand. If initializatiion is done I can proceed. Here are some very initial codes from Driver script. Please see the bold line. Here Importing a data sheet from XL. str_driverdatasheet is repeated. Can somebody explain why it is twice?
Code:
RunAction "Initialize_Action", oneIteration
'------Load the driver data sheet and determine the flow----------
str_driverworkbook = Environment ("envFrameworkDir") & "\Datasheets\Functional_Flow.xls"
str_driverdatasheet = "Business_Flow"
DataTable.AddSheet str_driverdatasheet
[color=#0000CD][b]DataTable.ImportSheet str_driverworkbook, str_driverdatasheet, str_driverdatasheet[/b][/color]
Set obj_driversheet = DataTable.Getsheet(str_driverdatasheet)
int_drivernumrow = obj_driversheet.GetRowCount
int_numrow = 1