SO中文参考
首页
(current)
程序语言
c
java
python
c++
go
javascript
swift
c#
操作系统
linux
ubuntu
centos
unix
数据库
oracle
mysql
mongodb
postgresql
框架
node.js
angular
react-native
avalon
django
twisted
hadoop
.net
移动开发
android
ios
搜索
空手道框架:html 中的 api 响应。当我尝试保存响应时,karate.readAsString() 抛出错误400 请求标头或 Cookie 太多...</desc> <question vote="1"> <p>我正在使用空手道框架,我收到 html 格式的 api 响应,但我在验证时遇到问题</p> <p>回复:-</p> <pre><code><html> <head><title>400 Request Header Or Cookie Too Large</title></head> <body> <center><h1>400 Bad Request</h1></center> <center>Request Header Or Cookie Too Large</center> </body> </html> </code></pre> <p>我如何提取:-</p> <p>标题中的“400 请求标头或 Cookie 太大” 来自中心的“请求标头或 Cookie 太大” ----------x--------------x----------------x----- --------</p> <p>我的代码:</p> <pre><code>Given: xxx Whwn: xxx Then status 400 * print 'printing response' * print response * def text = karate.readAsString(response). #throws error #(No such file or directory) * def token = karate.extract(text, ??? , ???) </code></pre> <p>请帮忙。预先感谢</p> </question> <answer tick="false" vote="0"> <p>在这种情况下,<pre><code>response</code></pre>已经是一个字符串,所以只需使用它即可。参考:<a href="https://github.com/karatelabs/karate#responsetype" rel="nofollow noreferrer">https://github.com/karatelabs/karate#responsetype</a></p> <pre><code>* def token = karate.extract(response, ??? , ???) </code></pre> </answer> </body></html>
问题描述
投票:0
回答:0
api
automated-tests
karate
最新问题
Angular 分页生成错误的页数
如何每页只显示一次表格行?
如何在WordPress中实现同一页面的多个分页
当用户使用 React Router v6 手动输入页面 href 时,如何防止 React Spa 中的导航?
BigQuery Python 笔记本手动运行正常,但在计划时失败
JS:对Eventloop和全局执行上下文的疑惑
停止 xunit 生成全局使用
弹性项目不收缩(顺风CSS)
UICollectionView ClipsToBounds 无法与分页正常工作
在 Android 上禁用 html5 视频标签中默认的丑陋海报图像
分页:存储搜索结果
将 URLSession.DataTaskPublisher 转换为未来发布者
使用 Win32 API 查找图标资源中的图标数量
SQL Select 没问题,但 SQL update 返回错误。我错过了什么?
DocumentDB 使用存储过程进行分页?
Mod 重写可选参数
显示 tiff 文件
Springboot:在哪里扩展UserDetailsService?
如何将 TEMPLATE 元素附加到 Shadow dom?
在 Traefik 背后部署 OpenSearch
© www.soinside.com 2019 - 2024. All rights reserved.