I have a test which runs through 47 iterations of an excel spreadsheet, each row of the spreadsheet is bound to a separate repository item so interrogates a different object with each run. Id like to report a screenshot of the specific item that's being interrogated to help with troubleshooting. I have managed to do it with the below by having a code module with the variable path passed in as an adapter (in this case FieldToBeValidated) and then simply had
at the end of my code module.Report.Screenshot(FieldToBeValidated);
This appears to work great for the first iteration but the same screenshot shows for every iteration even when the adapter path is changing. I've attached some screenshots of the code module, the first test run where its working as expected and the second where its pulling in the first tests image incorrectly
I cant understand why this would happen apart from maybe some caching issue, the repository paths are definitely correct and this is the case across 50 odd iterations
and help would be appreciated