UFT API test - Write values to datatable and export to ALM
I have using UFT for an API test. from the json response i get i am able to parse the response and store some data from response to output parameters. But now I have to write these parameter values to the input datasheet and upload back to ALM.
Also the api test is set up to run for each row in the input datasheet.
did anyone tried to write parameter values to datatable? If so can you please assist.
Re: UFT API test - Write values to datatable and export to ALM
GetDataSource("Test sheet!Sheet1").SetValue(Loop2.CurrentIterationNumber - 1, "MemberName", "Joe");
Test sheet!Sheet1 - is the name of your data sheet (you can cheat and right click the sheet in the data tab, and copy name)
MemberName - is the column you want to update
For this silly example I set all the values to 'Joe'
Also, note that the rows start at 0, so if you were to use a loop, subtract 1...
hope this helps.