How to use ShouldContainOnly class of org.assertj.core.error package

Best Assertj code snippet using org.assertj.core.error.ShouldContainOnly

Source:ShouldContainOnly_create_Test.java Github

copy

Full Screen

...21import org.assertj.core.util.Sets;22import org.junit.jupiter.api.Test;23/**24 * Tests for25 * <code>{@link ShouldContainOnly#create(org.assertj.core.description.Description, org.assertj.core.presentation.Representation)}</code>26 * .27 *28 * @author Alex Ruiz29 * @author Yvonne Wang30 * @author Joel Costigliola31 */32public class ShouldContainOnly_create_Test {33 private static final ComparatorBasedComparisonStrategy CASE_INSENSITIVE_COMPARISON_STRATEGY = new ComparatorBasedComparisonStrategy(CaseInsensitiveStringComparator.instance);34 @Test35 public void should_create_error_message() {36 ErrorMessageFactory factory = ShouldContainOnly.shouldContainOnly(Lists.newArrayList("Yoda", "Han"), Lists.newArrayList("Luke", "Yoda"), Sets.newLinkedHashSet("Luke"), Sets.newLinkedHashSet("Han"));37 String message = factory.create(new TextDescription("Test"), new StandardRepresentation());38 Assertions.assertThat(message).isEqualTo(String.format(("[Test] %n" + ((((((("Expecting:%n" + " <[\"Yoda\", \"Han\"]>%n") + "to contain only:%n") + " <[\"Luke\", \"Yoda\"]>%n") + "elements not found:%n") + " <[\"Luke\"]>%n") + "and elements not expected:%n") + " <[\"Han\"]>%n"))));39 }40 @Test41 public void should_create_error_message_with_custom_comparison_strategy() {42 ErrorMessageFactory factory = ShouldContainOnly.shouldContainOnly(Lists.newArrayList("Yoda", "Han"), Lists.newArrayList("Luke", "Yoda"), Sets.newLinkedHashSet("Luke"), Sets.newLinkedHashSet("Han"), ShouldContainOnly_create_Test.CASE_INSENSITIVE_COMPARISON_STRATEGY);43 String message = factory.create(new TextDescription("Test"), new StandardRepresentation());44 Assertions.assertThat(message).isEqualTo(String.format(("[Test] %n" + (((((((("Expecting:%n" + " <[\"Yoda\", \"Han\"]>%n") + "to contain only:%n") + " <[\"Luke\", \"Yoda\"]>%n") + "elements not found:%n") + " <[\"Luke\"]>%n") + "and elements not expected:%n") + " <[\"Han\"]>%n") + "when comparing values using CaseInsensitiveStringComparator"))));45 }46 @Test47 public void should_not_display_unexpected_elements_when_there_are_none() {48 ErrorMessageFactory factory = ShouldContainOnly.shouldContainOnly(Lists.newArrayList("Yoda"), Lists.newArrayList("Luke", "Yoda"), Sets.newLinkedHashSet("Luke"), Collections.emptySet());49 String message = factory.create(new TextDescription("Test"), new StandardRepresentation());50 Assertions.assertThat(message).isEqualTo(String.format(("[Test] %n" + ((((("Expecting:%n" + " <[\"Yoda\"]>%n") + "to contain only:%n") + " <[\"Luke\", \"Yoda\"]>%n") + "but could not find the following elements:%n") + " <[\"Luke\"]>%n"))));51 }52 @Test53 public void should_not_display_unexpected_elements_when_there_are_none_with_custom_comparison_strategy() {54 ErrorMessageFactory factory = ShouldContainOnly.shouldContainOnly(Lists.newArrayList("Yoda"), Lists.newArrayList("Luke", "Yoda"), Sets.newLinkedHashSet("Luke"), Collections.emptySet(), ShouldContainOnly_create_Test.CASE_INSENSITIVE_COMPARISON_STRATEGY);55 String message = factory.create(new TextDescription("Test"), new StandardRepresentation());56 Assertions.assertThat(message).isEqualTo(String.format(("[Test] %n" + (((((("Expecting:%n" + " <[\"Yoda\"]>%n") + "to contain only:%n") + " <[\"Luke\", \"Yoda\"]>%n") + "but could not find the following elements:%n") + " <[\"Luke\"]>%n") + "when comparing values using CaseInsensitiveStringComparator"))));57 }58 @Test59 public void should_not_display_elements_not_found_when_there_are_none() {60 ErrorMessageFactory factory = ShouldContainOnly.shouldContainOnly(Lists.newArrayList("Yoda", "Leia"), Lists.newArrayList("Yoda"), Collections.emptySet(), Sets.newLinkedHashSet("Leia"));61 String message = factory.create(new TextDescription("Test"), new StandardRepresentation());62 Assertions.assertThat(message).isEqualTo(String.format(("[Test] %n" + ((((("Expecting:%n" + " <[\"Yoda\", \"Leia\"]>%n") + "to contain only:%n") + " <[\"Yoda\"]>%n") + "but the following elements were unexpected:%n") + " <[\"Leia\"]>%n"))));63 }64 @Test65 public void should_not_display_elements_not_found_when_there_are_none_with_custom_comparison_strategy() {66 ErrorMessageFactory factory = ShouldContainOnly.shouldContainOnly(Lists.newArrayList("Yoda", "Leia"), Lists.newArrayList("Yoda"), Collections.emptySet(), Sets.newLinkedHashSet("Leia"), ShouldContainOnly_create_Test.CASE_INSENSITIVE_COMPARISON_STRATEGY);67 String message = factory.create(new TextDescription("Test"), new StandardRepresentation());68 Assertions.assertThat(message).isEqualTo(String.format(("[Test] %n" + (((((("Expecting:%n" + " <[\"Yoda\", \"Leia\"]>%n") + "to contain only:%n") + " <[\"Yoda\"]>%n") + "but the following elements were unexpected:%n") + " <[\"Leia\"]>%n") + "when comparing values using CaseInsensitiveStringComparator"))));69 }70}...

Full Screen

Full Screen

Source:Maps_assertContainsOnly_Test.java Github

copy

Full Screen

...15import java.util.Map;16import org.assertj.core.api.AssertionInfo;17import org.assertj.core.api.Assertions;18import org.assertj.core.data.MapEntry;19import org.assertj.core.error.ShouldContainOnly;20import org.assertj.core.internal.ErrorMessages;21import org.assertj.core.internal.MapsBaseTest;22import org.assertj.core.test.Maps;23import org.assertj.core.test.TestData;24import org.assertj.core.util.Arrays;25import org.assertj.core.util.FailureMessages;26import org.junit.jupiter.api.Test;27import org.mockito.Mockito;28/**29 * Tests for30 * <code>{@link org.assertj.core.internal.Maps#assertContainsOnly(org.assertj.core.api.AssertionInfo, java.util.Map, org.assertj.core.data.MapEntry...)}</code>31 * .32 *33 * @author Jean-Christophe Gay34 */35public class Maps_assertContainsOnly_Test extends MapsBaseTest {36 @SuppressWarnings("unchecked")37 @Test38 public void should_fail_if_actual_is_null() {39 Assertions.assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> maps.assertContainsOnly(someInfo(), null, entry("name", "Yoda"))).withMessage(FailureMessages.actualIsNull());40 }41 @SuppressWarnings("unchecked")42 @Test43 public void should_fail_if_given_entries_array_is_null() {44 Assertions.assertThatNullPointerException().isThrownBy(() -> maps.assertContainsOnly(someInfo(), actual, ((MapEntry[]) (null)))).withMessage(ErrorMessages.entriesToLookForIsNull());45 }46 @SuppressWarnings("unchecked")47 @Test48 public void should_fail_if_given_entries_array_is_empty() {49 Assertions.assertThatIllegalArgumentException().isThrownBy(() -> maps.assertContainsOnly(someInfo(), actual, emptyEntries())).withMessage(ErrorMessages.entriesToLookForIsEmpty());50 }51 @SuppressWarnings("unchecked")52 @Test53 public void should_pass_if_actual_and_entries_are_empty() {54 maps.assertContainsOnly(TestData.someInfo(), Collections.emptyMap(), MapsBaseTest.emptyEntries());55 }56 @SuppressWarnings("unchecked")57 @Test58 public void should_pass_if_actual_contains_only_expected_entries() {59 maps.assertContainsOnly(TestData.someInfo(), actual, MapEntry.entry("name", "Yoda"), MapEntry.entry("color", "green"));60 }61 @Test62 public void should_fail_if_actual_contains_unexpected_entry() {63 AssertionInfo info = TestData.someInfo();64 MapEntry<String, String>[] expected = Arrays.array(MapEntry.entry("name", "Yoda"));65 try {66 maps.assertContainsOnly(info, actual, expected);67 } catch (AssertionError e) {68 Mockito.verify(failures).failure(info, ShouldContainOnly.shouldContainOnly(actual, expected, Collections.emptySet(), Maps_assertContainsOnly_Test.newHashSet(MapEntry.entry("color", "green"))));69 return;70 }71 Assertions.shouldHaveThrown(AssertionError.class);72 }73 @Test74 public void should_fail_if_actual_does_not_contains_every_expected_entries() {75 AssertionInfo info = TestData.someInfo();76 MapEntry<String, String>[] expected = Arrays.array(MapEntry.entry("name", "Yoda"), MapEntry.entry("color", "green"));77 Map<String, String> underTest = Maps.mapOf(MapEntry.entry("name", "Yoda"));78 try {79 maps.assertContainsOnly(info, underTest, expected);80 } catch (AssertionError e) {81 Mockito.verify(failures).failure(info, ShouldContainOnly.shouldContainOnly(underTest, expected, Maps_assertContainsOnly_Test.newHashSet(MapEntry.entry("color", "green")), Collections.emptySet()));82 return;83 }84 Assertions.shouldHaveThrown(AssertionError.class);85 }86 @Test87 public void should_fail_if_actual_does_not_contains_every_expected_entries_and_contains_unexpected_one() {88 AssertionInfo info = TestData.someInfo();89 MapEntry<String, String>[] expected = Arrays.array(MapEntry.entry("name", "Yoda"), MapEntry.entry("color", "green"));90 Map<String, String> underTest = Maps.mapOf(MapEntry.entry("name", "Yoda"), MapEntry.entry("job", "Jedi"));91 try {92 maps.assertContainsOnly(info, underTest, expected);93 } catch (AssertionError e) {94 Mockito.verify(failures).failure(info, ShouldContainOnly.shouldContainOnly(underTest, expected, Maps_assertContainsOnly_Test.newHashSet(MapEntry.entry("color", "green")), Maps_assertContainsOnly_Test.newHashSet(MapEntry.entry("job", "Jedi"))));95 return;96 }97 Assertions.shouldHaveThrown(AssertionError.class);98 }99 @Test100 public void should_fail_if_actual_contains_entry_key_with_different_value() {101 AssertionInfo info = TestData.someInfo();102 MapEntry<String, String>[] expectedEntries = Arrays.array(MapEntry.entry("name", "Yoda"), MapEntry.entry("color", "yellow"));103 try {104 maps.assertContainsOnly(info, actual, expectedEntries);105 } catch (AssertionError e) {106 Mockito.verify(failures).failure(info, ShouldContainOnly.shouldContainOnly(actual, expectedEntries, Maps_assertContainsOnly_Test.newHashSet(MapEntry.entry("color", "yellow")), Maps_assertContainsOnly_Test.newHashSet(MapEntry.entry("color", "green"))));107 return;108 }109 Assertions.shouldHaveThrown(AssertionError.class);110 }111}...

Full Screen

Full Screen

Source:ShouldContainOnly.java Github

copy

Full Screen

...10 *11 * Copyright 2012-2020 the original author or authors.12 */13package org.assertj.core.error;14import static org.assertj.core.error.ShouldContainOnly.ErrorType.NOT_EXPECTED_ONLY;15import static org.assertj.core.error.ShouldContainOnly.ErrorType.NOT_FOUND_ONLY;16import static org.assertj.core.error.GroupTypeDescription.getGroupTypeDescription;17import static org.assertj.core.util.IterableUtil.isNullOrEmpty;18import org.assertj.core.internal.ComparisonStrategy;19import org.assertj.core.internal.StandardComparisonStrategy;20/**21 * Creates an error message indicating that an assertion that verifies a group of elements contains only a given set of22 * values and23 * nothing else failed. A group of elements can be a collection, an array or a {@code String}.24 * 25 * @author Alex Ruiz26 * @author Yvonne Wang27 * @author Joel Costigliola28 */29public class ShouldContainOnly extends BasicErrorMessageFactory {30 /**31 * Creates a new <code>{@link ShouldContainOnly}</code>.32 * 33 * @param actual the actual value in the failed assertion.34 * @param expected values expected to be contained in {@code actual}.35 * @param notFound values in {@code expected} not found in {@code actual}.36 * @param notExpected values in {@code actual} that were not in {@code expected}.37 * @param comparisonStrategy the {@link ComparisonStrategy} used to evaluate assertion.38 * @return the created {@code ErrorMessageFactory}.39 */40 public static ErrorMessageFactory shouldContainOnly(Object actual, Object expected, Iterable<?> notFound,41 Iterable<?> notExpected, ComparisonStrategy comparisonStrategy) {42 GroupTypeDescription groupTypeDescription = getGroupTypeDescription(actual);43 if (isNullOrEmpty(notExpected))44 return new ShouldContainOnly(actual, expected, notFound, NOT_FOUND_ONLY, comparisonStrategy, groupTypeDescription);45 if (isNullOrEmpty(notFound))46 return new ShouldContainOnly(actual, expected, notExpected, NOT_EXPECTED_ONLY, comparisonStrategy, groupTypeDescription);47 return new ShouldContainOnly(actual, expected, notFound, notExpected, comparisonStrategy, groupTypeDescription);48 }49 /**50 * Creates a new <code>{@link ShouldContainOnly}</code>.51 * 52 * @param actual the actual value in the failed assertion.53 * @param expected values expected to be contained in {@code actual}.54 * @param notFound values in {@code expected} not found in {@code actual}.55 * @param notExpected values in {@code actual} that were not in {@code expected}.56 * @return the created {@code ErrorMessageFactory}.57 */58 public static ErrorMessageFactory shouldContainOnly(Object actual, Object expected, Iterable<?> notFound,59 Iterable<?> notExpected) {60 return shouldContainOnly(actual, expected, notFound, notExpected, StandardComparisonStrategy.instance());61 }62 private ShouldContainOnly(Object actual, Object expected, Iterable<?> notFound, Iterable<?> notExpected,63 ComparisonStrategy comparisonStrategy, GroupTypeDescription groupTypeDescription) {64 super("%n" +65 "Expecting " + groupTypeDescription.getGroupTypeName() + ":%n" +66 " <%s>%n" +67 "to contain only:%n" +68 " <%s>%n" +69 groupTypeDescription.getElementTypeName() + " not found:%n" +70 " <%s>%n" +71 "and " + groupTypeDescription.getElementTypeName() + " not expected:%n" +72 " <%s>%n%s", actual,73 expected, notFound, notExpected, comparisonStrategy);74 }75 private ShouldContainOnly(Object actual, Object expected, Iterable<?> notFoundOrNotExpected, ErrorType errorType,76 ComparisonStrategy comparisonStrategy, GroupTypeDescription groupTypeDescription) {77 // @format:off78 super("%n" +79 "Expecting "+groupTypeDescription.getGroupTypeName()+":%n" +80 " <%s>%n" +81 "to contain only:%n" +82 " <%s>%n" + (errorType == NOT_FOUND_ONLY ?83 "but could not find the following "+groupTypeDescription.getElementTypeName()+":%n" : "but the following "+groupTypeDescription.getElementTypeName()+" were unexpected:%n") +84 " <%s>%n%s",85 actual, expected, notFoundOrNotExpected, comparisonStrategy);86 // @format:on87 }88 public enum ErrorType {89 NOT_FOUND_ONLY, NOT_EXPECTED_ONLY...

Full Screen

Full Screen

ShouldContainOnly

Using AI Code Generation

copy

Full Screen

1import static org.assertj.core.api.Assertions.assertThat;2import static org.assertj.core.error.ShouldContainOnly.shouldContainOnly;3import static org.assertj.core.util.Lists.newArrayList;4import static org.assertj.core.util.Sets.newLinkedHashSet;5import java.util.List;6import java.util.Set;7import org.assertj.core.api.AssertionInfo;8import org.assertj.core.error.ErrorMessageFactory;9import org.assertj.core.internal.Failures;10import org.assertj.core.presentation.StandardRepresentation;11import org.junit.Test;12public class ShouldContainOnlyTest {13 private Failures failures = Failures.instance();14 public void should_create_error_message() {15 ErrorMessageFactory factory = shouldContainOnly(newArrayList("Yoda", "Luke"), newLinkedHashSet("Luke"),16 newLinkedHashSet("Yoda"));17 String message = factory.create(new AssertionInfo(), new StandardRepresentation());18 assertThat(message).isEqualTo(String.format(19 " <[\"Yoda\"]>%n"));20 }21 public void should_create_error_message_with_custom_comparison_strategy() {22 ErrorMessageFactory factory = shouldContainOnly(newArrayList("Yoda", "Luke"), newLinkedHashSet("Luke"),23 newLinkedHashSet("Yoda"), caseInsensitiveStringComparisonStrategy);24 String message = factory.create(new AssertionInfo(), new StandardRepresentation());25 assertThat(message).isEqualTo(String.format(26 "when comparing values using 'CaseInsensitiveStringComparator'%n"));27 }28}

Full Screen

Full Screen

ShouldContainOnly

Using AI Code Generation

copy

Full Screen

1import static org.assertj.core.api.Assertions.assertThat;2import java.util.ArrayList;3import java.util.List;4import org.junit.Test;5import org.assertj.core.error.ShouldContainOnly;6public class ShouldContainOnlyTest {7 public void test() {8 List<Integer> list = new ArrayList<Integer>();9 list.add(1);10 list.add(2);11 list.add(3);12 list.add(4);13 assertThat(list).containsOnly(1, 2, 3, 4);14 }15}16assertThat(list).containsOnly(1, 2, 3, 4, 5);17assertThat(list).containsOnly(1, 2, 3);18assertThat(list).containsOnly(1, 2, 3, 4, 5, 6);

Full Screen

Full Screen

ShouldContainOnly

Using AI Code Generation

copy

Full Screen

1import org.assertj.core.error.ShouldContainOnly;2import org.assertj.core.description.Description;3import org.assertj.core.description.TextDescription;4import org.assertj.core.presentation.StandardRepresentation;5import org.assertj.core.util.Lists;6import org.assertj.core.util.Sets;7import java.util.List;8import java.util.Set;9public class ShouldContainOnlyExample {10 public static void main(String[] args) {11 Set<String> set = Sets.newLinkedHashSet("a", "b", "c");12 List<String> list = Lists.newArrayList("a", "b", "c", "d", "e");13 Description description = new TextDescription("Test");14 System.out.println(ShouldContainOnly.shouldContainOnly(set, list, Sets.newLinkedHashSet("d", "e"), Sets.newLinkedHashSet("d", "e"), description, new StandardRepresentation()));15 }16}

Full Screen

Full Screen

ShouldContainOnly

Using AI Code Generation

copy

Full Screen

1import org.assertj.core.error.ShouldContainOnly;2 import org.assertj.core.internal.TestDescription;3 import org.assertj.core.presentation.StandardRepresentation;4 import org.assertj.core.util.diff.Delta;5 import org.assertj.core.util.diff.Delta.TYPE;6 import org.assertj.core.util.diff.Diff;7 import org.assertj.core.util.diff.Patch;8 import java.util.ArrayList;9 import java.util.List;10 import static java.util.Arrays.asList;11 import static org.assertj.core.error.ShouldContainOnly.shouldContainOnly;

Full Screen

Full Screen

ShouldContainOnly

Using AI Code Generation

copy

Full Screen

1import org.assertj.core.error.ShouldContainOnly;2import org.assertj.core.internal.StandardComparisonStrategy;3import org.assertj.core.description.Description;4import org.assertj.core.description.TextDescription;5import org.assertj.core.presentation.StandardRepresentation;6import org.assertj.core.presentation.Representation;7import org.assertj.core.util.Arrays;8import java.util.List;9import java.util.ArrayList;10import java.util.HashSet;11import java.util.Set;12import java.util.Map;13import java.util.HashMap;14import java.util.Iterator;15public class ShouldContainOnlyDemo {16 public static void main(String[] args) {17 Description description = new TextDescription("Testing");18 Representation representation = new StandardRepresentation();19 StandardComparisonStrategy standardComparisonStrategy = StandardComparisonStrategy.instance();20 ShouldContainOnly shouldContainOnly = new ShouldContainOnly(Arrays.array(1, 2, 3), Arrays.array(4, 5, 6), new ArrayList(), standardComparisonStrategy);21 ShouldContainOnly shouldContainOnly1 = new ShouldContainOnly(Arrays.array(1, 2, 3), Arrays.array(4, 5, 6), new ArrayList(), standardComparisonStrategy);22 ShouldContainOnly shouldContainOnly2 = new ShouldContainOnly(Arrays.array(1, 2, 3), Arrays.array(4, 5, 6), new ArrayList(), standardComparisonStrategy);23 ShouldContainOnly shouldContainOnly3 = new ShouldContainOnly(Arrays.array(1, 2, 3), Arrays.array(1, 2, 3), new ArrayList(), standardComparisonStrategy);24 ShouldContainOnly shouldContainOnly4 = new ShouldContainOnly(Arrays.array(1, 2, 3), Arrays.array(4, 5, 6), new ArrayList(), standardComparisonStrategy);25 ShouldContainOnly shouldContainOnly5 = new ShouldContainOnly(Arrays.array(1, 2, 3), Arrays.array(4, 5, 6), new ArrayList(), standardComparisonStrategy);26 shouldContainOnly.values();

Full Screen

Full Screen

ShouldContainOnly

Using AI Code Generation

copy

Full Screen

1import org.assertj.core.api.Assertions;2import org.assertj.core.error.ShouldContainOnly;3import org.assertj.core.internal.TestDescription;4import org.assertj.core.presentation.StandardRepresentation;5import org.assertj.core.util.Lists;6import java.util.List;7public class AssertJAssertError {8 public static void main(String[] args) {9 List<String> list = Lists.newArrayList("a", "b", "c", "d");10 List<String> expected = Lists.newArrayList("a", "b", "c");11 List<String> unexpected = Lists.newArrayList("d");12 ShouldContainOnly shouldContainOnly = ShouldContainOnly.shouldContainOnly(list, expected, unexpected, new StandardRepresentation());13 String errorMessage = shouldContainOnly.create(new TestDescription("TEST"), new StandardRepresentation());14 System.out.println(errorMessage);15 }16}

Full Screen

Full Screen

ShouldContainOnly

Using AI Code Generation

copy

Full Screen

1public class 1 {2 public static void main(String[] args) {3 ShouldContainOnly shouldContainOnly = new ShouldContainOnly(1, 2, 3, 4, 5, 6, 7, 8, 9);4 System.out.println(shouldContainOnly.getMessage());5 }6}

Full Screen

Full Screen

ShouldContainOnly

Using AI Code Generation

copy

Full Screen

1import org.assertj.core.api.*;2import org.assertj.core.error.*;3import org.assertj.core.description.*;4import org.assertj.core.presentation.*;5import org.junit.*;6import static org.assertj.core.api.Assertions.*;7import static org.assertj.core.error.ShouldBeEmpty.*;8import static org.assertj.core.error.ShouldContainOnly.*;9import static org.assertj.core.util.Lists.*;10import static org.assertj.core.util.Sets.*;11import java.util.*;12public class ShouldContainOnlyExample {13 public void should_contain_only_example() {14 List<String> list = newArrayList("a", "b", "c");15 try {16 assertThat(list).containsOnly("a", "b", "c", "d");17 } catch (AssertionError e) {18 System.out.println(e.getMessage());

Full Screen

Full Screen

ShouldContainOnly

Using AI Code Generation

copy

Full Screen

1public class 1 {2 public static void main(String[] args) {3 List<String> list = new ArrayList<>();4 list.add("one");5 list.add("two");6 list.add("three");7 ErrorMessageFactory factory = ShouldContainOnly.shouldContainOnly(list, "one", "two", "four");8 System.out.println(factory.create("test", "test"));9 }10}

Full Screen

Full Screen

Automation Testing Tutorials

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.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Assertj automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Most used methods in ShouldContainOnly

Test Your Web Or Mobile Apps On 3000+ Browsers

Signup for free

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful