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 […]
Tag: testng
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 […]
java+selenium+testNG+excel realizes automated testing of web pages
Directory Foreword: Finally, I would like to ask the masters. I am too inexperienced in the assertion of test cases. I don’t know any good assertion methods after the use cases are executed. Please tell me about the examples in your work. Generally, how to make assertions for each use case. I’m talking about ideas, […]
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 and Junit5 multi-threaded concurrency test comparison
1. Foreword I recently tested an open source project and found that the generated global id is duplicated and there is no unit test, so I am going to contribute a PR Thinking of multi-threaded concurrent testing, based on experience, the first idea is to use Testng. After reading it later, Junit5 also has experimental […]
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 real automated test. You have seen every time you need to run Do you still need to open eclipse and then choose […]
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) […]