bobyg
bobyg

Reputation:

Using log analysis tools during software testing?

Do you think analyzing generate logs during testing cycles can increase quality?

Upvotes: 0

Views: 2069

Answers (5)

Munish Garg
Munish Garg

Reputation: 1

Log analysis tools were first used for system monitoring, but in Software Testing, they will help in indicating the status of test runs, show us how efficient they are, infrastructure impact and display location of errors more quickly than Selenium scripts.

In Latest versions of log analysis tools, they not only specify what went wrong, but also send out an alert when the system deviates from a normal pattern which is a tremendously useful feature for QA, because the team is able to quickly spot scripts that did not run but should have, or test runs exhibiting bizarre behavior.

Upvotes: 0

gareth_bowles
gareth_bowles

Reputation: 21140

Absolutely; not so much for unit tests as mentioned above, but if you set up a log analysis tool such as logwatch or Splunk that can send you a summary of errors found during the test, you can definitely increase quality.

Upvotes: 0

itsmatt
itsmatt

Reputation: 31416

My standard opinion is that logs are extremely useful every time they bring to light a problem and not useful at all if they don't tell me anything valuable. It will completely depend upon what they contain. I don't use them for unit testing but at the integration testing time, they can be quite valuable.

I've found logs particularly useful when the testing being done by someone at a different location. On more than one occasion, I was unable to duplicate a problem but after a look at the log data, it was clear what was happening.

Upvotes: 1

tvanfosson
tvanfosson

Reputation: 532625

Are you thinking integration testing? or unit testing? I would think that logging anomalous events during integration testing, i.e., potential errors that your code logs and recovers from rather than crashing, might be useful. Run your integration tests, then check to see if there are any unexpected anomalies even though your tests pass -- or if they fail, use the logs to help trace the failures.

I can't really see where they would be very useful in unit testing. Your unit tests should be prescriptive. You might want to check that proper logging is taking place in your unit test for anomalous events, but I don't see how the logs should be able to tell you anything that the test output doesn't

Upvotes: 0

MexDev
MexDev

Reputation: 231

I don't think that there is a good general answer to that question: It depends.

Analyzing logs can be very valuable if: a) there is good information to be mined b) the information is analyzed by people or machines that understand the bottom line, business logic.

without those two ingredients, they can be a resource (time and $) sinkhole

Upvotes: 0

Related Questions