I a almost finished with my first data driven test. I am able to get winrunner to pull from my data table, but I cannot save any information back to the data table. I am using the ddt_set_val_by_row command but it doesn't seem to work. Maybe someone could look over my script and see if any problems exists. BTW I tried the forums attach feature but I couldn't get that working so here it is cut and pasted. Thanks.
AJ: I added the [ code] [ /code] tags. Read about it in UBB Code is ON on the left hand side when submitting.
[This message has been edited by AJ (edited 04-03-2001).]
If you are planning to save information back to the table, you need to make sure that when you open it - the state that it is opened in allows this. In your ddt_open statement, you have selected a DDT_MODE_READ mode. This is not going to allow you to write back to the file. You should change the statement to a DDT_MODE_READWRITE state. This will allow you to write back information to the file when you use the ddt_save statement.
Additionally - you have hardcoded the table name in the ddt_save statement. You should probably change it to read ddt_save(table) to reduce maintenance in the future if you need to change the table name. You might want to change this for your ddt_set_val_by_row statement that has the table name hardcoded as well.
Hope this helps!
[This message has been edited by awdavis (edited 04-03-2001).]
Insanity: doing the same thing over and over again and expecting different results