Monday, October 23, 2017

DataTable_Importing[import from existing sheet to new sheet]

'Importing Datatable
datatable.AddSheet ("TestData")' if we want to import own sheet first we need to add sheet
datatable.import "F:\qtp2.xls" ' it import global and ation sheets


datatable.GetSheet("Action1").SetCurrentRow(4) 'the cursor is at row 4
print datatable ("Country","Action1") 'it will print the cursor row from action1 sheet and country column

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

'Importing sheet from source to destination sheet!/importing existing sheet to new sheet
datatable.AddSheet("currentTest")' Adding the Sheet -currentTest
datatable.ImportSheet "F:\qtp2.xls","TestData","currentTest"'Adding the testData sheet to currentTest sheet
datatable.GetSheet("currentTest").SetCurrentRow(5)'cursor will be at 5th row
print datatable ("Test","currentTest")'priting the data of Test column in currentTest

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


No comments:

Post a Comment

Description Programming

'==Descriptive Programming language 'creating the common browser and page object  Set  myPage= browser( "creationtime:=0...