# MiniTest Weixin Mini Program Introduction to Cloud Measurement Services
MiniTest Weixin Mini Program cloud test is a set of self-developed by the WeChat test team, joint WeTest cloud real machine capabilities, jointly launched the Weixin Mini Program automatic test service.The service is cloud-based, enabling developers to quickly and easily implement capabilities such as Mini Program-based real-world automation testing and performance analysis. The service platform features the following features:
- Rich automatic testing capabilities
- Comprehensive performance analysis capability
- Weixin Mini Program Quality testing
- Support Continuous Integration to open up business Devops processes
Cloud Testing Service Video Courses are in production and some videos are available in the WeChat classroom. Feel free to watch them
# Exclusive advantages
Compared to other test platforms, cloud testing services are supported by the **WeChat official test team, and it has exclusive advantages, mainly including:
- WeChat test number solution : Often use their own WeChat ID for automatic operation, may be determined by WeChat security for black production resulting in the title.Cloud Testing offers 24 virtual test accounts and exclusive support for authentic account authorization testing](mock_real_account) , which is safer without blocking risk.
- Supports multiple Weixin Mini Program versions : exclusive support for Mini Programs [versions in development (preview version]]](preview_test.md) , experience and online versions to test multiple versions, intervene earlier to achieve test left-shift
- Image contrast ability : Image comparison Capability As a complement to automated testing capabilities, it can be used to compare stable Weixin Mini Program pages to verify whether the original functionality has been changed by whether the UI is consistent when a version is updated
- Exclusive support for real-world experience scores capabilities , more closely aligned with the user's actual use scenarios and detect runtime performance issues
- Performance data acquisition is more accurate : Performance data obtained through the WeChat client protocol reporting method are consistent with the We Analytics statistics, and data statistics are more accurate
- Free use , provide weekly free use quota , meet the vast majority of project self-directed testing needs
# Extensive automation testing capabilities
Combining factors such as the complexity of different scenarios and the cost of developer learning, cloud testing services provide the following automation capabilities:
| Test capabilities | Highlighting strengths | Note | Applicable scenarios | Examples of reports |
|---|---|---|---|---|
| Intelligent Monkey | Accessible, zero learning cost, and page coverage through intelligent click strategy | It does not support complex operations such as input, uploading pictures; The page logic could not be checked | Quick smoking test | MonkeyReport |
| Record playback | Zero code to generate use case scripts; Quickly generate use cases, low learning costs, and high efficiency | Use case adjustments are not as flexible as custom tests | Simpler use cases, automated regression testing | Record and playback reports |
| Custom Tests | Full customization of test scenarios; High flexibility and comprehensive capabilities; Data Driven Testing (DDT) | Need to write Python scripts, there is a certain cost of learning | More complex use cases and scenarios | Minium Report |
# Comprehensive performance analysis capabilities
Weixin Mini Program performance tests can be mainly divided into startup performance test and runtime performance test.
| Operational phase | Cloud measurement capabilities | advantage | Adaptation scenarios |
|---|---|---|---|
| Weixin Mini Program Start | Startup Performance Specialized Tests | 覆盖首次访问和非首次访问情况 详细的测试报告,并给出优化建议 | Optimize Weixin Mini Program startup time |
| 小程序运行时 (和自动化测试能力结合使用) | Real-time Experience Rating | 页面运行时性能检查 异常情况检测 最佳实践&建议 | 优化运行时页面性能 页面异常检查 |
| Resource usage analysis | 获取运行时CPU,内存等性能数据 和现网大盘数据对比 | Optimize resource usage at runtime |
# Weixin Mini Program Quality testing
Cloud testing services combine automated testing with startup performance testing to do a comprehensive quality inspection in the following areas and provide detailed quality inspection reports and evaluation information:
- Startup performance
- Runtime Performance
- compatibility
- Network performance
Click to view quality inspection report sample , use the document to refer to Weixin Mini Program quality inspection
# Support for continuous integration
Cloud testing services support businesses to integrate testing capabilities into various environments of the R & D process, open up DevOps processes, achieve continuous integration, and improve R & D efficiency and quality.
- Support for multiple Weixin Mini Program versions : Cloud Test Service Support Take-Up [ **In Development **(preview_test.md) 、 Experience version , online version Mini programs to facilitate business teams to test at all stages of the R & D process
- ****** : The https interface is tested in a way that also allows users to share test reports as HTTPS links, making it easy for team members to quickly see the report details and test results
- Task End Notification Configuration : Cloud testing service support Configure mailbox and mobile phone number Information, the user will be automatically notified of the end of the test task
# Free to use
Cloud Test Service provides 150 minutes of free testing per week for Weixin Mini Program developers**
Note that the test duration here refers to the time the user actually executes the test case , download WeChat package, and other processes such as initial deployment of the real machine are not included in the test time, so the actual execution time of the real machine will be greater than the test time deducted.In general, the free test length can meet the vast majority of project self-directed test requirements.
At the same time, to facilitate users debugging use cases during initial use, the cloud testing service provides an additional 150 minutes for each project to be applied for once, automatically deducted when the free time is not enough.
Please refer to ** Test Duration Usage Instructions **
# Support the purchase of additional hours
When some projects are complex and use cases are large, and the free time is not enough to use, you can purchase them at the WeChat service marketplace or Tencent Cloud, which can be referenced in the documentation to purchase additional time.
For paying users, in addition to adding extra hours, the following advanced capabilities can currently be supported:
- Model Selection: Select a specified test model when supporting testing. 300 A variety of models for users to choose from, covering the vast majority of brands currently on the market, with high and low variants
- Compatibility test: Support multiple models to be submitted at once.
- Quick Test: Test with a proprietary cloud machine,The original WeChat initialization process took 10-15 minutes to 2-3 minutes completed, greatly improving test efficiency and obtaining test results quickly.
- Poor network testing: You can use a weak network proprietary cloud to see the performance of Weixin Mini Program in a very weak network