In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Automated testing seems to be inseparable from jenkins, well, in fact, I do not think it is really necessary to rely so much, but this is the reality, let's be vulgar, this time we will see how to integrate
1. There is no problem with the script.
2. Testng and reportng are all right. Don't ask me how to do it.
3. Ant (https://ant.apache.org/bindownload.cgi), configure environment variables, and go to google by yourself.
4. Jenkins goes to the official website to download the windows version (https://jenkins.io/download/), and you can install it all the way to next.
Next, let's talk about the logic of integration: jenkins > ant (build.xml) > script, the core of which is the writing of build.xml.
The content of build.xml is as follows, and the path in it needs to be written according to the actual situation.
5. Start the jenkins service, and the browser visits http://localhost:8080 to see the page in a moment (if it is the latest version of jenkins, you need to have an installation process, it is all simple in English, it is not difficult, and children's shoes can't google themselves).
6. System management > plug-in management, install AntPlugin plug-in, TestNG Results Plugin plug-in and HTML Publisher plugin plug-in (need to install × × ×, otherwise the failure rate is high)
7. System management-> script command line, enter the following command, and run (modify the policy to allow external js, css, etc., to run and display, avoid the appearance of white pages):
System.setProperty ("hudson.model.DirectoryBrowserSupport.CSP", "sandbox; default-src 'self';")
8. Create a new free-style job
9. Run the view report
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.