I'm new to winrunner. I've been testing the login window of my application. I'm trying to test the password box by giving various wrong passwords...i'm doing this by making my test data driven. here is my ddt
What kind of error? If a TSL error, what type and which line? Have you used the debug tools to set a breakpoint, step through the code and watch the variables? (I don't see anything jumping out as me as obviously wrong, if that's any consolation. )
"Any sufficiently advanced bug is indistinguishable from a feature." -Bruce Brown
As other have said, more information would be useful on the exact error - what is failing? Common items include table not open, can't find the conrol, etc. (not unknown for DataTables to "magically" close or for controls to have their names changed or typos of names....) Assign the results from steps from a variable, and display an error error message if the result isn't E_OK.
FWIW, it does not appear that you are doing any result processing. When you click the 'Ok' button, do you get an imediate error? How is it displayed? Is a different dialog brought up with the error message?
You may want to try using the obj_type() function instead of edit_set(). Password boxes are usually protected and don't contain the actual value that you type into them. This prevents people from copying their contents. Using the obj_type() function mimics the actual keying of the password rather than just setting the textbox contents to that value.