|
about rational robot datapool function:
there are two localizations on datapool, one is the max row is 256; the other is non-editable.
the suggestion way is to use excel file to replace the datapool.
SQABasicLanguage provide some APIs to conduct excel file which are similar with VB Language, this is example:
dim excel as Object
dim book as Object
dim worksheet as Object
'check the excel application is valid
Set excel = GetObject(,"excel.application") ;
if(excel Is Nothing) then
Set excel = CreateObject("excel.application")
if(excel Is Nothing) then
MsgBox "Couldn't find Excel!"
Exit Sub
End if
End if
Set book = excel.Workbooks.Open(EXCEL_PATH)
Set worksheet = book.Worksheets(SHEET_NAME)
' then you can use variable worksheet to conduct sheet of excel file
' read the data in excel file
ccystring = worksheet.Cells(row,column).Value
' write the data in excel file
worksheet.Cells(row,column).Value = ccystring
the conclusion is:
excel itself can provide some calculation/string function, so it may be more effective than datapool, but till now i can only conduct excel cells with row and column number, so in the codes there will be too many number express cell location, which reduces maintainability of scripts. but it does be a way to do something ~~haha |
|