Forum Discussion
Hi Alex,
Based on the request that I have received, they are in need on the number of checkpoints not the number of test items.
For example, I have 10 project items wherein the items contains the steps on how the test goes.
All of the project items does not a checkpoint except for item #10 wherein It has 5 checkpoints (property, region, database etc.)
What I current did to satisfy their request is in the Summary Log, the information will be present:
*NOTE: My actual test may vary result, this is just for presentation.
Total number of project test items: | 10 |
Executed project test items: | 10 |
Project Test Item Results | |
Passed: | 9, including 0 warning(s) |
Failed: | 1 |
But on the last keyword , I have added a script That would count the checkpoints.
Total Number of Checkpoint : 5
Total Number of Checkpoint - PASS : 3
Total Number of Checkpoint - FAIL : 2
I hope my explanation is quite clear.
Would there be any suggestions with regards to increasing the quality of test, I would appreciate.
Thanks,
Russel
So, it's a matter of a reporting requirement by your client then?
What I would suggest, then, is to utilize the OnLogCheckpoint event handler to enumerate the checkpoints into a global variable. This will at least enumerate the number passed as, I believe, failed checkpoints simply log as an error.
if the number of checkpoints is known, then, ahead of time, you could take that value from OnLogCheckpoint, subtract it from the known total to get the number of failed. Then report this out as needed.
- rusantos8 years agoContributor
Hi Tristan,
If ever possible, can you give me an idea on the events.
I haven't used any of the events. No idea so far.
Thanks,
Russel
- tristaanogre8 years agoEsteemed Contributor
Best documentation is http://support.smartbear.com/testcomplete/docs/testing-with/advanced/handling-events/creating-handlers/for-testcomplete-events.html
Related Content
Recent Discussions
- 6 hours agotorus
- 11 hours agomegha_phophalia
- 11 hours agomegha_phophalia