invalid arguments to testcase in my data drivening script
I am new in silktest.
I got a error message as "arguments to testcase testcase_name are not valid" when I run my script. There is anyone can tell me where I did wrong? Thank you!!
[ ] //Step #1
[ ] STRING sFile ="test.txt"
[ ] //Step #2
[ ] TWCREDIT rData
[ ] //Step #3
[ ] HANDLE hFile = FileOpen(sFile, FM_READ)
[ ] //Step #4
[-] while FileReadValue(hFile, rData)
[ ] MyTest(rData)
[ ] FileClose(hFile)
[-] type TWCREDIT is record
[ ] STRING sCardNo1
[ ] STRING sCardNo2
[ ] ReadDataFile()
[-] testcase MyTest (TWCREDIT rData) appstate none
[ ] print(rData.sCardNo1)
Re: invalid arguments to testcase in my data drivening script
When we use data driven workflow, we get this error many a times. It happens because the value that is stored in input file is of different type then the value testcase expect it to. Just try changing the input value to same data type as expected by testcase.