# Performance Detection at runtime
The performance detection of cloud testing mainly integrates and improves the experience ratings and the performance diagnostic tools into cloud testing
Experience rating is generally integrated in developer tools, It is a feature that scores the experience of Weixin Mini Program well and badly, checking in real time while the Mini Program is running, analyzing what might be causing the experience badly, locating where the problem is, and making suggestions for optimization.
The performance diagnostic tool is a new Weixin Mini Program performance profiling tool, similar to the experience score, but the items examined are different from the experience score.
Cloud Testing integrated them together and made the following improvements:
1、 Automatically integrate data : Experience scoring and performance diagnostic tools detect projects and use differently, and developers can only run two tools distributed to test.Cloud Testing creatively combines the scoring capabilities of the two tools and automatically produces integrated version test reports
2、 Ports to real-world operations : The native experience scoring capability can only be run in developer tools, and CloudWatch ports it to real-life environments to be more closely related to the user's actual use scenarios.Note: Due to the different environments in which real-world and developer tools operate, a few indicators do not support statistics on real-world machines.
3、 Support for custom weights : Each detection weight of the original tool is fixed.Cloud testing supports developer-defined weights, the same as experience ratings, and each weight of a rated project can be set in Project Management = Run Performance Settings
4、 Generate reports directly : The performance diagnostic tool needs to manually upload JSON data to the developer tool to generate reports.Cloud Testing In test reports, performance reports are automatically generated without the need for developers to manually upload them
5、 and automated testing combined with : Intelligent Monkey testing with cloud testing services,A combination of capabilities such as recording playback, custom testing, and** to detect runtime performance issues Weixin Mini Program **[[TAG-2END]] and exceptions
6、 On-line version : The performance diagnostic tool only supports development and experience versions.In addition to supporting the development and experience versions, cloud testing also supports online testing.
# How to rate
Performance checkCategories such asanomaly detectionandbest practiceswill ultimately be scored according to the respective rules, and the final total score will be converted to a percentage based on the weights of each.
The explaination of each test project can be viewed in Project Management = Run Performance Settings, and supports adjusting the weighting size to your needs to build a scoring system that is suitable for your project
# How to use it
Experience Rating needs to be used in conjunction with Autopilot . Here are the Experience Rating configuration instructions for each Autopilot
| Type of test | Is there an experience rating? | Introductions |
|---|---|---|
| MonkeyTest | yes | **** Experience rating on by default |
| Custom Test (Minium) | yes | Manually open Experience Rating |
| Record playback | yes | Manually open Experience Rating |
| QuickMonkey | no | No experience ratings are supported |
| Startup Performance Analysis | no | No experience ratings are supported |
Please note that when recording playback and custom testing require the user to test, manually open , as shown below.
The results of the experience ratings can be seen in the following figure:
# 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.