Run Android lint and monkey in Jenkins
Go to the configuration page of the corresponding job.
Lint:
1. Add lint in the Add build operation
2. Add lint pass standards in advanced
Monkey
1. Before running the monkey, install the apk package created this time on the simulator or mobile phone, and add "install Android package" in the Add build step.
After the build is successful, the apk will be generated under the path of the corresponding version, for example:
At the same time, what is the wZ metadata of the current jenkins project? Http://www.bkjia.com/kf/ware/vc/ "target =" _ blank "class =" keylink "> alias/nS1M7Sw8fU2kFQSyBmaWxl1tDM7tC0tcS + alias =" here write picture description "src =" http://www.bkjia.com/uploads/allimg/160421/04243R222-3.png "title =" \ "/>
In addition, add Archive the artifacts after the build
2. Add the monkey tester in the Add build operation.
Enter the package name in Packages IDs.
Event Count: number of random events
Delay between events add event interval (MS)
For example, 1500x200 ms, it takes 5 minutes to theoretically finish the monkey operation.
Add the monkey result in the Post-build operation.
Filename,
If you are empty, create a file named monkey.txt in the root directory of your project. Note that the local path where the remote project code is downloaded is not the Jenkins path.