diff --git a/proctor-consumer/src/main/java/com/indeed/proctor/consumer/AbstractGroups.java b/proctor-consumer/src/main/java/com/indeed/proctor/consumer/AbstractGroups.java index 181c58ef..abaaeb8f 100644 --- a/proctor-consumer/src/main/java/com/indeed/proctor/consumer/AbstractGroups.java +++ b/proctor-consumer/src/main/java/com/indeed/proctor/consumer/AbstractGroups.java @@ -324,9 +324,12 @@ final TestBucket getTestBucketWithValue(final String testName, final int bucketV } public @Nullable JsonNode getProperty(final String propertyName) { - return Optional.ofNullable(proctorResult.getProperties().get(propertyName)) - .map(PayloadProperty::getValue) - .orElse(null); + final Optional payloadProperty = + Optional.ofNullable(proctorResult.getProperties().get(propertyName)); + + payloadProperty.ifPresent(p -> markTestUsed(p.getTestName())); + + return payloadProperty.map(PayloadProperty::getValue).orElse(null); } public @Nullable T getProperty(final String propertyName, final Class propertyClazz) {