Forum Discussion

Colorado55's avatar
Colorado55
Visitor
2 years ago

Key word testing and disabling logging on property checks

I have a bunch of drop and drag keyword setup scripts that I do not want to log test results as the Property/Region checkpoints looks for a status of where we are on the webpage and fails as it should - but it logs it in the test results  - Is there a way to create a keyword test script that shuts logging on and off before actual test compares starts?

 

Thank you

  • I guess a question in my mind is this:  Why do you have property checkpoints in what amounts to a setup/utility routine?  Just because it's called a "keyword test" doesn't mean it actually has to test anything.  Checkpoints are just that - checkpoints.  Activities that you add in order to validate whether or not the application undertest has met some sort of expected result.

    Personally, while manipulating the Log.Enabled property of the logging object may be one solution, probably the more obvious one would to use some other method (if then, for example) for doing the necessary checks without logging a checkpoint result.

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    I guess a question in my mind is this:  Why do you have property checkpoints in what amounts to a setup/utility routine?  Just because it's called a "keyword test" doesn't mean it actually has to test anything.  Checkpoints are just that - checkpoints.  Activities that you add in order to validate whether or not the application undertest has met some sort of expected result.

    Personally, while manipulating the Log.Enabled property of the logging object may be one solution, probably the more obvious one would to use some other method (if then, for example) for doing the necessary checks without logging a checkpoint result.