Dear all,
I am trying to compare two csv files and i have succeeded in testing them. But i have a problem that, The test fails for the first csv value which are not equal. And the reports generated for the error where the test fails. Now my problem is this,
How to continue to test the next records in the csv file ? So that i do not want to run the test when i fixed the first unequal value in csv file.
please help.
thanks and regards,
jerald
Jerald, It sounds like the
Jerald,
It sounds like the total difference between the CSV files is the data of interest when the test fails. The best plan is then to create an object that can hold the whole difference. For example:
assertEquals(CsvDiff.NO_DIFFERENCES, csvFile1.difference(csvFile2));
Would that be hard?
i have done the code like
i have done the code like this..
created seperate objects for each and every records of csv file and compared seperately which returns a boolean. Then i passed the boolean to the asserting method. I worked great.
Thanks for your reply.
Thanks and regards
Jerald