Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,21 @@ public SamplePackage configureTransactionSampler(TransactionSampler transactionS
}

/**
* Reset pack to its initial state
* Reset pack to its initial state and clean up transaction results if needed
* @param pack the {@link SamplePackage} to reset
*/
public void done(SamplePackage pack) {
Sampler sampler = pack.getSampler();
if (sampler instanceof TransactionSampler) {
TransactionSampler transactionSampler = (TransactionSampler) sampler;
TransactionController controller = transactionSampler.getTransactionController();
if (transactionSampler.isTransactionDone()) {
// Create new sampler for next iteration
TransactionSampler newSampler = new TransactionSampler(controller, transactionSampler.getName());
SamplePackage newPack = transactionControllerConfigMap.get(controller);
newPack.setSampler(newSampler);
}
}
pack.recoverRunningVersion();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,8 @@ static Stream<Serializable> serializableObjects() throws Throwable {
return getObjects(Serializable.class)
.stream()
.map(Serializable.class::cast)
.filter(o -> !o.getClass().getName().endsWith("_Stub"));
.filter(o -> !o.getClass().getName().endsWith("_Stub"))
.filter(o -> o.getClass().getName().startsWith("org.apache.jmeter."));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please clarify what is the reason to add this filter?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests kept failing so ended up adding this line which fixed it

}

/*
Expand Down
Loading