释义 | shortcut |
---|
Beautify | Cmd + B |
释义 | shortcut |
---|
Open New Tab | Cmd + T |
Close Tab | Cmd + W |
Force Close Tab | Cmd + opt + W |
Switch To Next Tab | Cmd + shift + ] |
Switch To Previous Tab | Cmd + shift + [ |
Switch To Tab at Position | Cmd + 1 ... 8 |
Switch To Last Tab | Cmd + 9 |
Reopen Last Closed Tab | Cmd + shift + T |
释义 | shortcut |
---|
Request URL | Cmd + L |
Save Request | Cmd + S |
Save Request As | Cmd + shift + S |
Send Request | Cmd + enter |
Send And Download Request | Cmd + opt + enter |
Scroll To Request | Cmd + opt + 上 |
Scroll To Response | Cmd + opt + 下 |
释义 | shortcut |
---|
Search Sidebar | Cmd + F |
Toggle Sidebar | Cmd + \ |
Next Item | 下 |
Previous Item | 上 |
Expand Item | 左 |
Collapse Item | 右 |
Select Item | Enter |
Open Request In A New Tab | Cmd + shift + click |
Rename Item | Cmd + E |
Group Items | Cmd + G |
Cut Item | Cmd + X |
Copy Item | Cmd + C |
Paste Item | Cmd + V |
Duplicate Item | Cmd + D |
Delete Item | delete |
释义 | shortcut |
---|
Zoom In | Cmd + + |
Zoom Out | Cmd + - |
Reset Zoom | Cmd + 0 |
Toggle Two-Pane View | Cmd + opt + V |
Switch Workspace View | Cmd + . |
释义 | shortcut |
---|
New... | Cmd + N |
New Postman Window | Cmd + shift + N |
New Runner Window | Cmd + shift + R |
New Console Window | Cmd + shift + C |
Find | Cmd + shift + F |
Import | Cmd + O |
Manage Environments | Cmd + opt + E |
Settings | Cmd + . |
Submit Modal | Cmd + enter |
Open Shortcut Help | Cmd + / |
Postman 上传文件请求open in new window
@Override
public ResultUtil<Boolean> oxUpload(MultipartFile file) {
try {
byte[] bytes = file.getBytes();
String jsonStr = new String(bytes);
this.ooxxService.ooxxData(jsonStr);
return ResultUtil.success(true);
} catch (ResultException e) {
throw e;
} catch (Exception e) {
e.printStackTrace();
}
}
postman运行collection上传文件脚本 console报错 Form param file
, file load error: PPERM: insecure file access outside working directory解决办法open in new window
Form param file
, file load error: PPERM: insecure file access outside working directory
- 开启《Read files outside working directory》
var req = JSON.parse(request.data);
var credential = req.credential;
var data = "plaintext=" + credential;
const echoPostRequest = {
url: pm.environment.get("url") + '/ooxx/sm2',
method: 'POST',
header: 'Content-Type: application/x-www-form-urlencoded',
body: {
mode: 'x-www-form-urlencoded',
raw: data
}
};
pm.sendRequest(echoPostRequest, function (err, res) {
console.log(err ? err : res.json());
});
const echoPostRequest = {
url: pm.environment.get("url") + '/ooxx/App/sign',
method: 'POST',
header: 'Content-Type:application/json',
body: {
mode: 'raw',
raw: request.data
}
};
pm.sendRequest(echoPostRequest, function (err, res) {
console.log(err ? err : res.json());
var rst = res.json();
postman.setGlobalVariable("ot", rst.ot);
postman.setGlobalVariable("secretKey", rst.secretKey);
});
const echoPostRequest = {
url: pm.environment.get("url") + '/ooxx/App/sign',
method: 'POST',
header: 'Content-Type:application/json',
body: {
mode: 'raw',
raw: request.data
}
};
pm.sendRequest(echoPostRequest, function (err, res) {
console.log(err ? err : res.json());
var rst = res.json();
postman.setGlobalVariable("ot", rst.ot);
postman.setGlobalVariable("secretKey", rst.secretKey);
});
pm.sendRequest("https://postman-echo.com/get", function (err, response) {
console.log(response.json());
});
var data = JSON.parse(responseBody)
pm.globals.set("ot", data.ot);
pm.globals.set("secretKey", data.secretKey);
pm.globals.get("variable_key");
pm.globals.set("variable_key", "variable_value");
pm.environment.get("variable_key");
pm.environment.set("variable_key", "variable_value");
pm.collectionVariables.get("variable_key");
pm.collectionVariables.set("variable_key", "variable_value");
局部变量不会在会话之间持久存在,但是允许您在执行请求或收集/监视运行期间临时覆盖所有其他范围。
pm.variables.set("variable_key", "variable_value");
pm.variables.get("variable_key");
两边要加引号