Python automated test framework, who is your only one? You will understand after reading this article
Python's unique advantages have created a series of test frameworks. In front of these test frameworks, which is better or worse? How to choose?
As the saying goes, "there is no best, there is only the most suitable". Today, we will compete with the four mainstream automated testing frameworks frequently used in Python to select the ...
Posted by Ajita on Thu, 13 Jan 2022 10:16:19 +0100
Spring boot 2 unit test using JUnit 5
catalogue
1, JUnit 5 changes
1. Introduction
2. Use
2, JUnit 5 common annotations
1. The notes of JUnit 5 and JUnit 4 are changed
2.@DisplayName
3.@BeforeEach,@AfterEach,@BeforeAll,@AfterAll
4.@Disabled
5.@Timeout
6.@SpringBootTest
7.@RepeatedTest
3, Assert
1. Introduction
2. Simple assertion
3. Array assertion
4. Combination a ...
Posted by beachdaze on Tue, 11 Jan 2022 17:42:52 +0100
Gao fushuai of the unit test community, what about the Pytest framework, use case marking and test execution
♥ preface
In the introduction of the last article, we introduced the pre and post methods and fixture mechanism of pytest. This chapter mainly introduces the marking mechanism and use case execution method in pytest. Pytest can pass the data into the test function through the tag, or filter the executed use cases through the tag, and ...
Posted by CKPD on Fri, 07 Jan 2022 13:29:56 +0100
SpringBoot2.3. Integrate Mockito to realize unit test
1. General
Mockito is an excellent and powerful framework for Java unit testing. When you need to call a third-party interface and the development test environment cannot call this interface directly, you can use mockito to simulate interface calls to write perfect unit tests, which also makes it strongly decoupled from third-party application ...
Posted by AudiS2 on Wed, 05 Jan 2022 17:10:39 +0100
[Go quality assurance: Unit Test & benchmark test]
The current project development can never be completed by one person and requires multi person cooperation. In the process of multi person cooperation, how to ensure the quality of code and how to optimize the performance of code, let's take a look at unit testing and benchmarking.
unit testing
After the function is developed, if the code is ...
Posted by murali on Tue, 04 Jan 2022 06:00:33 +0100
On Net Core backend unit test
catalogue
1. Preface
2. Why do you need unit testing
2.1 prevention of regression
2.2 reduce code coupling
3. Basic principles and norms
3.1 3A principle
3.2 try to avoid direct testing of proprietary methods
3.3 reconstruction principle
3.4 avoid multiple assertions
3.5 document and method naming specification
4. Introduction to com ...
Posted by abolmeer on Sat, 01 Jan 2022 19:41:26 +0100
Let's talk about the Python automated test framework
In the python language department, there are many available automated testing frameworks, such as unittest+HTMLTestRunner, Nose, etc. in the early days, the Robot Framework is commonly used in recent years. The Robot Framework is the next very general testing framework in Python. Using the mechanism of extension plug-ins can help us realize al ...
Posted by freshrod on Wed, 29 Dec 2021 21:20:36 +0100
Interface automation testing requires framework knowledge. How much have you learned?
Why does TestNg become the first choice of Java testing framework? What are you hesitating about? Look at it! We have analyzed the reasons for choosing TestNg from multiple perspectives and also understood the runtime life cycle of TestNg. In this article, we will learn the @ Test annotation and the use of various parameters in detail.
1, Bas ...
Posted by dawsba on Tue, 28 Dec 2021 00:04:51 +0100
Selenium 3 automated test [24] locates a set of elements
In addition, we know that WebDriver has 8 methods to locate a single element. It is also mentioned that WebDriver also provides 8 corresponding positioning methods to locate a group of elements. 8 kinds of find_elements_by_* The method is as follows:
find_elements_by_id: locate a group of elements through the ID attribute value of the elemen ...
Posted by jaikar on Mon, 20 Dec 2021 03:18:42 +0100
Introduction to Java (day18# foundation strengthening 03)
1. Unit test
1.1 overview [understanding]
JUnit is a unit testing tool for Java programming language. JUnit is a very important testing tool
1.2 features [understanding]
JUnit is an open source testing tool.Provide annotations to identify test methods.JUnit testing allows you to write code faster and improve quality.JUnit is elegant and con ...
Posted by sheridan on Sat, 18 Dec 2021 21:22:37 +0100