Hi,
I am currently trying to create a script that will read a value from the SUT then write it on a CSV file. I am trying to use the writedata command but I’m getting this error.
28/5/14 8:46:15 AM readtext (174,206,353,256)
Writedata Actual to item 5 of line n of file filepath
<<< 08:46:15 End handler 1: testcase2 (aborted)
28/5/14 8:46:15 AM EndTestCase (Duration:"17.222", Errors:"1", Exceptions:"0", StartTime:"2014-05-28 08:45:58 +0800", Successes:"0", TestCase:"Testcase2.script", Warnings:"0")
28/5/14 8:46:15 AM FAILURE Invalid Range Only numeric, date/time, and character ranges are supported.
Execution Time 0:00:17 Testcase2.script
Here’s my script:
Put file "C:/Testcase.csv" into filepath
Set the itemdelimiter to ","
Put 2 into n
*
*
*
*
Set Actual to ReadText(uprectangle,downrectangle)
Writedata Actual to item 5 of line n of file filepath
Please advise if there is something wrong on how I used the command or if there are some other commands that I can use to handle it. Thanks.