In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
The perfect combination of Jenkins and TestNG has been implemented before, but some shortcomings have been found in the use process, mainly the correlation between test code and test cases is not strong, and the execution state of test code and the execution state of test cases cannot be directly correlated! In order to solve this problem, we must use a set of test management tools to manage the code, use cases and execution status uniformly. In order to solve this problem quickly without changing the original framework and avoid repeated wheel building, consider introducing TestLink test management tool, mainly for the following reasons:
1. This tool is simple to use, widely used and popular, so it has fewer failures and low maintenance costs.
2. This tool is open source, convenient for secondary development later
3. Jenkins provides specialized plug-ins for the tool to reduce development effort
The process of combining these three is roughly as follows:
Install TestLink
A search on the Internet, not detailed introduction, in turn installed:
apache: web server, use yum command to fix
2. Install various php components, yum command to get it done
3.testLink Install the source file and extract it to the specified path, my path is (/var/www/testlink)
4. Install MySql database
5. Start the apache service, and install it step by step after accessing the browser.
II. Setting TestLink
1. Enter the Custom Field Management page and create a custom field, such as RunClass, as shown in the following figure:
2. In the "Product Management" module, enter the "Specify Custom Fields" module, you can see the fields created just now, check them and perform the specified operation.
3. In the Product Management module, create a test project
4. In the Test Cases module, create test requirements and test cases
5. In the "Test Case Creation" page, the custom fields created previously are displayed, as shown in the following figure.
In this input box, enter the complete package path of the TestNG test class, indicating that the current test case is associated with the class. If you want to associate the granularity to the method level, add "#method name" after the class, and set the type to "automatic".
6. In the Test Plan Management module, create a test plan
7. Go back to the "Test Cases" module and associate the created test cases to the test plan.
3. Setting up Jenkins
1. Download and install TestLink plug-in in "Plug-in Manager"
2. After successful installation, you can see testlink related settings on the "System Settings" page, as shown below:
The key entered in Develop Key is the content displayed in the API column of TestLink's "Personal Account"
3. On the Job configuration page, add invoke TestLink in the "Build" step, fill in the test project name, test plan name, build name and custom field name to associate with the test cases and test classes in the test plan defined under the test project in testLink.
4. To iteratively execute all test classes, select Iterative Test Build Steps and fill in the following information:
After executing the above steps, each automatic build will return the execution result of the test code to testlink. You can view the passing situation of each automated case on testlink!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.