Introduction to Jmeter+Ant+Git+Jenkins continuous integration

[Software Testing Interview Crash Course] How to force yourself to finish the software testing eight-part essay tutorial in one week. After finishing the interview, you will be stable. You can also be a high-paying software testing engineer (automated testing)

An introduction
1. What is ant?   

ant is a build tool

2. What is build

   The concept can be found everywhere. To put it figuratively speaking, you have to take the code from somewhere, compile it, copy it to somewhere, etc. Of course, it is not only that, but it is mainly used for this.

3.Benefits of ant

   Cross-platform - Because ant is implemented using java, it is cross-platform

   Easy to use - compared with ant's brother make

   Clear syntax - also compared to make

   Powerful functions - ant can do many things. Maybe you have used it for a long time and you still don't know how many functions it can have. When you develop some ant plug-ins yourself, you will find more functions.

4.ant’s brother make

   Most of the things that ant does are done by a program called make, but the objects are different. Make is more used in c/c++, and ant is more used in Java.

The main purpose of Ant is to automate what you want to do, without you having to do it step by step manually. Because it has built-in functions such as javac, java, creating directories, copying files, etc., you can directly click on the Ant file to compile and generate your project. ;

 2. Build ant environment
1 Download and install
(1) Download address http://ant.apache.org/bindownload.cgi

(2) Unzip it to the specified directory

 

(3) Configure environment variables (in window)
       Add ANT_HOME variable: D:\apache-ant-1.10.3
       Add Path variable: %ANT_HOME%\bin
       Add classpath variable: %ANT_HOME%\bin
4. Installation verification
      To verify the installation result, enter ant -v on the command line. If the version information appears, the installation is successful.
        Jmeter and Ant integration
purpose: Mainly used for interface regression or simple viewing of performance.
        First write the test plan in jmeter and save it as a jmx file. Execute the ant command in the corresponding path of the cmd window. The execution of the jmx plan and the generation of the jtl file will be completed, and the jtl file will be converted into an html page for viewing.
It can be later expanded to integrate with Jenkins and send via email.
Three introductions to Git
(1) Git is a free, open source distributed version control system used to handle any small or large project in an agile and efficient manner.

(2) Git is an open source distributed version control system that can effectively and quickly handle version management of projects from small to very large.

(3) Git is an open source version control software developed by Linus Torvalds to help manage Linux kernel development.

(4) The official website address is: https://git-scm.com/

        After the git installation is completed, click git-git bash in the menu. Something similar to a command line window will be displayed, indicating that the git installation is successful.

After git is installed, an ssh connection is required before it can be used. .

4. Introduction to Jenkins
        Jenkins is a powerful application that allows continuous integration and continuous delivery of projects, regardless of the platform used. This is a free source code that can handle any kind of build or continuous integration. Integrating Jenkins can be used for some testing and deployment techniques. Jenkins is a software that allows continuous integration.

Open source Java language development continuous integration tool supports CI and CD.

Easy to install, deploy and configure: It can be installed through yum, or downloaded war package and quickly installed and deployed through docker container, which can facilitate web interface configuration management.

Message notification and test report: Integrate RSS/E-mail to publish the build results through RSS or notify via e-mail when the build is completed to generate a JUnit/TestNG test report.

Distributed build: Supports Jenkins to allow multiple computers to build/test together.

File identification: Jenkins can track which build generates which jars, which build uses which version of jar, etc.

Rich plug-in support: With support for extension plug-ins, you can develop tools suitable for your own team, such as git, svn, maven, docker, etc.

jenkins installation
less /var/log/jenkins/jenkins.log //Query admin password

Visit http://ip:8080/ to install

jenkins related directories:

rpm -ql jenkins #View jenkins installation related directories

Installation directory/var/lib/jenkins

Configuration file/etc/sysconfig/jenkins

The following are supporting learning materials. For those who are doing [software testing], it should be the most comprehensive and complete preparation warehouse. This warehouse has also accompanied me through the most difficult journey. I hope it can also help you!

Software testing interview applet

A software test question bank that has been used by millions of people! ! ! Who is who knows! ! ! The most comprehensive interview test mini program on the Internet, you can use your mobile phone to answer questions, take the subway, bus, and roll it up!

Covers the following interview question sections:

1. Basic theory of software testing, 2. web, app, interface function testing, 3. network, 4. database, 5. linux

6. Web, app, interface automation, 7. Performance testing, 8. Programming basics, 9. HR interview questions, 10. Open test questions, 11. Security testing, 12. Computer basics

How to obtain documents:

This document should be the most comprehensive and complete preparation warehouse for friends who want to engage in [software testing]. This warehouse has also accompanied me through the most difficult journey. I hope it can also help you!

 

Guess you like

Origin blog.csdn.net/qq_73332379/article/details/133205614