Need advice about which tool to choose?Ask the StackShare community!
Mockito vs Selenide: What are the differences?
What is Mockito? Tasty mocking framework for unit tests in Java. It is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. It doesn’t give you hangover because the tests are very readable and they produce clean verification errors.
What is Selenide? Concise UI tests in JAVA. It is a library for writing concise, readable, boilerplate-free tests in Java using Selenium WebDriver.
Mockito and Selenide can be categorized as "Testing Frameworks" tools.
Mockito is an open source tool with 9.32K GitHub stars and 1.66K GitHub forks. Here's a link to Mockito's open source repository on GitHub.
Liferay, Frichti, and Mercedes-Benz.io GmbH are some of the popular companies that use Mockito, whereas Selenide is used by SEMrush, Swedbank Corporate Lending Baltic team, and Leadex Systems. Mockito has a broader approval, being mentioned in 23 company stacks & 35 developers stacks; compared to Selenide, which is listed in 3 company stacks and 3 developer stacks.
Hi, I am starting out to test an application that is currently being developed - FE: React. BE: Node JS. I want the framework to be able to test all UI scenarios (from simple to complex) and also have the capability to test APIs. I also need to run tests across all OSs and Browsers (Windows, Mac, Android, iOS). I have also looked into react-testing-library and @TestProject.io. Any advice you can give as to which framework would be best and why would be so much appreciated! Thank you!!
You should also definitely look into Playwright, which is a new automation tool from Microsoft building on top of the Puppeteer experience and trying to bring this experience in the cross browser space - very exciting project. Great team. Also CodeceptJS as already Playwright support which at a ton of valuable features on top of Playwright, give it a go!
I'm also looking for the same, FE: React & BE: NodeJS. Cypress won't help as it lacks cross-browser testing, it doesn't support all the browsers. I'm still investigating it, but looks like WebdriverIO may fulfil what I'm looking for - Cross-browser testing, integration with CI/CD, running it as a docker service, good support on assertions & reporting of test results. Let me know if you found any information on any of the above mentioned points.
Hi Esther, if you really need cross OS and cross device automation Cypress wont help, with WebdriverIO you can do it … and check out CodeceptJS, which is a wrapper around several frameworks (like WebdriverIO) and will support future players (currently for example upcoming Playwright) as well.
Pros of Mockito
Pros of Selenide
- Nice JAVA API5
- Very mature API2
- File upload support2
- Integrated with WebDriverManager project2
- Integrated with Selenium-Jupiter framework2
- Capture screen shots on fail1
- Cross browser1
- Proxy server1
Sign up to add or upvote prosMake informed product decisions
Cons of Mockito
Cons of Selenide
- Hybrid page model not possible1