Forum Discussion

johnmclaughlin's avatar
johnmclaughlin
Contributor
14 years ago

Property checkpoint against a parameter within a data driven loop

I am testing the calcuation of premiums on a web based application. I have a list of premiums saved in an excel spread sheet which correlate to premiums generated on the application. This excel spreadsheet runs the data driven loop that calculates the premium for each record.



I want to add a check point at the end of each calculation that compares the premium calculated by the application against my calculation in the spreadsheet.



Normally i would have the checkpoint compare the object property against a parameter and then link this with the table data but it does not give me an option to do this.



How can i get a property checkpoint within a data driven loop where the value changes?

1 Reply


  • Hi John,





    You can simply use an if..then statement to check whether the currently calculated value in your application equals an expected value (I'm not sure whether the value will be read from your Excel sheet or calculated via some formula dynamically, but I believe a simple code expression will allow you to retrieve the expected value anyway).