一.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 […]
Tag: testng
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 […]
Jenkins, ant, selenium, testng build automated testing framework
If in your understanding, automated testing is to introduce the webdriver package in eclipse, and then write some test scripts, this is what you call automated testing. In fact, this is not a true automated test. You have seen that it needs to be run every time Do I still need to open eclipse and […]
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 […]
Once you learn TestNG, you will master half of Java unit testing!
01, TestNG 01. Introduction In daily testing work, it is often necessary to write codes and scripts to complete some testing tasks, such as automated testing, interface testing, unit testing, etc. After writing a number of scripts, these scripts need to be organized, managed and the results collected. At this time, a tool is needed […]
How to use jenkins, ant, selenium, testng to build an automated testing framework
If in your understanding, automated testing is to introduce the webdriver package in eclipse, and then write some test scripts, this is what you call automated testing. In fact, this is not a true automated test. You have seen that it needs to be run every time Do I still need to open eclipse and […]
Jenkins+maven+testng+htmlreport unit automation testing
Background In order to automatically run the unit test code in Jenkins, the technology combination of maven + testng is used to execute the unit test code manually or regularly, so as to improve the efficiency of manual running automation. Through this solution, the unit can also be applied to the httpclient framework to perform […]
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 […]