# Intelligent Monkey Extension
To help you get started quickly, this section document's video tutorial is available on the WeChat Classroom
Intelligent Monkey provides intelligent algorithms to help users automatically traverse, some users may have advanced needs on this basis, such as:
- Weixin Mini Program Need to perform some specified operations to display, such as the need to login to enter the user name password, to access the normal content of the Mini Program
- Hope to be able to traverse the specified pages to improve test page coverage
- In a specified page, you want to click as many of the specified page elements as possible, such as test page stability
In order to meet the different needs of users, the cloud measurement service has expanded the intelligent Monkey, mainly including:
- Front Action : Supports user configuration of Monkey's front steps, which perform specified actions before running Monkey
- Specified page : Support configuration of multiple Path + Query, after the pre-step operation, directly pull up the specified page
- Different modes : Supports two successor modes to meet different user needs
After the extension, Monkey's execution process is shown in the diagram:
1、 Does the task have a pre-emptive operation, and if there is a preemptive operation perform the pre-emption operation first
2、 Whether the task is configured to specify the page list, if specified, in the preceding operation (if any) after the completion of the execution, will first in turn with path + query pull up the page list
3、 Start intelligent exploration according to the configuration's succession mode
- The intelligent exploration is complete, the task is completed, the results are collected and reported, and the test report is generated.

# Use Procedure
# 1. New test plan
After the user opens the cloud test plug-in, they can click ontest case management=test planto go to the test plan page
Click on the upper right cornerto create a new test plan, in the test plan window, according to the project needs to configure the extension information, there are mainly the following:
# Forward steps
Cloud Beta Services support user configuration of Monkey presteps. There are currently two ways to specify a pre-step
- Minium: You need to write a minium script, upload it to the cloud test, and then select the case to execute.Specific reference custom test
- Record playback: You need to record the presteps on the developer tools, sync them to the cloud test, and then select the case to execute.Please refer to
After the successful configuration, before the intelligent Monkey test begins, first executes the specified pre-step Case , and then continues the subsequent execution.
Special advice: users can perform the next pre-step use case first with recording playback or custom tests to confirm that the execution was successful and then configure the pre-step to facilitate troubleshooting.
If the execution fails, the cloud test service allows the user to choose whetherto interrupt the testorto continue the test.

# Configure the specified page, select Monkey mode
The cloud testing service allows users to configure multiple specified pages and parameters, and after the preceding steps (if any) have been executed, the configured page will be directly opened to check for exceptions such as JsError or black and white screens.
After traversing the specified page, the platform supports two custom modes:
- Free Exploration : Continue the original intelligent exploration logic, giving priority to finding untraversed pages
- Key coverage : Go back to the specified page and click on as many elements of the specified page as possible

# 2 Create a test task
After entering the cloud test service, click New Task at the top right of the page, and select the test type Monkey , select the corresponding custom Monkey test plan to create a new task. Special reminder: The time spent on the pre-step is included in the test duration - for example, the maximum test duration is 20 minutes, the pre-steps are executed for 10 minutes, and the intelligent Monkey continues to execute for 10 minutes.

# 3. View the report
If a pre-step is configured, the pre-step execution results are given in the test report, and in the use case execution results detailed by the device, thepre-stepTab shows the execution of the pre-steps

# More References
# I need help.
If you have any suggestions or needs, welcome to need help page, scan the code to join the cloud test official enterprise micro group, contact the group main feedback.