![]() ![]() The Jenkins home page – > Manage Jenkins – > Manage plugins – > find and install the HTML publisher plug-in.Generate HTML report with Newman, and display it to Jenkins through HTML publisher plug-in. Looking at the build results in console output, it’s not easy to read and beautiful, so we need to improve it. More concise and beautiful construction report: HTML report Success is shown in green, at a glance.ġ0. Re build, check the email, the content of the email becomes easy to read, and the red display of sending error is very eye-catching.Go to the test details page – > configure – > editable email notification – > Default Content configuration template.Use the groovy standard HTML template provided by email extension plugin: groovy-html.template Improvements will be made in the next step. It is not very intuitive to view the construction results in console output according to the link. Project constructionĪfter the configuration of the above steps, you will receive an email after the construction is completed. – configure editable email notification 8. – post build actions: editable email notification Go to the test details page – > configure – > post build actions – > add post build action (editable email notification).Jenkins home page – > Manage Jenkins – > configure system – > extended e-mail notification, configure mail server.Jenkins home page – > Manage Jenkins – > Manage plugins – > find and install the email extension plugin – > after the plugin is installed, you need to restart the Jenkins service.The mail configuration steps are as follows: Go to the test details page – > configure – > build – > add build step – > execute windows batch command – > commandĪfter Jenkins builds, send an email to inform the build results.Install nodejs and Newman on machine a (Jenkins server).Newman is based on nodejs, so you need to install nodejs first. Newman uses the command line to execute postman’s collection. It can be built on a regular basis every day. Build triggers set to rebuild when the source code changes.Go to the project test details page – > configure – > source code management.Jenkins home page – > Manage Jenkins – > Manage plugins – > find and install the team Foundation Server plug-in.in the next steps, we need to install some services on this machine. We call the machine to build Jenkins server as machine A. The following project structure is shown: TFs creates the project leyserkids, appends the JSON file exported by postman for resource version management.Export the collection and envrionment of project leyserkidsapi in postman to JSON file.…īecause our project uses TFs for source management, take TFs as an example. Refer to the documentation on the postman website. The second step, of course, is for postman to create his own project. Web API test tool selectionĪt present, there are many tools for API testing in the market, such as postman, soapUI, Y api, httprunner, etc.Īfter many attempts, we finally decided to make a choice between postman and soap UI. This article will explain the continuous integration solution step by step, hoping to help you. All other links except interface development are completed automatically without too much human intervention. In order to quickly identify problems and reduce repetitive processes to save time, cost and workload, we need a complete set of continuous integration solutions. In the last article, we have completed the selection of API testing tools, and then we have a series of periodic development and testing processes: interface development, check-out code, run tests, record results, and send reports. Reprint please indicate the source: grapevine official website, grapevine provides professional development tools, solutions and services for developers, enabling developers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |