Need advice about which tool to choose?Ask the StackShare community!

Mockito

1.7K
177
+ 1
0
Selenide

56
85
+ 1
16
Add tool

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.

Advice on Mockito and Selenide
Needs advice
on
CypressCypressSelenideSelenide
and
WebdriverIOWebdriverIO

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!!

See more
Replies (3)
Recommends
on
PlaywrightPlaywright

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!

See more
Jinesh Khimsaria
Test Automation Specialist at Personal · | 3 upvotes · 73.2K views
Recommends
on
WebdriverIOWebdriverIO

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.

See more
Recommends
on
CodeceptJSCodeceptJS

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.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Mockito
Pros of Selenide
    Be the first to leave a pro
    • 5
      Nice JAVA API
    • 2
      Very mature API
    • 2
      File upload support
    • 2
      Integrated with WebDriverManager project
    • 2
      Integrated with Selenium-Jupiter framework
    • 1
      Capture screen shots on fail
    • 1
      Cross browser
    • 1
      Proxy server

    Sign up to add or upvote prosMake informed product decisions

    Cons of Mockito
    Cons of Selenide
      Be the first to leave a con
      • 1
        Hybrid page model not possible

      Sign up to add or upvote consMake informed product decisions

      - No public GitHub repository available -

      What is Mockito?

      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?

      It is a library for writing concise, readable, boilerplate-free tests in Java using Selenium WebDriver.

      Need advice about which tool to choose?Ask the StackShare community!

      What companies use Mockito?
      What companies use Selenide?
      See which teams inside your own company are using Mockito or Selenide.
      Sign up for StackShare EnterpriseLearn More

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with Mockito?
      What tools integrate with Selenide?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      What are some alternatives to Mockito and Selenide?
      JUnit
      JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
      Appium
      Appium is an open source test automation framework for use with native, hybrid, and mobile web apps. It drives iOS and Android apps using the WebDriver protocol. Appium is sponsored by Sauce Labs and a thriving community of open source developers.
      Robolectric
      It is a framework that brings fast and reliable unit tests to Android. Tests run inside the JVM on your workstation in seconds. Test drive your Android application with robolectric
      mockk
      It is an open-source library focused on making mocking in Kotlin great. It is a library with the possibility of mocking default arguments, final classes, varargs, coroutines and extension methods.
      RSpec
      Behaviour Driven Development for Ruby. Making TDD Productive and Fun.
      See all alternatives