brookshi / hitchhiker Goto Github PK
View Code? Open in Web Editor NEWa Restful Api test tool
Home Page: http://www.hitchhiker-api.com
License: Other
a Restful Api test tool
Home Page: http://www.hitchhiker-api.com
License: Other
比如登录,我们准备很多帐号ID和密码,一行一个的txt,body里面就是动态的,有两种场景
第一种:单个动态参数,从文件一次取一个, 如果多个动态参数可能需要对应多个txt文件
{
"account": {{getAcount}}
}
第二种情况是整个参数体JSON都是动态从文件读取的一次读取一个
//body 里面就是一个从文件获取的函数
{{loginData}}
对了,有时候需要将返回结果导出,希望可以提供多个请求的send的时候,返回结果读取解析后导出到文件;下次再上传作为动态参数使用
接口请求返回的结果应该存下来或者下载下来作为其他请求的动态参数使用,比如登录的token就是这种场景,我可以使用一批帐号请求得到一批token,然后将返回结果存下来(可以读取返回结果来组装需要存的结构),并提供一个获取数据的函数;在别的接口里面可以调用这个函数获取动态参数;
{
"token": {{getToken}}
}
现在只能**$variables$**还是太弱了点
实现了上面的两种需求场景,就可以满足所有的接口连续链式调用和压力测试获取参数的问题;
对了,需要解决一个Collection内的接口串行和并行的问题;
很好的值得推广起来的项目,而且看好Go的HTTP/IO性能优势,提了几个建议,望采纳
如果能完美实现动态数据的问题,我觉得能接受付费购买授权,能解决很多中小企业自动化测试的问题;
@brookshi 试试 在一台纯新机器上编译看看.
我这里报 DotHeader[] 和 DotHeader[]|null (可能为空)类型不匹配.
ts --version 2.5.3
目前只能按照天为单位,希望增加分钟和小时
RT 本来是a=b,在脚本里面怎么自动加上hash签名?(只是举例)
按照postman的语法 直接修改request变量提示不存在
Create some variables and save them to environment set, in PostMan, we can use format {{variable_name}}
to access specified variable in request (url, body in json, etc.), how I can access the variable of environment in Hicchiker?
I found Postman pattern doesn't work in Hichhiker.
please advise.
docker部署不支持mysql自定义用户和密码吗
更新0.4版本以后,更改schedule的Period为分钟,然后再修改为天,就出现了以下报错:
Warning Message
save schedule failed, Error: Payload Too Large, Retry 5th time after 32000s
预设的项目Me无法删除吗?删完Env和Sample Collection后也无法删除项目Me,自己新建的项目倒是可以删除
Fetch API cannot load http://www.hitchhiker-api.com/api/user/me. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://hitchhiker-api.com' is therefore not allowed access. The response had HTTP status code 403. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
为了接口安全,有些接口协议会定义签名。
比如使用接口请求参数的 md5 作为签名,然后将签名放在 HTTP Header 中。
请问现在是否可以支持呢?
注册邮件格式存在问题,不支持[email protected]这种格式的
按照要求设置了shedules,但是没有任何地方显示按照预订时间执行了
求解决啊
PS.我是调研一下这个BS版本的postman,看看能不能做接口自动化用
一个建议:
系统提醒通知支持自定义get/post请求或者指定SMTP服务,这样可以自行对接各种各样的聊天机器人实现更方便的自动化提醒,拓展性更强。
如题
如题
压测场景如下,在请求参数中需要有一个随机数之类的ID,请问基于现有的版本,可以实现吗?
编译都过不了.
问题1: Cannot find namespace '_'. (loadsh全局导入了,但是没有配置)
问题2: XXXXX is declared but never used. (肯定是你的本地配置和git上的配置不一样)
很多前端开发都无视npm生态的不稳定性. 不考虑提交的代码重新npm install 还能不能运行(全新安装)
作者也属于其中一员
[2017-09-29 15:16:55.292] [ERROR] console - Error: ER_TRUNCATED_WRONG_VALUE_FOR_FIELD: Incorrect string value: '\xE6\xB5\x8B\xE8\xAF\x95...' for column 'body' at row 1
at Query.Sequence._packetToError (/ssd/mynode/Hitchhiker/node_modules/mysql/lib/protocol/sequences/Sequence.js:52:14)
at Query.ErrorPacket (/ssd/mynode/Hitchhiker/node_modules/mysql/lib/protocol/sequences/Query.js:77:18)
at Protocol._parsePacket (/ssd/mynode/Hitchhiker/node_modules/mysql/lib/protocol/Protocol.js:280:23)
at Parser.write (/ssd/mynode/Hitchhiker/node_modules/mysql/lib/protocol/Parser.js:75:12)
at Protocol.write (/ssd/mynode/Hitchhiker/node_modules/mysql/lib/protocol/Protocol.js:39:16)
at Socket.<anonymous> (/ssd/mynode/Hitchhiker/node_modules/mysql/lib/Connection.js:103:28)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at TCP.onread (net.js:561:20)
--------------------
at Protocol._enqueue (/ssd/mynode/Hitchhiker/node_modules/mysql/lib/protocol/Protocol.js:141:48)
at PoolConnection.query (/ssd/mynode/Hitchhiker/node_modules/mysql/lib/Connection.js:208:25)
at MysqlQueryRunner.<anonymous> (/ssd/mynode/Hitchhiker/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:180:44)
at step (/ssd/mynode/Hitchhiker/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:32:23)
at Object.next (/ssd/mynode/Hitchhiker/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:13:53)
at fulfilled (/ssd/mynode/Hitchhiker/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:4:58)
at process._tickCallback (internal/process/next_tick.js:109:7)
[2017-09-29 15:16:55.292] [ERROR] console -
一个关于用户帐号feture的建议:
对于这类企业内部使用使用系统,最好的用户帐号管理就是支持LDAP
协议, 公司内部帐号都是互通的,完美解决帐号管理和注册的问题;
昨天尝试用nginx代理hitchhiker,发现没代理成功
server {
listen 80 default_server;
server_name $hostname;
access_log off;
location /static/ {
root /etc/hitchhiker;
expires max;
}
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 600;
proxy_read_timeout 600;
proxy_send_timeout 600;
client_max_body_size 1024M;
}
}
哪位大神能指教下
之前注册登录显示类型错误的那种提示,现在显示这个错误{success: false, message: "session is invalid"} 403其他的不知道,我使用的是docker部署啊
hi,还是我,
环境mac,本地部署,
我现在遇到了另外一个问题,注册的时候报错“TypeError: Failed to fetch”,截图如下所示:
Hitchhiker version: Docker v0.1.3
I am facing the problem that invite member (registered) to project doesn't work, nothing happen, so the project just owner now.
我想知道集群多个压力测试节点如何部署和发现测试节点
RT
另外单独提一个点..能不能用户A创建了一个项目之后能主动把用户B打到自己的这个项目来,现在只能发邮件对mail系统和流程都有要求(没外网)
docker版,跑起来怎么是这样?点“try without login”之后,http://ip:8080/api/user/temp 这个请求一直是pending
Hitchhiker version: Docker v0.1.3.
Collections
page.Environment
set.Environment
setActual:
Page will switch to Projects
page
Expects:
If edit environment set from Collections
page, no page switching I think it is better UX.
Please advise.
你好,我使用的是mac电脑,采用的是源码部署方式,在浏览器中输入的url为:http://127.0.0.1:8080/,我点击了“try without login”遇到了"this api does not exist的问题"。
,请求大神帮忙看一下。
还有试用了demo. save as能指定保存到的目录。但不能指定新名字。
Hi,
This might be a dumb question but is there any way or any settings I can use to turn off automatically following redirect?
可以提供选择是下载所有,还是只下载失败的,下载后便于统计分析;
Stress test功能报这个是需要什么?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.