MSTesthttps://github.com/microsoft/testfx-docs |
Seleniumhttps://pypi.org/project/selenium/ |
|
---|---|---|
Programming language |
.NET |
Python |
Category |
Unit Testing |
Web Automation |
General info |
MSTest is a Unit testing framework for the .net frameworkMSTest is fully integrated with Visual Studios and works natively without the need for any plugins. MSTest is better suited for only using Microsoft technologies rather than mixed technology environments. |
Selenium is an open source tool used to test web applicationsSelenium is a powerful testing tool which can send standard Python commands to different browsers, despite variations in browser design. It also provides extensions to emulate user interaction with browsers, a distribution server for scaling browser allocation, and the infrastructure for implementations of the W3C WebDriver specification that lets you write interchangeable code for all major web browsers |
xUnit
Set of frameworks originating from SUnit (Smalltalk's testing framework). They share similar structure and functionality. |
YesMsTest is an xUnit type framework |
No |
Client-side
Allows testing code execution on the client, such as a web browser |
YesMsTest can test various front-end components |
YesIt is primarily a browser automation tool which tests front-end components and functionality |
Server-side
Allows testing the bahovior of a server-side code |
YesWith MSTest you can test various back-end components individually |
YesIt can perform Unit tests and can test various components and behaviours in the backend using a BDD or TDD approach |
Fixtures
Allows defining a fixed, specific states of data (fixtures) that are test-local. This ensures specific environment for a single test |
YesMSTest contains fixture methods TestInitialize to setup your environment and TestCleanup to destroy the test environment |
YesBy writing your Selenium WebDriver tests in PyTest, this gives you access to Pytest's powerful fixture model |
Group fixtures
Allows defining a fixed, specific states of data for a group of tests (group-fixtures). This ensures specific environment for a given group of tests. |
YesGroup fixtures are available |
YesOne can group fixtures if accessing Pytest's fixture model |
Generators
Supports data generators for tests. Data generators generate input data for test. The test is then run for each input data produced in this way. |
N/A |
YesBy using a library such as Faker or Fake-factory |
Licence
Licence type governing the use and redistribution of the software |
Creative Commons Attribution 3.0 International Public License |
Apache License 2.0 |
Mocks
Mocks are objects that simulate the behavior of real objects. Using mocks allows testing some part of the code in isolation (with other parts mocked when needed) |
YesYou can create mock objects using the third party library moq |
YesIt includes support for mocking |
Grouping
Allows organizing tests in groups |
YesGrouping of tests into suites is possible with MSTest |
YesBy using the TestNG feature with which we can create groups and maintain them easily |
Other
Other useful information about the testing framework |
|
|