当前位置:网站首页>Test the interface between app and wechat applet
Test the interface between app and wechat applet
2022-06-21 13:10:00 【zyf20010801】
about web End sum app For the interface test of the end , They are all through the request method ,url And delivered body Parameter for interface request , difference web and app The difference is that header Different requests . The difference is this header Medium User-Agent Parameters .
web frequently-used User-Agent Parameters :
Chrome:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16 Firefox :
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
Mozilla/5.0 (X11; U; Linux x86_64; zh-CN; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10
app frequently-used User-Agent Parameters :
IPhone:
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5 Android
Mozilla/5.0 (Linux; U; Android 2.2.1; zh-cn; HTC_Wildfire_A3333 Build/FRG83D) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
Mozilla/5.0 (Linux; U; Android 2.3.7; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
One 、 How to proceed app Interface test with wechat applet
For interface testing, you can do interface testing in two ways , One is to test the interface of tools , One is to write your own scripts for interface testing .
Focus on using python+requests Script to carry on the mobile phone app Interface test with wechat applet
Two 、 Use python+requests Conduct app Interface test with wechat applet
Scripting and testing web It's the same , The only thing that changed is header In header request User-Agent The parameter needs to be changed to the mobile phone request .
This is the request to visit Baidu mobile phone terminal .
3、 ... and 、 Use interface testing tools to do app Interface test with wechat applet
Same change header In the header request user-agent Parameters , The two requests are simulated separately Android and iOS, You can choose from your own situation .
choice Android Request access
This is it. app And wechat applet interface test two methods
Apipost The official link :https://console.apipost.cn/register?utm_source=10009
边栏推荐
- Apache ShardingSphere 5.1.2 发布|全新驱动 API + 云原生部署,打造高性能数据网关
- 使用seaborn绘制热图
- vmware12虚拟机打开报错“\\.\Global\vmx86”: 系统找不到指定的文件。
- centos7 部署mysql 环境
- 5000 word analysis: the way of container security attack and defense in actual combat scenarios
- postgreSQL中的MVCC
- TOOD: Task-aligned One-stage Object Detection
- Kubernetes快速实战与核心原理剖析
- 塔米狗项目解读:济宁华源项目管理有限公司34%股权转让
- Graveyard
猜你喜欢

Application configuration management, basic principle analysis

2022年中国手机银行年度专题分析

华为云发布桌面IDE-CodeArts

居家办公初体验之新得分享| 社区征文

不止于ZeRO:BMTrain技术原理浅析

Kubernetes' fast practice and core principle analysis

Educoder web exercise - validating forms

《网络是怎么样连接的》读书笔记 - ADSL

Isn't this another go bug?

Flink CDC MongoDB Connector 的实现原理和使用实践
随机推荐
Eureka's timedsupersortask class (periodic task with automatic interval adjustment)
Apache ShardingSphere 5.1.2 发布|全新驱动 API + 云原生部署,打造高性能数据网关
Educoder table label - basic table structure
Reading notes on how to connect the Internet ADSL
Graveyard
Libcef common concepts framework features
SCCM creates a client collection based on the installed app and periodically pushes application updates
Memcached(高性能内存对象缓存)
MySQL约束(创建表时的各种条件说明)
塔米狗 热门资讯:厦门产权交易中心再创第一次!
华为云发布桌面IDE-CodeArts
ssh 免密登录
Interpretation of tamigou project: 34% equity transfer of Jining Huayuan Project Management Co., Ltd
漫谈公网网络延迟
uva11300
如何使用搜索引擎?
uva11991
Talk about the delay of public network
小程序直播互动功能运行在App里?
《网络是怎么样连接的》读书笔记 - ADSL