pytest and testNg automation framework

一.pytest 1. Install pytest: pip install pytest 2. Write use cases – collect use cases – execute use cases – generate reports 3.How pytest automatically identifies use cases The identification rules are as follows: 1. Search the root directory: By default, test cases are collected from the current directory, that is, in which directory the […]

A 15,000-word article teaches you how to build an interface automation testing framework using Eclipse+TestNG (recommended to collect)

Teach you step by step how to build an interface automation testing framework using Eclipse + TestNG Without further ado, let’s get straight to it~ 1. Environment installation 1. Premise Install jdk Configure Java environment variables Install Eclips These are all available online, so I won’t introduce them in detail. 2. Install the TestNG plug-in […]

A 15,000-word article teaches you how to build an interface automation testing framework using Eclipse+TestNG (recommended to collect)

Teach you step by step how to build an interface automation testing framework using Eclipse + TestNG Without further ado, let’s get straight to it~ 1. Environment installation 1. Premise Install jdk Configure Java environment variables Install Eclips These are all available online, so I won’t introduce them in detail. 2. Install the TestNG plug-in […]

[Eight: (Adjust springboot+testng+mybatis+data verification]

Directory 1. Code structure config controller model springboot startup class 2. Configure resources mysql.xml application.yml logback.xml mybatis-config.xml Database configuration 3. Test verification 1. Code structure config package com.course.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.service.ApiInfo; import springfox.documentation.service.Contact; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spring.web.plugins.Docket; import springfox.documentation.swagger2.annotations.EnableSwagger2; @Configuration @EnableSwagger2 public class SwaggerConfig {<!– –> @Bean public […]

Unit testing – TestNG + PowerMock

Unit Testing refers to the testing work of checking the correctness of the smallest testable unit in the software or project. A unit is an artificially specified minimum testable functional module, which can be a module, a function or a class. Unit testing needs to be done in isolation from module development. After the program […]

Unit testing – TestNG + PowerMock

Unit Testing refers to the testing work of checking the correctness of the smallest testable unit in the software or project. A unit is an artificially specified minimum testable functional module, which can be a module, a function or a class. Unit testing needs to be done in isolation from module development. After the program […]