During a Test Run, the end of the time measurement is signalled by an End Transaction. You can define the end of a transaction in the End Transaction dialog box. How to do that is explained in this article.