Automated test usage process

1. Background

At present, the test team of the intelligent logistics division has many projects, the tasks at hand are tight, and the amount of regression testing tasks is large. After discussion within the group, a relatively fast and efficient method (automatic interface test type) is adopted, and the main energy is concentrated on the new requirements in the iterative task. In regression testing, automated testing is mainly used to improve testing efficiency.

2. Execute the flowchart, from submitting the test script, executing to generating the report

3. Download and install git.exe, select the default (skip) when installing

Fourth, Git local configuration

After Git is installed, git configuration needs to be done. Open git bash and execute the following two commands respectively

git config --global user.name "username"

git config --global user.email "Email"
The user name and mailbox here are defined by themselves. In order to remember my user name and mailbox are set to the same (such as [email protected]), if you skip the [git configuration] process, it may be later will have a little trouble

 Check whether the information just configured takes effect: git config --list 

Five, SSH configuration

1. Open git bash

2. Execute the command to generate the public key and private key: ssh-keygen -t rsa -C "mailbox" and press Enter 3 times (why you press 3 times, because you are prompted whether you need to set a password, if set every time Using Git will prompt for a password, I just press Enter). A private key id_rsa and a public key id_rsa.pub are generated in the .ssh folder of the default system user directory.

3. Execute the command to view the public key: cat ~/.ssh/id_rsa.pub  

 Six, through the command clone script to the local

git clone http://git.qq.com/luocong/interfaceJmx.git

7. Submit files to the specified git repository

cd interfaceJmx -- switch to the git working directory
git add "Shenhua V1.2.jmx" -- add the test script to the git staging area
git commit -m "add README" -- submit the files in the staging area to the local master
git push -u origin master -- submit the local master to origin

 

8. If you feel that the fifth and sixth points are troublesome to operate through commands, you can download and install the TortoiseGit tool (omitted)

Nine, git project project address

 HTTP access: http://git.qq.com/automation/interfaceJmx

 SSH access: [email protected]:automation/interfaceJmx.git

10. Execute Jenkins build tasks 

①. Open the http://10.6.1.142:8080/jenkins address and select the project to be built

②, execute the build

11. View the test report after executing the build

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324501222&siteId=291194637