Forum Discussion
Hi Mehdi,
There is no such event.
If you like to block the error message if the files don't match and replace it with your own, then you need to implement the OnLogError handler where you will block the original message and post your customized one.
Hi Alex,
I don't think that this could help me. Let me explain to you what I need :
The return value of Compare() says me if there is a difference or not.
But I need to know if the Compare() method has been executed or not.
Indeed, I need to distinguish false-positive and false-negative issues for this kind of test.
Regards,
Mehdi
- AlexKaras11 years agoCommunity Hero
Hi Mehdi,
Not sure that I understood what you need:
> I need to know if the Compare() method has been executed or not.
As the method returns some result, this means that it was executed.
As the method performs binary comparison (i.e. it does not support regular expressions, callback functions, etc.), this means that the files are physically different if the method returns False.
If under 'false negative' you understand that two files may be different physically but equal logically, then you must create your own comparison function as this function must implement the business rules that define whether or not compared files are logically equal.
- m_essaid11 years agoValued Contributor
Alex,
Firstable thank you for trying helping me,
When I say "false negative" it's a bad translation from french.
I was talking about Type I and Type II errors, especialy the one when you think that an event hasn't occured while it has occured in reality.
Thus, when I test the return value of the Compare() method, which is a boolean, there is no third state for this boolean (obviously) to say that the method has execute itself.
So I really need to build a test that compares files beeing sure that 1) the comparison has been done and 2) the result is the boolean value returned by Compare().
Regards,
Mehdi
- AlexKaras11 years agoCommunity Hero
Hi Mehdi,
-- Can you mention a scenario when the .Compare method is called but the comparison is not done?
-- Doesn't the context of the extended info log panel provide you with the information of why .Compare() call failed?