Best Assertj code snippet using org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration.describeRegisteredComparatorForFields
Source:RecursiveComparisonConfiguration.java
...474 describeIgnoreCollectionOrder(description);475 describeIgnoredCollectionOrderInFields(description);476 describeIgnoredCollectionOrderInFieldsMatchingRegexes(description);477 describeRegisteredComparatorByTypes(description);478 describeRegisteredComparatorForFields(description);479 describeTypeCheckingStrictness(description);480 return description.toString();481 }482 boolean shouldIgnore(DualValue dualValue) {483 FieldLocation fieldLocation = dualValue.fieldLocation;484 return matchesAnIgnoredField(fieldLocation)485 || matchesAnIgnoredFieldRegex(fieldLocation)486 || shouldIgnoreFieldBasedOnFieldValue(dualValue);487 }488 Set<String> getNonIgnoredActualFieldNames(DualValue dualValue) {489 Set<String> actualFieldsNames = Objects.getFieldsNames(dualValue.actual.getClass());490 // we are doing the same as shouldIgnore(DualValue dualValue) but in two steps for performance reasons:491 // - we filter first ignored field by names that don't need building DualValues492 // - then we filter field DualValues with the remaining criteria that need to get the field value493 // DualValues are built introspecting fields which is expensive.494 return actualFieldsNames.stream()495 // evaluate field name ignoring criteria on dualValue field location + field name496 .filter(fieldName -> !shouldIgnoreFieldBasedOnFieldLocation(dualValue.fieldLocation.field(fieldName)))497 .map(fieldName -> dualValueForField(dualValue, fieldName))498 // evaluate field value ignoring criteria499 .filter(fieldDualValue -> !shouldIgnoreFieldBasedOnFieldValue(fieldDualValue))500 // back to field name501 .map(DualValue::getFieldName)502 .filter(fieldName -> !fieldName.isEmpty())503 .collect(toSet());504 }505 // non accessible stuff506 private boolean shouldIgnoreFieldBasedOnFieldValue(DualValue dualValue) {507 return matchesAnIgnoredNullField(dualValue)508 || matchesAnIgnoredFieldType(dualValue)509 || matchesAnIgnoredEmptyOptionalField(dualValue);510 }511 private boolean shouldIgnoreFieldBasedOnFieldLocation(FieldLocation fieldLocation) {512 return matchesAnIgnoredField(fieldLocation) || matchesAnIgnoredFieldRegex(fieldLocation);513 }514 private static DualValue dualValueForField(DualValue parentDualValue, String fieldName) {515 Object actualFieldValue = COMPARISON.getSimpleValue(fieldName, parentDualValue.actual);516 // no guarantees we have a field in expected named as fieldName517 Object expectedFieldValue;518 try {519 expectedFieldValue = COMPARISON.getSimpleValue(fieldName, parentDualValue.expected);520 } catch (@SuppressWarnings("unused") Exception e) {521 // set the field to null to express it is absent, this not 100% accurate as the value could be null522 // but it works to evaluate if dualValue should be ignored with matchesAnIgnoredFieldType523 expectedFieldValue = null;524 }525 FieldLocation fieldLocation = parentDualValue.fieldLocation.field(fieldName);526 return new DualValue(fieldLocation, actualFieldValue, expectedFieldValue);527 }528 boolean hasCustomComparator(DualValue dualValue) {529 String fieldName = dualValue.getConcatenatedPath();530 if (hasComparatorForField(fieldName)) return true;531 if (dualValue.actual == null && dualValue.expected == null) return false;532 // best effort assuming actual and expected have the same type (not 100% true as we can compare object of differennt types)533 Class<?> valueType = dualValue.actual != null ? dualValue.actual.getClass() : dualValue.expected.getClass();534 return hasComparatorForType(valueType);535 }536 boolean shouldIgnoreOverriddenEqualsOf(DualValue dualValue) {537 // we must compare java basic types otherwise the recursive comparison loops infinitely!538 if (dualValue.isActualJavaType()) return false;539 // enums don't have fields, comparing them field by field has no sense, we need to use equals which is overridden and final540 if (dualValue.isActualAnEnum()) return false;541 return ignoreAllOverriddenEquals542 || matchesAnIgnoredOverriddenEqualsField(dualValue.fieldLocation)543 || (dualValue.actual != null && shouldIgnoreOverriddenEqualsOf(dualValue.actual.getClass()));544 }545 @VisibleForTesting546 boolean shouldIgnoreOverriddenEqualsOf(Class<? extends Object> clazz) {547 return matchesAnIgnoredOverriddenEqualsRegex(clazz) || matchesAnIgnoredOverriddenEqualsType(clazz);548 }549 boolean shouldIgnoreCollectionOrder(FieldLocation fieldLocation) {550 return ignoreCollectionOrder551 || matchesAnIgnoredCollectionOrderInField(fieldLocation)552 || matchesAnIgnoredCollectionOrderInFieldRegex(fieldLocation);553 }554 private void describeIgnoredFieldsRegexes(StringBuilder description) {555 if (!ignoredFieldsRegexes.isEmpty())556 description.append(format("- the fields matching the following regexes were ignored in the comparison: %s%n",557 describeRegexes(ignoredFieldsRegexes)));558 }559 private void describeIgnoredFields(StringBuilder description) {560 if (!ignoredFields.isEmpty())561 description.append(format("- the following fields were ignored in the comparison: %s%n", describeIgnoredFields()));562 }563 private void describeIgnoredFieldsForTypes(StringBuilder description) {564 if (!ignoredTypes.isEmpty())565 description.append(format("- the following types were ignored in the comparison: %s%n", describeIgnoredTypes()));566 }567 private void describeIgnoreAllActualNullFields(StringBuilder description) {568 if (ignoreAllActualNullFields) description.append(format("- all actual null fields were ignored in the comparison%n"));569 }570 private void describeIgnoreAllActualEmptyOptionalFields(StringBuilder description) {571 if (getIgnoreAllActualEmptyOptionalFields())572 description.append(format("- all actual empty optional fields were ignored in the comparison (including Optional, OptionalInt, OptionalLong and OptionalDouble)%n"));573 }574 private void describeIgnoreAllExpectedNullFields(StringBuilder description) {575 if (ignoreAllExpectedNullFields) description.append(format("- all expected null fields were ignored in the comparison%n"));576 }577 private void describeOverriddenEqualsMethodsUsage(StringBuilder description, Representation representation) {578 String header = ignoreAllOverriddenEquals579 ? "- no overridden equals methods were used in the comparison (except for java types)"580 : "- overridden equals methods were used in the comparison";581 description.append(header);582 if (isConfiguredToIgnoreSomeButNotAllOverriddenEqualsMethods()) {583 description.append(format(" except for:%n"));584 describeIgnoredOverriddenEqualsMethods(description, representation);585 } else {586 description.append(format("%n"));587 }588 }589 private void describeIgnoredOverriddenEqualsMethods(StringBuilder description, Representation representation) {590 if (!ignoredOverriddenEqualsForFields.isEmpty())591 description.append(format("%s the following fields: %s%n", INDENT_LEVEL_2,592 describeIgnoredOverriddenEqualsForFields()));593 if (!ignoredOverriddenEqualsForTypes.isEmpty())594 description.append(format("%s the following types: %s%n", INDENT_LEVEL_2,595 describeIgnoredOverriddenEqualsForTypes(representation)));596 if (!ignoredOverriddenEqualsForFieldsMatchingRegexes.isEmpty())597 description.append(format("%s the types matching the following regexes: %s%n", INDENT_LEVEL_2,598 describeRegexes(ignoredOverriddenEqualsForFieldsMatchingRegexes)));599 }600 private String describeIgnoredOverriddenEqualsForTypes(Representation representation) {601 List<String> fieldsDescription = ignoredOverriddenEqualsForTypes.stream()602 .map(representation::toStringOf)603 .collect(toList());604 return join(fieldsDescription).with(", ");605 }606 private String describeIgnoredOverriddenEqualsForFields() {607 return join(ignoredOverriddenEqualsForFields).with(", ");608 }609 private void describeIgnoreCollectionOrder(StringBuilder description) {610 if (ignoreCollectionOrder) description.append(format("- collection order was ignored in all fields in the comparison%n"));611 }612 private void describeIgnoredCollectionOrderInFields(StringBuilder description) {613 if (!ignoredCollectionOrderInFields.isEmpty())614 description.append(format("- collection order was ignored in the following fields in the comparison: %s%n",615 describeIgnoredCollectionOrderInFields()));616 }617 private void describeIgnoredCollectionOrderInFieldsMatchingRegexes(StringBuilder description) {618 if (!ignoredCollectionOrderInFieldsMatchingRegexes.isEmpty())619 description.append(format("- collection order was ignored in the fields matching the following regexes in the comparison: %s%n",620 describeRegexes(ignoredCollectionOrderInFieldsMatchingRegexes)));621 }622 private boolean matchesAnIgnoredOverriddenEqualsRegex(Class<?> clazz) {623 if (ignoredOverriddenEqualsForFieldsMatchingRegexes.isEmpty()) return false; // shortcut624 String canonicalName = clazz.getCanonicalName();625 return ignoredOverriddenEqualsForFieldsMatchingRegexes.stream()626 .anyMatch(regex -> regex.matcher(canonicalName).matches());627 }628 private boolean matchesAnIgnoredOverriddenEqualsType(Class<?> clazz) {629 return ignoredOverriddenEqualsForTypes.contains(clazz);630 }631 private boolean matchesAnIgnoredOverriddenEqualsField(FieldLocation fieldLocation) {632 return ignoredOverriddenEqualsForFields.stream().anyMatch(fieldLocation::matches);633 }634 private boolean matchesAnIgnoredNullField(DualValue dualValue) {635 return (ignoreAllActualNullFields && dualValue.actual == null)636 || (ignoreAllExpectedNullFields && dualValue.expected == null);637 }638 private boolean matchesAnIgnoredEmptyOptionalField(DualValue dualValue) {639 return ignoreAllActualEmptyOptionalFields640 && dualValue.isActualFieldAnEmptyOptionalOfAnyType();641 }642 private boolean matchesAnIgnoredFieldRegex(FieldLocation fieldLocation) {643 return ignoredFieldsRegexes.stream()644 .anyMatch(regex -> regex.matcher(fieldLocation.getPathToUseInRules()).matches());645 }646 private boolean matchesAnIgnoredFieldType(DualValue dualValue) {647 Object actual = dualValue.actual;648 if (actual != null) return ignoredTypes.contains(actual.getClass());649 Object expected = dualValue.expected;650 // actual is null => we can't evaluate its type, we can only reliably check dualValue.expected's type if651 // strictTypeChecking is enabled which guarantees expected is of the same type.652 if (strictTypeChecking && expected != null) return ignoredTypes.contains(expected.getClass());653 // if strictTypeChecking is disabled, we can't safely ignore the field (if we did, we would ignore all null fields!).654 return false;655 }656 private boolean matchesAnIgnoredField(FieldLocation fieldLocation) {657 return ignoredFields.stream().anyMatch(fieldLocation::matches);658 }659 private boolean matchesAnIgnoredCollectionOrderInField(FieldLocation fieldLocation) {660 return ignoredCollectionOrderInFields.stream().anyMatch(fieldLocation::matches);661 }662 private boolean matchesAnIgnoredCollectionOrderInFieldRegex(FieldLocation fieldLocation) {663 String pathToUseInRules = fieldLocation.getPathToUseInRules();664 return ignoredCollectionOrderInFieldsMatchingRegexes.stream().anyMatch(regex -> regex.matcher(pathToUseInRules).matches());665 }666 private String describeIgnoredFields() {667 return join(ignoredFields).with(", ");668 }669 private String describeIgnoredTypes() {670 List<String> typesDescription = ignoredTypes.stream()671 .map(Class::getName)672 .collect(toList());673 return join(typesDescription).with(", ");674 }675 private String describeIgnoredCollectionOrderInFields() {676 return join(ignoredCollectionOrderInFields).with(", ");677 }678 private String describeRegexes(List<Pattern> regexes) {679 List<String> fieldsDescription = regexes.stream()680 .map(Pattern::pattern)681 .collect(toList());682 return join(fieldsDescription).with(", ");683 }684 private boolean isConfiguredToIgnoreSomeButNotAllOverriddenEqualsMethods() {685 boolean ignoreSomeOverriddenEqualsMethods = !ignoredOverriddenEqualsForFieldsMatchingRegexes.isEmpty()686 || !ignoredOverriddenEqualsForTypes.isEmpty()687 || !ignoredOverriddenEqualsForFields.isEmpty();688 return !ignoreAllOverriddenEquals && ignoreSomeOverriddenEqualsMethods;689 }690 private void describeRegisteredComparatorByTypes(StringBuilder description) {691 if (!typeComparators.isEmpty()) {692 description.append(format("- these types were compared with the following comparators:%n"));693 describeComparatorForTypes(description);694 }695 }696 private void describeComparatorForTypes(StringBuilder description) {697 typeComparators.comparatorByTypes()698 .map(this::formatRegisteredComparatorByType)699 .forEach(description::append);700 }701 private String formatRegisteredComparatorByType(Entry<Class<?>, Comparator<?>> next) {702 return format("%s %s -> %s%n", INDENT_LEVEL_2, next.getKey().getName(), next.getValue());703 }704 private void describeRegisteredComparatorForFields(StringBuilder description) {705 if (!fieldComparators.isEmpty()) {706 description.append(format("- these fields were compared with the following comparators:%n"));707 describeComparatorForFields(description);708 if (!typeComparators.isEmpty()) {709 description.append(format("- field comparators take precedence over type comparators.%n"));710 }711 }712 }713 private void describeComparatorForFields(StringBuilder description) {714 fieldComparators.comparatorByFields()715 .map(this::formatRegisteredComparatorForField)716 .forEach(description::append);717 }718 private String formatRegisteredComparatorForField(Entry<String, Comparator<?>> comparatorForField) {...
describeRegisteredComparatorForFields
Using AI Code Generation
1import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration;2import org.junit.jupiter.api.Test;3import java.util.Arrays;4import java.util.List;5import static org.assertj.core.api.Assertions.assertThat;6import static org.assertj.core.api.Assertions.assertThatExceptionOfType;7import static org.assertj.core.api.Assertions.within;8import static org.assertj.core.api.recursive.comparison.FieldLocation.fieldLocation;9import static org.assertj.core.api.recursive.comparison.FieldLocation.root;10import static org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration.builder;11public class RecursiveComparisonConfigurationTest {12 static class Person {13 String name;14 int age;15 List<Person> friends;16 Person bestFriend;17 Address address;18 public Person(String name, int age, List<Person> friends, Person bestFriend, Address address) {19 this.name = name;20 this.age = age;21 this.friends = friends;22 this.bestFriend = bestFriend;23 this.address = address;24 }25 }26 static class Address {27 String street;28 String city;29 public Address(String street, String city) {30 this.street = street;31 this.city = city;32 }33 }34 public void should_use_comparator_for_field() {35 Person person1 = new Person("John", 20, Arrays.asList(new Person("Jack", 21, null, null, null), new Person("Jill", 22, null, null, null)), new Person("Jack", 21, null, null, null), new Address("Main street", "Paris"));36 Person person2 = new Person("John", 20, Arrays.asList(new Person("Jack", 21, null, null, null), new Person("Jill", 22, null, null, null)), new Person("Jack", 21, null, null, null), new Address("Main street", "London"));37 RecursiveComparisonConfiguration recursiveComparisonConfiguration = builder().withComparatorForFields(within(0.0), "address.city").build();38 boolean equal = person1.equals(person2, recursiveComparisonConfiguration);39 assertThat(equal).isTrue();40 }41 public void should_use_comparator_for_field_location() {42 Person person1 = new Person("John", 20, Arrays.asList(new Person("Jack", 21, null, null,
describeRegisteredComparatorForFields
Using AI Code Generation
1import org.junit.jupiter.api.*;2import org.junit.jupiter.api.extension.*;3import org.junit.jupiter.params.*;4import org.junit.jupiter.params.provider.*;5import org.junit.jupiter.params.converter.*;6import static org.junit.jupiter.api.Assertions.*;7import static org.assertj.core.api.Assertions.*;8import java.util.*;9import java.util.stream.*;10import static java.util.stream.Collectors.*;11import java.time.*;12import java.time.format.*;13import org.assertj.core.api.recursive.comparison.*;14class RecursiveComparisonTest {15 void shouldCompareObjects() {16 Person person = new Person("John", "Doe");17 Person person2 = new Person("John", "Doe");18 assertThat(person).usingRecursiveComparison().isEqualTo(person2);19 }20 void shouldCompareObjectsWithCustomComparator() {21 Person person = new Person("John", "Doe");22 Person person2 = new Person("John", "Doe");23 assertThat(person).usingRecursiveComparison()24 .withComparatorForFields((a, b) -> a.length() == b.length(), "firstName")25 .isEqualTo(person2);26 }27 void shouldCompareObjectsWithCustomComparatorForAllFields() {28 Person person = new Person("John", "Doe");29 Person person2 = new Person("John", "Doe");30 assertThat(person).usingRecursiveComparison()31 .withComparatorForAllFields((a, b) -> a.length() == b.length())32 .isEqualTo(person2);33 }34 void shouldCompareObjectsWithCustomComparatorForType() {35 Person person = new Person("John", "Doe");36 Person person2 = new Person("John", "Doe");37 assertThat(person).usingRecursiveComparison()38 .withComparatorForType((a, b) -> a.length() == b.length(), String.class)39 .isEqualTo(person2);40 }41 void shouldCompareObjectsWithCustomComparatorForFields() {42 Person person = new Person("John", "Doe");43 Person person2 = new Person("John", "Doe");44 assertThat(person).usingRecursiveComparison()
describeRegisteredComparatorForFields
Using AI Code Generation
1import org.assertj.core.api.recursive.comparison.*;2import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration.*;3public class RecursiveComparisonConfigurationDescribeRegisteredComparatorForFieldsExample {4 public static void main(String[] args) {5 RecursiveComparisonConfiguration recursiveComparisonConfiguration = new RecursiveComparisonConfiguration();6 recursiveComparisonConfiguration.registerComparatorForFields(new ComparatorForFields() {7 public boolean areEqual(Object actual, Object other) {8 return true;9 }10 }, "name", "age");11 String description = recursiveComparisonConfiguration.describeRegisteredComparatorForFields();12 System.out.println(description);13 }14}15import org.assertj.core.api.recursive.comparison.*;16import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration.*;17public class RecursiveComparisonConfigurationDescribeRegisteredComparatorsForTypeExample {18 public static void main(String[] args) {19 RecursiveComparisonConfiguration recursiveComparisonConfiguration = new RecursiveComparisonConfiguration();20 recursiveComparisonConfiguration.registerComparatorForType(new ComparatorForType() {21 public boolean areEqual(Object actual, Object other) {22 return true;23 }24 }, Person.class);25 String description = recursiveComparisonConfiguration.describeRegisteredComparatorsForType();26 System.out.println(description);27 }28}29import org.assertj.core.api.recursive.comparison.*;30import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration.*;31public class RecursiveComparisonConfigurationDescribeRegisteredComparatorsExample {32 public static void main(String[] args) {33 RecursiveComparisonConfiguration recursiveComparisonConfiguration = new RecursiveComparisonConfiguration();34 recursiveComparisonConfiguration.registerComparatorForFields(new ComparatorForFields() {35 public boolean areEqual(Object actual, Object other) {36 return true;37 }38 }, "name", "age");39 recursiveComparisonConfiguration.registerComparatorForType(new ComparatorForType() {40 public boolean areEqual(Object actual, Object other) {41 return true;42 }43 }, Person.class);
describeRegisteredComparatorForFields
Using AI Code Generation
1import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration;2import org.assertj.core.api.recursive.comparison.FieldLocation;3import org.assertj.core.api.recursive.comparison.FieldLocation.FieldLocationType;4import static org.assertj.core.api.Assertions.assertThat;5public class RecursiveComparisonConfigurationExample {6 public static void main(String[] args) {7 Person person1 = new Person("John", 25, new Address("1234", "Main St", "New York", "NY"));8 Person person2 = new Person("John", 25, new Address("1234", "Main St", "New York", "NY"));9 assertThat(person1).usingRecursiveComparison()10 .ignoringFields("address.zipCode").isEqualTo(person2);11 }12 static class Person {13 String name;14 int age;15 Address address;16 public Person(String name, int age, Address address) {17 this.name = name;18 this.age = age;19 this.address = address;20 }21 }22 static class Address {23 String streetNumber;24 String streetName;25 String city;26 String state;27 String zipCode;28 public Address(String streetNumber, String streetName, String city, String state, String zipCode) {29 this.streetNumber = streetNumber;30 this.streetName = streetName;31 this.city = city;32 this.state = state;33 this.zipCode = zipCode;34 }35 public Address(String streetNumber, String streetName, String city, String state) {36 this.streetNumber = streetNumber;37 this.streetName = streetName;38 this.city = city;39 this.state = state;40 }41 }42}43 Person(name=John, age=25, address=Address(streetNumber=1234, streetName=Main St, city=New York, state=NY, zipCode=null))44 Person(name=John, age=25, address=Address(streetNumber=1234, streetName=Main St, city=New York, state=NY, zipCode=null))
describeRegisteredComparatorForFields
Using AI Code Generation
1import java.util.List;2import java.util.Objects;3import java.util.function.BiPredicate;4import org.assertj.core.api.recursive.comparison.ComparisonStrategy;5import org.assertj.core.api.recursive.comparison.FieldLocation;6import org.assertj.core.api.recursive.comparison.FieldLocation.FieldLocationBuilder;7import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration;8import org.assertj.core.api.recursive.comparison.RecursiveComparisonDifference;9import org.assertj.core.api.recursive.comparison.RecursiveComparisonDifference.DifferenceType;10import org.assertj.core.api.recursive.comparison.RecursiveComparisonDifference.RecursiveComparisonDifferenceBuilder;11import org.assertj.core.api.recursive.comparison.RecursiveComparisonDifference.RecursiveComparisonDifferenceBuilder.RecursiveComparisonDifferenceBuilderForField;12import org.assertj.core.api.recursive.comparison.RecursiveFieldComparisonAssert;13import org.assertj.core.api.recursive.comparison.RecursiveFieldComparisonCustomizer;14import org.assertj.core.api.recursive.comparison.RecursiveFieldComparisonCustomizer.RecursiveFieldComparisonCustomizerForField;15import org.assertj.core.api.recursive.comparison.RecursiveFieldComparisonCustomizer.RecursiveFieldComparisonCustomizerForFields;16import org.assertj.core.api.recursive.comparison.RecursiveFieldComparisonCustomizer.RecursiveFieldComparisonCustomizerForType;17import org.assertj.core.api.recursive.comparison.RecursiveFieldComparisonCustomizer.RecursiveFieldComparisonCustomizerForTypes;18import org.assertj.core.api.recursive.comparison.RecursiveFieldComparisonDifference;19import org.assertj.core.api.recursive.comparison.RecursiveFieldComparisonDifference.RecursiveFieldComparisonDifferenceBuilder;20import org.assertj.core.api.recursive.comparison.RecursiveFieldComparisonDifference.RecursiveFieldComparisonDifferenceBuilder.RecursiveFieldComparisonDifferenceBuilderForField;21import org.assertj.core.api.recursive.comparison.RecursiveFieldComparisonDifference.RecursiveFieldComparisonDifferenceBuilder.RecursiveFieldComparisonDifferenceBuilderForFields;22import org.assertj.core.api.recursive.comparison.RecursiveFieldComparisonDifference.RecursiveFieldComparisonDifferenceBuilder.RecursiveFieldComparisonDifferenceBuilderForType;23import org.assertj.core.api.recursive.comparison.RecursiveFieldComparisonDifference.RecursiveFieldComparisonDifferenceBuilder.RecursiveFieldComparisonDifferenceBuilderForTypes;24import org.assertj.core.api.recursive.comparison.RecursiveField
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!