Java+eclipse+selenium+maven+testng+reportng+jenkins automated test environment construction

I am a software testing novice. When I was researching automated testing, I really fell into a lot of pitfalls. Until now, I may barely set up the environment. Here, I casually summarized the establishment of a java-based selenium automated testing environment, and gave it to you who are learning software testing, so I took […]

TestNG and Junit5 test framework combing

1. testNG 1. testNG advantage Annotation-driven: TestNG uses annotations to identify test methods, test classes and configuration methods, making tests more readable. Parallel execution: TestNG supports multi-threaded parallel execution of tests, which can speed up the execution of test suites. Rich configuration: XML configuration files can be used to define the execution order and dependencies […]

SpringBoot+TestNG+RESTAssured to build a test framework (1)

Why integrate Sprint Boot and TestNG? Spring Boot and TestNG can be well integrated for better testing. TestNG is a Java-based testing framework that provides many features such as test suites, test cases, grouping of test methods, test parameterization, etc. Spring Boot is a framework for building applications based on the Spring framework, providing many […]

Java selenium combat: IntelliJ IDEA creates a maven project and configures the selenium+TestNG+cucumber+Allure environment

Directory 1. Software preparation: 2. Installation steps: IntelliJ IDEA download Download and install JDK Download and install Maven Chromedriver 3. Open Baidu search example: 1. Software preparation: IntelliJ IDEA: IntelliJ IDEA – the Leading Java and Kotlin IDE JDK: Java Downloads | Oracle Maven: https://maven.apache.org/download.cgi Maven repository: Maven Repository: Search/Browse/Explore (mvnrepository.com) Chromedriver: http://chromedriver.storage.googleapis.com/index.html 2. Installation […]

TestNG – Test methods, classes, groups

Introduction: Section 5 of the Chinese translation version of the official TestNG document, see http://testng.org/doc/documentation-main.htm 5 – Test methods, Test classes and Test groups for the original text. Directory 5 – Test methods, Test classes and Test groups 5.1 – Test groups 5.2 – Test Groups 5.3 Groups of groups 5.4 – Exclusion groups 5.5 […]

Java + testng +maven + appium for IOS automated testing

1 Introduction In order to save time and cost of real devices in automated testing, cover all iOS versions more efficiently, avoid compatibility issues and realize comprehensive automated testing, I use the virtual devices provided by the saucelabs (saucelabs.com) platform. Use the simple and easy-to-write Java language and appium open source framework and unit test […]

Java+TestNG+HttpClient interface automation testing framework

Table of Contents 1. HttpClient role 2. Test framework construction (1) JDK environment (2) TestNG introduction (3) HttpClient introduction 3. Send Get request and post request get request: post request Actual project display 4. Send a post request post request encapsulation 1. HttpClient role Simulate a client sending a request 2. Test framework construction (1) […]