How to use ExampleTest class of org.mockitousage.examples.use package

Best Mockito code snippet using org.mockitousage.examples.use.ExampleTest

Run Mockito automation tests on LambdaTest cloud grid

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

copy
1package fr.inria.astor.test.repair.evaluation.regression;
2
3import static org.junit.Assert.assertEquals;
4import static org.junit.Assert.assertTrue;
5
6import java.io.File;
7import java.util.ArrayList;
8import java.util.Arrays;
9import java.util.List;
10
11import org.apache.log4j.Level;
12import org.junit.Before;
13import org.junit.Ignore;
14import org.junit.Test;
15
16import fr.inria.astor.core.entities.ProgramVariant;
17import fr.inria.main.CommandSummary;
18import fr.inria.main.FileLauncher;
19import fr.inria.main.evolution.AstorMain;
20
21/**
22 * 
23 * @author Matias Martinez
24 *
25 */
26@Ignore
27public class MockitoTest {
28
29	
30	String exampleRoot = "./examples/";
31	ClassLoader classLoader = null;
32	File dataDir = null;
33	
34	@Before
35	public void setUp(){
36		classLoader = getClass().getClassLoader();
37		dataDir = new File(classLoader.getResource("data_projects").getPath());
38	}
39	
40	
41	
42	public List<String> getParticularIssueLibs(File f ){
43		if(!f.exists())
44			throw new IllegalAccessError(f.getAbsolutePath() + " not found");
45		List<String> otherlibs = new ArrayList<>();
46		if(f.isFile())
47			return otherlibs;
48		for(File folder : f.listFiles()){
49			if(folder.getName().endsWith(".jar")){
50				otherlibs.add(folder.getAbsolutePath());
51			}
52			else{
53				otherlibs.addAll(getParticularIssueLibs(folder));
54			}
55		}
56		return otherlibs;
57	}
58	
59	@Test
60	public void testMockito29() throws Exception{
61		int id = 29;
62		testMockito(id);
63	}
64	
65	@Test
66	public void testMockito22() throws Exception{
67		/*fr.inria.main.AbstractMain.processArguments(AbstractMain.java:286) -
68		//command line arguments: [-out  /local/scr/mtufano/Mockito/22/b/random-global-default/1  
69		 * -jvm4testexecution  /usr/local/jdk1.7.0_80/bin/  -maxgen  1000000 
70		 *  -population  1  -maxtime  180  -timezone  America/New_York  
71		 *  -customop  fr.inria.astor.approaches.jgenprog.operators.InsertAfterOp:fr.inria.astor.approaches.jgenprog.operators.InsertBeforeOp:fr.inria.astor.approaches.jgenprog.operators.ReplaceOp  
72		 *  -seed  1  -javacompliancelevel  6  -package  org.mockito  -binjavafolder  target/classes  -bintestfolder  target/test-classes  
73		 *  -srcjavafolder  src  -srctestfolder  test  -learningdir  ../../out/learningdir/Mockito/22/b/ 
74		 *   -location  ../../dat/defects4j/Mockito/22/b/  -failing  org.mockito.internal.matchers.EqualityTest  
75		 *   -dependencies  ../../dat/defects4j/Mockito/22/b/lib/build/ant-googlecode-0.0.3.jar:
76		 *   ../../dat/defects4j/Mockito/22/b/lib/build/bnd-0.0.313.jar:
77		 *   ../../dat/defects4j/Mockito/22/b/lib/build/ant4hg-V0.07.jar:
78		 *   ../../dat/defects4j/Mockito/22/b/lib/build/jaxen-1.1.1.jar:.
79		 *   ./../dat/defects4j/Mockito/22/b/lib/build/asm-3.1.jar:
80		 *   ../../dat/defects4j/Mockito/22/b/lib/build/sorcerer.jar:
81		 *   ../../dat/defects4j/Mockito/22/b/lib/build/pmd-4.1.jar:
82		 *   ../../dat/defects4j/Mockito/22/b/lib/build/maven-ant-tasks-2.0.9.jar:
83		 *   ../../dat/defects4j/Mockito/22/b/lib/build/jarjar-1.0.jar:
84		 *   ../../dat/defects4j/Mockito/22/b/lib/compile/junit-4.10.jar:
85		 *   ../../dat/defects4j/Mockito/22/b/lib/test/fest-util-1.1.4.jar:
86		 *   ../../dat/defects4j/Mockito/22/b/lib/test/fest-assert-1.3.jar:
87		 *   ../../dat/defects4j/Mockito/22/b/lib/test/powermock-reflect-1.2.5.jar:
88		 *   ../../dat/defects4j/Mockito/22/b/lib/sources/com.springsource.org.hamcrest.core-1.1.0-sources.jar:
89		 *   ../../dat/defects4j/Mockito/22/b/lib/sources/cglib-and-asm-1.0-sources.jar:
90		 *   ../../dat/defects4j/Mockito/22/b/lib/sources/objenesis-2.1-sources.jar:
91		 *   ../../dat/defects4j/Mockito/22/b/lib/repackaged/cglib-and-asm-1.0.jar:
92		 *   ../../dat/defects4j/Mockito/22/b/lib/run/com.springsource.org.hamcrest.core-1.1.0.jar:
93		 *   ../../dat/defects4j/Mockito/22/b/lib/run/objenesis-2.1.jar  
94		 *   -scope  fr.inria.astor.core.loop.spaces.ingredients.scopes.ctscopes.CtGlobalIngredientScope  
95		 *   -ingredientstrategy  fr.inria.astor.core.loop.spaces.ingredients.ingredientSearch.EfficientIngredientStrategy  
96		 *   -classestoinstrument  org.mockito.internal.progress.ThreadSafeMockingProgress:org.mockito.MockitoAnnotations:org.mockito.exceptions.misusing.MockitoConfigurationException:org.mockito.internal.configuration.injection.filter.MockCandidateFilter:org.mockito.internal.invocation.realmethod.RealMethod:org.mockito.exceptions.misusing.NullInsteadOfMockException:org.mockito.Mock:org.mockito.internal.configuration.ClassPathLoader:org.mockito.exceptions.base.MockitoException:org.mockito.internal.configuration.InjectingAnnotationEngine:org.mockito.exceptions.base.MockitoAssertionError:org.mockito.exceptions.verification.TooLittleActualInvocations:org.mockito.invocation.MockHandler:org.mockito.internal.configuration.SpyAnnotationEngine:org.mockito.exceptions.verification.NeverWantedButInvoked:org.mockito.internal.invocation.MockitoMethod:org.mockito.internal.configuration.injection.ConstructorInjection:org.mockito.stubbing.Answer:org.mockito.exceptions.misusing.FriendlyReminderException:org.mockito.exceptions.misusing.InvalidUseOfMatchersException:org.mockito.internal.configuration.injection.scanner.InjectMocksScanner:org.mockito.exceptions.verification.NoInteractionsWanted:org.mockito.internal.matchers.Equality:org.mockito.invocation.Invocation:org.mockito.internal.configuration.GlobalConfiguration:org.mockito.exceptions.PrintableInvocation:org.mockito.plugins.MockMaker:org.mockito.configuration.IMockitoConfiguration:org.mockito.internal.configuration.injection.MockInjection:org.mockito.internal.util.collections.Sets:org.mockito.exceptions.misusing.WrongTypeOfReturnValue:org.mockito.invocation.InvocationOnMock:org.mockito.internal.configuration.MockAnnotationProcessor:org.mockito.exceptions.misusing.UnfinishedStubbingException:org.mockito.internal.util.MockUtil:org.mockito.exceptions.Reporter:org.mockito.exceptions.misusing.MissingMethodInvocationException:org.mockito.internal.configuration.injection.scanner.MockScanner:org.mockito.exceptions.misusing.UnfinishedVerificationException:org.mockito.internal.configuration.injection.filter.FinalMockCandidateFilter:org.mockito.mock.MockName:org.mockito.internal.configuration.injection.filter.NameBasedCandidateFilter:org.mockito.exceptions.verification.WantedButNotInvoked:org.mockito.configuration.DefaultMockitoConfiguration:org.mockito.internal.configuration.injection.filter.TypeBasedCandidateFilter:org.mockito.internal.util.reflection.FieldInitializer:org.mockito.exceptions.misusing.CannotVerifyStubOnlyMock:org.mockito.internal.progress.ArgumentMatcherStorageImpl:org.mockito.internal.configuration.MockitoAnnotationsMockAnnotationProcessor:org.mockito.exceptions.verification.TooManyActualInvocations:org.mockito.internal.util.Checks:org.mockito.Captor:org.mockito.internal.invocation.AbstractAwareMethod:org.mockito.internal.util.collections.ListUtil:org.mockito.internal.progress.ArgumentMatcherStorage:org.mockito.internal.configuration.injection.MockInjectionStrategy:org.mockito.exceptions.verification.VerificationInOrderFailure:org.mockito.internal.configuration.FieldAnnotationProcessor:org.mockito.internal.configuration.injection.PropertyAndSetterInjection:org.mockito.internal.configuration.DefaultAnnotationEngine:org.mockito.internal.creation.CglibMockMaker:org.mockito.invocation.DescribedInvocation:org.mockito.internal.progress.MockingProgress:org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleanerProvider:org.mockito.exceptions.misusing.NotAMockException:org.mockito.configuration.AnnotationEngine:org.mockito.exceptions.verification.ArgumentsAreDifferent:org.mockito.internal.configuration.injection.SpyOnInjectedFieldsHandler:org.mockito.internal.configuration.CaptorAnnotationProcessor:org.mockito.plugins.StackTraceCleanerProvider:org.mockito.invocation.Location:org.mockito.internal.progress.MockingProgressImpl:org.mockito.internal.util.reflection.FieldInitializationReport:org.mockito.internal.configuration.DefaultInjectionEngine:org.mockito.internal.configuration.injection.filter.OngoingInjecter:org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet:org.mockito.exceptions.verification.SmartNullPointerException:  -regressiontestcases4fl  org.concurrentmockito.ThreadsShareAMockTest:org.concurrentmockito.ThreadsShareGenerouslyStubbedMockTest:org.mockito.internal.InvalidStateDetectionTest:org.mockito.internal.debugging.WarningsFinderTest:org.mockito.internal.handler.InvocationNotifierHandlerTest:org.mockito.internal.invocation.ArgumentsComparatorTest:org.mockito.internal.invocation.InvocationMatcherTest:org.mockito.internal.matchers.EqualityTest:org.mockito.internal.matchers.EqualsTest:org.mockito.internal.progress.MockingProgressImplTest:org.mockito.internal.stubbing.defaultanswers.ReturnsGenericDeepStubsTest:org.mockito.internal.verification.argumentmatching.ArgumentMatchingToolTest:org.mockito.internal.verification.checkers.AtLeastXNumberOfInvocationsCheckerTest:org.mockito.verification.TimeoutTest:org.mockitousage.PlaygroundWithDemoOfUnclonedParametersProblemTest:org.mockitousage.annotation.MockInjectionUsingConstructorTest$ATest:org.mockitousage.annotation.MockInjectionUsingConstructorTest:org.mockitousage.annotation.SpyAnnotationTest:org.mockitousage.basicapi.MocksSerializationForAnnotationTest:org.mockitousage.basicapi.MocksSerializationTest:org.mockitousage.basicapi.UsingVarargsTest:org.mockitousage.bugs.ActualInvocationHasNullArgumentNPEBugTest:org.mockitousage.bugs.ConcurrentModificationExceptionOnMultiThreadedVerificationTest:org.mockitousage.bugs.MultipleInOrdersTest:org.mockitousage.bugs.NPEWithCertainMatchersTest:org.mockitousage.bugs.ShouldAllowInlineMockCreationTest:org.mockitousage.bugs.SpyShouldHaveNiceNameTest:org.mockitousage.bugs.VerifyingWithAnExtraCallToADifferentMockTest:org.mockitousage.bugs.varargs.VarargsAndAnyObjectPicksUpExtraInvocationsTest:org.mockitousage.bugs.varargs.VarargsNotPlayingWithAnyObjectTest:org.mockitousage.configuration.CustomizedAnnotationForSmartMockTest:org.mockitousage.customization.BDDMockitoTest:org.mockitousage.debugging.InvocationListenerCallbackTest:org.mockitousage.debugging.PrintingInvocationsDetectsUnusedStubTest:org.mockitousage.debugging.PrintingInvocationsWhenEverythingOkTest:org.mockitousage.debugging.PrintingInvocationsWhenStubNotUsedTest:org.mockitousage.debugging.VerboseLoggingOfInvocationsOnMockTest:org.mockitousage.examples.use.ExampleTest:org.mockitousage.junitrunner.JUnit44RunnerTest:org.mockitousage.junitrunner.JUnit45RunnerTest:org.mockitousage.matchers.CapturingArgumentsTest:org.mockitousage.matchers.GenericMatchersTest:org.mockitousage.matchers.MatchersTest:org.mockitousage.matchers.VerificationAndStubbingUsingMatchersTest:org.mockitousage.puzzlers.BridgeMethodPuzzleTest:org.mockitousage.puzzlers.OverloadingPuzzleTest:org.mockitousage.serialization.DeepStubsSerializableTest:org.mockitousage.spies.SpyingOnInterfacesTest:org.mockitousage.spies.SpyingOnRealObjectsTest:org.mockitousage.stacktrace.ClickableStackTracesTest:org.mockitousage.stacktrace.PointingStackTraceToActualInvocationChunkInOrderTest:org.mockitousage.stacktrace.PointingStackTraceToActualInvocationInOrderTest:org.mockitousage.stacktrace.PointingStackTraceToActualInvocationTest:org.mockitousage.stacktrace.StackTraceFilteringTest:org.mockitousage.stubbing.BasicStubbingTest:org.mockitousage.stubbing.CloningParameterTest:org.mockitousage.stubbing.DeepStubbingTest:org.mockitousage.stubbing.DeprecatedStubbingTest:org.mockitousage.stubbing.StubbingUsingDoReturnTest:org.mockitousage.stubbing.StubbingWithThrowablesTest:org.mockitousage.verification.AtLeastXVerificationTest:org.mockitousage.verification.BasicVerificationInOrderTest:org.mockitousage.verification.BasicVerificationTest:org.mockitousage.verification.DescriptiveMessagesOnVerificationInOrderErrorsTest:org.mockitousage.verification.DescriptiveMessagesWhenVerificationFailsTest:org.mockitousage.verification.ExactNumberOfTimesVerificationTest:org.mockitousage.verification.FindingRedundantInvocationsInOrderTest:org.mockitousage.verification.NoMoreInteractionsVerificationTest:org.mockitousage.verification.OnlyVerificationTest:org.mockitousage.verification.PrintingVerboseTypesWithArgumentsTest:org.mockitousage.verification.RelaxedVerificationInOrderTest:org.mockitousage.verification.SelectedMocksInOrderVerificationTest:org.mockitousage.verification.VerificationExcludingStubsTest:org.mockitousage.verification.VerificationInOrderMixedWithOrdiraryVerificationTest:org.mockitousage.verification.VerificationInOrderTest:org.mockitousage.verification.VerificationInOrderWithCallsTest:org.mockitousage.verification.VerificationOnMultipleMocksUsingMatchersTest:org.mockitousage.verification.VerificationUsingMatchersTest:]
97*/
98		int id = 22;
99		testMockito(id);
100	}
101	
102	public void testMockito(int id) throws Exception{
103		FileLauncher l = new FileLauncher();
104		
105	
106		System.out.println("##Testing "+29);
107		String location = new File(exampleRoot + "/mockito_"+id).getAbsolutePath();
108		
109		
110		String[] args = new String[] { "-mode", "jgenprog", 
111				//
112				"-location", location, "-flthreshold", "0.1", 
113				//
114				"-seed", "1", "-maxgen", "50", "-stopfirst", "true", "-maxtime", "100", 
115				//
116				"-scope", "package",
117				
118				"-loglevel",Level.ERROR.toString(),
119				//"
120		};
121	
122		
123		String sharedlibs = "/Users/matias/develop/defects4j/framework/projects/Mockito/lib/";
124
125		File f = new File(location+File.separator+"lib");
126		List<String> otherlibs = getParticularIssueLibs(f);
127		System.out.println("libs from projects: "+otherlibs);
128		
129		String[] command = l.getCommand(args, new File(dataDir.getAbsolutePath()+"/mockito.json"), id, sharedlibs,location,otherlibs);
130		System.out.println(Arrays.toString(args));
131
132		AstorMain main1 = new AstorMain();
133
134		CommandSummary cs = new CommandSummary(command);
135		cs.command.put("-javacompliancelevel", "6");
136		cs.command.put("-loglevel", "DEBUG");
137		main1.execute(cs.flat());
138
139		List<ProgramVariant> solutions = main1.getEngine().getSolutions();
140		assertTrue(solutions.size() > 0);
141		assertEquals(1, solutions.size());
142	}
143}
144
Full Screen
copy
1/*
2 * Copyright (c) 2007 Mockito contributors
3 * This program is made available under the terms of the MIT License.
4 */
5package org.concurrentmockito;
6
7import org.junit.Test;
8import org.junit.runner.JUnitCore;
9import org.junit.runner.Result;
10import org.junit.runner.notification.Failure;
11import org.mockito.MockitoTest;
12import org.mockito.exceptions.ReporterTest;
13import org.mockito.exceptions.base.MockitoAssertionErrorTest;
14import org.mockito.exceptions.base.MockitoExceptionTest;
15import org.mockito.internal.AllInvocationsFinderTest;
16import org.mockito.internal.InvalidStateDetectionTest;
17import org.mockito.internal.creation.cglib.ClassImposterizerTest;
18import org.mockito.internal.handler.MockHandlerImplTest;
19import org.mockito.internal.invocation.InvocationImplTest;
20import org.mockito.internal.invocation.InvocationMatcherTest;
21import org.mockito.internal.invocation.InvocationsFinderTest;
22import org.mockito.internal.matchers.ComparableMatchersTest;
23import org.mockito.internal.matchers.EqualsTest;
24import org.mockito.internal.matchers.MatchersToStringTest;
25import org.mockito.internal.progress.MockingProgressImplTest;
26import org.mockito.internal.progress.TimesTest;
27import org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValuesTest;
28import org.mockito.internal.stubbing.defaultanswers.ReturnsGenericDeepStubsTest;
29import org.mockito.internal.util.MockUtilTest;
30import org.mockito.internal.util.collections.ListUtilTest;
31import org.mockito.internal.verification.DefaultRegisteredInvocationsTest;
32import org.mockito.internal.verification.checkers.MissingInvocationCheckerTest;
33import org.mockito.internal.verification.checkers.MissingInvocationInOrderCheckerTest;
34import org.mockito.internal.verification.checkers.NumberOfInvocationsCheckerTest;
35import org.mockito.internal.verification.checkers.NumberOfInvocationsInOrderCheckerTest;
36import org.mockitousage.basicapi.ReplacingObjectMethodsTest;
37import org.mockitousage.basicapi.ResetTest;
38import org.mockitousage.basicapi.UsingVarargsTest;
39import org.mockitousage.examples.use.ExampleTest;
40import org.mockitousage.matchers.CustomMatchersTest;
41import org.mockitousage.matchers.InvalidUseOfMatchersTest;
42import org.mockitousage.matchers.MatchersTest;
43import org.mockitousage.matchers.VerificationAndStubbingUsingMatchersTest;
44import org.mockitousage.misuse.InvalidUsageTest;
45import org.mockitousage.puzzlers.BridgeMethodPuzzleTest;
46import org.mockitousage.puzzlers.OverloadingPuzzleTest;
47import org.mockitousage.stacktrace.ClickableStackTracesTest;
48import org.mockitousage.stacktrace.PointingStackTraceToActualInvocationTest;
49import org.mockitousage.stacktrace.StackTraceFilteringTest;
50import org.mockitousage.stubbing.BasicStubbingTest;
51import org.mockitousage.stubbing.ReturningDefaultValuesTest;
52import org.mockitousage.stubbing.StubbingWithThrowablesTest;
53import org.mockitousage.verification.*;
54import org.mockitoutil.TestBase;
55
56import java.util.LinkedList;
57import java.util.List;
58
59public class ThreadsRunAllTestsHalfManualTest extends TestBase {
60    
61    private static class AllTestsRunner extends Thread {
62        
63        private boolean failed;
64
65        public void run() {
66            Result result = JUnitCore.runClasses(
67                    EqualsTest.class,
68                    ListUtilTest.class,
69                    MockingProgressImplTest.class,
70                    TimesTest.class,
71                    MockHandlerImplTest.class,
72                    AllInvocationsFinderTest.class,
73                    ReturnsEmptyValuesTest.class,
74                    NumberOfInvocationsCheckerTest.class,
75                    DefaultRegisteredInvocationsTest.class,
76                    MissingInvocationCheckerTest.class,
77                    NumberOfInvocationsInOrderCheckerTest.class,
78                    MissingInvocationInOrderCheckerTest.class,
79                    ClassImposterizerTest.class,
80                    InvocationMatcherTest.class,
81                    InvocationsFinderTest.class,
82                    InvocationImplTest.class,
83                    MockitoTest.class,
84                    MockUtilTest.class,
85                    ReporterTest.class,
86                    MockitoAssertionErrorTest.class,
87                    MockitoExceptionTest.class,
88                    StackTraceFilteringTest.class,
89                    BridgeMethodPuzzleTest.class,
90                    OverloadingPuzzleTest.class,
91                    InvalidUsageTest.class,
92                    UsingVarargsTest.class,
93                    CustomMatchersTest.class,
94                    ComparableMatchersTest.class,
95                    InvalidUseOfMatchersTest.class,
96                    MatchersTest.class,
97                    MatchersToStringTest.class,
98                    VerificationAndStubbingUsingMatchersTest.class,
99                    BasicStubbingTest.class,
100                    ReturningDefaultValuesTest.class,
101                    StubbingWithThrowablesTest.class,
102                    AtMostXVerificationTest.class,
103                    BasicVerificationTest.class,
104                    ExactNumberOfTimesVerificationTest.class,
105                    VerificationInOrderTest.class,
106                    NoMoreInteractionsVerificationTest.class,
107                    SelectedMocksInOrderVerificationTest.class,
108                    VerificationOnMultipleMocksUsingMatchersTest.class,
109                    VerificationUsingMatchersTest.class,
110                    RelaxedVerificationInOrderTest.class,
111                    DescriptiveMessagesWhenVerificationFailsTest.class,
112                    DescriptiveMessagesWhenTimesXVerificationFailsTest.class,
113                    BasicVerificationInOrderTest.class,
114                    VerificationInOrderMixedWithOrdiraryVerificationTest.class,
115                    DescriptiveMessagesOnVerificationInOrderErrorsTest.class,
116                    InvalidStateDetectionTest.class,
117                    ReplacingObjectMethodsTest.class,
118                    ClickableStackTracesTest.class,
119                    ExampleTest.class,
120                    PointingStackTraceToActualInvocationTest.class,
121                    VerificationInOrderFromMultipleThreadsTest.class,
122                    ResetTest.class,
123                    ReturnsGenericDeepStubsTest.class
124                );
125                
126                if (!result.wasSuccessful()) {
127                    System.err.println("Thread[" + Thread.currentThread().getId() + "]: error!");
128                    List<Failure> failures = result.getFailures();
129                    System.err.println(failures.size());
130                    for (Failure failure : failures) {
131                        System.err.println(failure.getTrace());
132                        failed = true;
133                    }
134                }
135        }
136
137        public boolean isFailed() {
138            return failed;
139        }
140    }
141    
142    @Test
143    public void shouldRunInMultipleThreads() throws Exception {
144        //this test ALWAYS fails if there is a single failing unit
145        assertFalse("Run in multiple thread failed", runInMultipleThreads(3));
146    }
147    
148    public static boolean runInMultipleThreads(int numberOfThreads) throws Exception {
149        List<AllTestsRunner> threads = new LinkedList<AllTestsRunner>();
150        for (int i = 1; i <= numberOfThreads; i++) {
151            threads.add(new AllTestsRunner());
152        }
153
154        for (Thread t : threads) {
155            t.start();
156        }
157
158        boolean failed = false;
159        for (AllTestsRunner t : threads) {
160            t.join();
161            failed = failed ? true : t.isFailed();
162        }
163        
164        return failed;
165    }
166    
167    public static void main(String[] args) throws Exception {
168        int numberOfThreads = 20; 
169        long before = System.currentTimeMillis();
170        runInMultipleThreads(numberOfThreads);
171        long after = System.currentTimeMillis();
172        long executionTime = (after-before)/1000;
173        System.out.println("Finished tests in " + numberOfThreads + " threads in " + executionTime + " seconds.");
174    }
175}
Full Screen

Accelerate Your Automation Test Cycles With LambdaTest

Leverage LambdaTest’s cloud-based platform to execute your automation tests in parallel and trim down your test execution time significantly. Your first 100 automation testing minutes are on us.

Try LambdaTest

...Most popular Stackoverflow questions on ExampleTest

    No relevant questions found for this class 😞

Run Selenium Automation Tests on LambdaTest Cloud Grid

Trigger Selenium automation tests on a cloud-based Grid of 3000+ real browsers and operating systems.

Test now for Free
LambdaTestX

We use cookies to give you the best experience. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. Learn More in our Cookies policy, Privacy & Terms of service

Allow Cookie
Sarah

I hope you find the best code examples for your project.

If you want to accelerate automated browser testing, try LambdaTest. Your first 100 automation testing minutes are FREE.

Sarah Elson (Product & Growth Lead)