Forum Discussion
I think you can see from the graph you attached that TestComplete consideres an error to be the same thing as a failure.
Is there something in your tests that gives a different result between a software issue and a hardware issue?
- ritesh_chauhan9 years agoContributor
Actual what we need is that we should be able to distinguish between the two types of failures in the output graph:
1. Failure due to any random issue (where requirement execution was interupted by some system issue).
2. Requirement failure (application under test did not work as per requirement).
- djadhav9 years agoRegular Contributor
The way I do it is by customizing log messages:
1) For requirement fail condition: I log messages to the project log as below
Log.Error("REQ:" & log_message) where log_message is a message string that I want to show e.g. "Email address not verified"
2) For requirement pass condition: I log messages to the project log as below
Log.Checkpoint("REQ:" & log_message) where log_message is a message string that I want to show e.g. "Login success message displayed"
Then, we can filter the log as shown to display only the requirement failure and success messages.
Since we are adding the search condition ('REQ'), any other non requirement related issues will not show.
- Marsha_R9 years agoChampion Level 3
That works for specific tests, but for something like "Object not found", I don't think there's a way to have TestComplete sort out why the failure happened. It could be either of those reasons.
Related Content
- 9 years agoDavidLunn
- 6 months agosohailalam2696
- 3 years agofdelmoro
- 12 months agosinis
Recent Discussions
- 3 hours agoashly