Data Sink step in ReadyAPI (v3.49.0) retains data from previous runs and does not append
Previously We had a build that created an excel file and filled it with data. Now, the last Data SInk step does not append.
I made a new project to test this.
Step 1: Delete the file
Step 2: Data sink 1 with header information on the first row (no append, start at A1) -> A1 = A, B1 = B
Step 3: Data sink with data, append to end file (A2 = 1, B2 = 2)
If I execute all 3 steps seperately it works as expected. (A1 = A, B1 = B, A2 = 1, B2 = 2)
This is the desirable outcome. If I execute all steps seperately again, it will show the same outcome (also desirable), because step 1 will delete the file and start all over again with step 2.
However, if I run the testcase (all 3 steps) it seems to overwrite the first row, retain data and append that to the end of the file.
So:
Run 1 (step 1, 2 & 3) = A1= 1, B1 = 2 (overwrites step 2?)
Run 2 (step 1, 2 & 3) = A1= 1, B1 = 2, A2 = 1, B2 = 2
This is not how it worked before, and will lead to errors later (since the headers A & B are now overwritten)