| || |
Retreving datas from Excel sheet
I am beginer to Silk Test tool. I want to fetch data from Excel sheet. Please find the script below. While running it is throwing error with junk data. Please correct the below script inorder to run. Here i want to fetch two strings.
In what format I have to enter data in Excel sheet.
[-] type PERSON is record
[ ] STRING sName
[ ] INTEGER iPassword
[-] STRING sFile = "DDLoginRead1.xls"
[-] testcase ReadFromFile ()
[ ] ANYTYPE Item
[ ] HFILE hFile
[ ] hFile = FileOpen (sFile, FM_READ) // Open the file
[-] while (FileReadValue (hFile, Item)) // Read from file
[ ] Print (Item)
[ ] FileClose (hFile)
Thanks and Regards,
Re: Retreving datas from Excel sheet
Search with keyword excel and will get good threads which have disscused earlier.
Thanks and Reegards