Forum Discussion
Hi Russel,
Out of curiosity... Can you provide your definition of checkpoint and a sample use case?
Assuming that checkpoint is a result of Log.Checkpoint command and/or any other checkpoint command provided by TestComplete (File, Region, web table, etc.) and that one test item can (and usually do) contain more than one checkpoint, what metric can be obtained from the summary that will have, say, text like "9 test items passed with 10 checkpoints" ? Will that mean that 8 test items have 1 checkpoint each and the 9th test item has 2 checkpoints? Can this help to figure out the situation when one test item contains all 10 checkpoints while 8 others contain none? Is the number of checkpoints somehow correlated with the quality of the given test?
Just wondering...
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
- tristaanogre8 years agoEsteemed Contributor
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
- 2 years ago
- 4 years ago
- 3 years ago
- 2 years ago