dotTest 10.3 - Is it possible to edit a rule.

elchelch Posts: 44

Hi,

dotTest 10.3 - Is it possible to edit a rule. Similarity to C++test ?
Is it possible to do it from the IDE ?

Thanks In Advanced,

Best Answers

  • Piotr KrukowieckiPiotr Krukowiecki Posts: 6
    Accepted Answer

    Yes, that is correct.

Answers

  • mrybakmrybak Posts: 4

    Hi @elch,
    Could you please clarify what do you mean as "editing"? Do you mean rule parametrization, cloning/renaming rules, creating new ones or changing behavior of current ones?

  • elchelch Posts: 44

    Hi @mrybak

    1. changing behavior of current ones by adding\updating parameters.

    Thanks

  • elchelch Posts: 44

    Hi @Piotr Krukowiecki

    Thanks for the detailed answer.
    I downloaded the latest Rule wizard application 10.3.4.
    I got an error when tried to edit a rule from 10.3.3. dotTest. The Error was Unknown rule type .NET.

    1. Any suggestion.
    2. How can I link between rule name in report , for example SEC.... to the name of rules files ?

    Thanks

  • elchelch Posts: 44

    Hi @Piotr Krukowiecki

    Thanks on your support.
    Ok , Rule wizard is operating , it was missing some files.
    I can browse the xml files.

    I can not find in my version 10.3.3 the rule SEC.LGE-2 ? very wiered.
    Any suggestions ? BTW can I edit it ?

    Thanks

  • elchelch Posts: 44

    Hi @Piotr Krukowiecki

    We had some issues with this rule as it raising an error that catch has no logger operation inside the catch.
    we have Serilog logger , the rule does not recognize such logger. the logger has different logger methods , such as logger
    So Do you think setting up a new rule can resolve this issue ?

    thanks

  • elchelch Posts: 44

    Hi @Piotr Krukowiecki

    I want to edit SEC.LGE rule because it is raising a lot of false alarms on missing logger.
    We are using for example Serilog logger , It seems the scan does not recognize _logger.Error( ex, "dd") methods in the catch .
    Any suggestions how to resolve the issue ?

    Thanks

  • Piotr KrukowieckiPiotr Krukowiecki Posts: 6

    Hi @elch,

    please make sure that rule parameters are correctly set up and that the _logger.Error call should be recognized as "log" method based on parameters definition.

    If you believe rule parameters are correctly set up, could you please provide compilable/simplified code which shows the problem?

  • elchelch Posts: 44

    Hi @Piotr Krukowiecki

    Can you please tell what are the steps to check if I setup the rule correctly.
    I just set it to TRUE in my properties file.
    Am i missing something ?

    thanks

  • elchelch Posts: 44

    Hi @Piotr Krukowiecki

    OK , got it,
    It can be editable except for some rules like SEC.LGE ?

    Thanks

Sign In or Register to comment.