api - 我们可以使用 testCafe 自动化 API 吗?
问题描述
Caw 我们使用 testCafe 自动化 API 吗?我需要同时自动化 Web 和 API,我的意思是在 UI 上执行一些操作后,我需要测试相关的 API。
解决方案
我不确定我是否理解您的需求,但如果您想检查 api 请求的结果,我想您需要RequestLogger
: 一个钩子,您可以在某些特定 api 的 url 上添加到您的测试中,然后在您的测试中将能够检查请求包含的内容。
推荐阅读
- plugins - 我可以在 DynamicPropertyInstance 实体上触发插件吗?
- nginx - 在 auth_request 之后调用自定义 nginx 模块
- java - 扫描仪看不到文件 Java
- drag-and-drop - NSTableView 拖动冻结停靠
- python - 如何比较tensorflow中tf.Variable和标量的大小?
- css - 使用角度 7 在多行中有椭圆的问题
- kotlin - Kotlin:在某些对象的某些列表中找到最小元素的第一个索引的最有效方法
- python - 使用 Python 更改 tmux 窗口名称
- javascript - 由于变量碰撞导致的for循环无限循环
- ruby-on-rails - 如何自动将通讯注册添加到您的联系人