private SampleResult doEndTransactionSampler( TransactionSampler transactionSampler, Sampler parent, SamplePackage transactionPack, JMeterContext threadContext) { // Get the transaction sample result SampleResult transactionResult = transactionSampler.getTransactionResult(); transactionResult.setThreadName(threadName); transactionResult.setGroupThreads(threadGroup.getNumberOfThreads()); transactionResult.setAllThreads(JMeterContextService.getNumberOfThreads()); // Check assertions for the transaction sample checkAssertions(transactionPack.getAssertions(), transactionResult, threadContext); // Notify listeners with the transaction sample result if (!(parent instanceof TransactionSampler)) { notifyListeners(transactionPack.getSampleListeners(), transactionResult); } compiler.done(transactionPack); return transactionResult; }