第7篇-Mac电脑使用Postman输出报告

【API接口工具】postman-Mac版安装 百分之50时间在调试接口; 百分之50时间在写代码; 百分之30时间在扯皮,其中还包含了和API接口扯皮 所以使用一个方便快捷的API开发测试工具起码节省百分之30的调试和扯皮的时间。 呃!多了30哈!那是因为加班了嘿! 开发也可以像流水一样丝滑!... 阅读详情

目录

一、环境搭建

二、安装步骤

三、问题及解决


一、环境搭建

Postman = 最新版本即可

nvm = 0.39.3

node.js = v20.2.0 (最好选择 14版本的安装,稳定+不会轻易出现问题)

npm = 9.6.6

newman = 5.1.2(这个版本关系到与另一测试报告版本的兼容)

二、安装步骤

1、下载Postman

2、下载Node.js

这里使用nvm安装方式,首先通过brew安装nvm

brew update brew install nvm

配置 nvm 环境变量。在终端中执行以下命令:

vim ~/.bash_profile

echo 'export NVM_DIR=~/.nvm' >> ~/.bash_profile echo 'source $(brew --prefix nvm)/nvm.sh' >> ~/.bash_profile

立即应用更改

source ~/.bash_profile

测试安装是否成功。在终端中运行以下命令

nvm --version

安装指定版本的Node.js

nvm install 14.17.0

验证Node.js是否安装成功

node -v

3、安装newman

sudo npm install -g newman

4、验证是否安装成功

newman -v

5、安装报告

nmp install -g newman-reporter-html

6、导出接口集合

7、在终端运行集合并指定报告

newman run 文件名(直接拖进去就行了) -r html

8、在集合当前目录能看到newman文件夹, 点进去能看到报告

这个报告不兼容mac电脑, 换一个报告就行了

三、问题及解决

问题及解决

1、安装npm失败

答:  在命令前加上sudo,确定各个工具的版本是否兼容

2、安装报告失败

答:报告与其他工具版本不符

3、mac环境下客户端Postman无法导出集合

因为: 客户端的地址发生修改,与云端的地址无法呼应,故此本地导出无反应

答:前往浏览器端手动导出

postman黑屏问题 mac电脑 最近运气确实不咋地,水逆的不行,postman用的好好的,然后突然打不开了,打开加载一会就是黑屏,然后也关不了,只能通过任务管理器kill掉。折腾了我一天,才解决掉,记录一下,希望你们碰到这个问题的时候能有帮助,不,希望你们别碰到这个问题。 阅读详情

相关推荐

Postman 接口自动化测试高级进阶详解

Postman支持JavaScript,它允许用户向请求和集合添加动态行为。通过使用JavaScript脚本,可以构建包含动态参数的请求,在请求之间传递数据。用户可以在下面的两个事件流中添加JavaScript代码。在请求发送到服务器之前,添加作为“Pre-request Script”选项卡下的预请求脚本。在收到响应之后,添加作为“Tests”选项卡下的测试脚本。具体如图所示:用户可以将预请求和测试脚本添加到一个集合、一个文件夹、一个请求中。1. 为集合添加脚本。

悦分享 1361

Mac 用户必看:Postman 下载与安装指南

本文将为 Mac 用户提供一份详细的 Postman 下载与安装指南,涵盖了从下载、安装到设置的全过程。

主要分享测试的学习资源,帮助快速了解测试行业,帮助想转行、进阶、小白成长为高级测试工程师。 1万+

一文详解接口测试(调试)工具postman的安装(完全卸载)和使用以及接口管理

一文详解接口测试(调试)工具postman的安装(完全卸载)和使用以及接口管理、身份验证等

念兮为美 5410

postman安装使用(mac)

postman用于测试http协议接口,无论是开发、还是测试人员,都有必要学习使用postman来测试接口,用起来非常方便。postman可以直接在chrome、safari上安装插件,也可以在电脑本地安装postman客户端工具。也就是说postman可作为适用于mac、windows、linux操作系统的本机桌面应用程序使用。第三方网站下载官网。

cyhysr的博客 7638

Postman的Mac安装与使用教程

Postman 是一款流行的API开发和测试工具,它为开发者提供了一个直观的界面来构建、测试和使用HTTP请求。无论是调试RESTful服务还是开发API,Postman都能极大提高效率,它支持发送各种HTTP请求,并能够查看服务器响应。Postman的用户界面直观且功能强大,它被组织成几个主要的区域,以帮助用户有效地进行API测试。首先,我们来了解Postman的界面布局和主要的功能区划分。

weixin_35950531的博客 2107

postman Mac版

postman是接口请求工具,最新的postman只能联网创建工作区域,特意找了一个之前的版本,不需要联网就可以使用本地文件夹进行归档

Mac电脑安装Postman教程

Postman 是一款非常常用的 API 调试工具,支持接口测试、自动化测试等功能,本文将分享在 Mac 电脑上安装 Postman 的完整步骤。

weixin_53881505的博客 6050

SCDM学习笔记(5)

几何前处理后一般会获得几何的固体区域,然而当进行流体仿真的时候是对流体的区域进行计算的。因此,如何快速地从固体的几何模型获得流体的几何模型是一个重点问题。 流体问题一般可分为内流场与外流场问题,对于内流场问题,SCDM有专门的处理工具 工程图纸大致如下: 要创建这个几何的大致策略是画出截面的圆形,再画出轴线,通过扫掠的方式建立几何。 以上是mixing的国体区域,通过体积抽...

diyhoo的编程小屋 6359

【软件安装】如何在Mac 电脑上安装Postman?

了解下Postman是干什么的如何在Mac电脑上安装 Postman?

前端相关 4068

中山大学_数据科学与计算机_预推免

前言 2019 年 9 月中旬是中山大学预推免时间,本人没能进到夏令营,但是最后在预推免上岸也算不幸中的万幸。 记忆不一定准确,但希望能帮到他人。 想看 流程 的可以直接看总结,正文部分有本人心路历程。 预推免 中山大学的预推免大致可以分为 报道,机试,面试 三大部分,而且尤其是面试,所有人加起来总时长 3 天,幸运的是,本人被安排在第一天的下午第一场,上午就是机试,报道,机试,面试,无缝衔接。 ...

一把健 5211

Vivado 2018.3实战:用IDELAYE3和ISERDESE3搞定高速ADC数据采集(附仿真源码)

本文详细介绍了在Vivado 2018.3中使用Xilinx UltraScale架构的IDELAYE3和ISERDESE3原语实现高速ADC数据采集的实战方法。通过分析5GHz采样系统的时序挑战,提供从PCB布局到Vivado实现的完整解决方案,包括精密时序校准、多相位数据重组及系统级调试技巧,并附赠仿真源码助力工程师快速掌握高速数据采集技术。

weixin_30567225的博客 584

mac系统postman+newman生成测试报告

mac系统postman+newman生成测试报告 首先,在安装postman的时候不会安装Newman,所以需要我们安装Newman,Newman的按照借助node.js 1、安装node.js 地址:https://nodejs.org/en/ 选择相应的系统,然后就是傻瓜式安装 安装完成后node -v检查是否安装成功。 2.使用sudo npm install -g newman 命令:这是需要管理员密码的,输入密码后一分钟可能就安装完了。 newman -v检查是否安装成功 3.安装newm

qq_42572386的博客 5619

超分算法 SwinIR: Image Restoration Using Swin Transformer

这篇文章结构比较简单,如果看过Swin-Transformer的话就没什么难点了。作者引入Swin-T结构应用于低级视觉任务,包括图像超分辨率重建、图像去噪、图像压缩伪影去除。网络由一个浅层特征提取模块、深层特征提取模块、重建模块构成。重建模块对不同的任务使用不同的结构。浅层特征提取就是一个3×3的卷积层。深层特征提取是k个RSTB块和一个卷积层构成。RSTB(Res- SwinIR: Image Restoration Using Swin Transformer[ICCV 2021]Abstract1.

qq_45122568的博客 1万+

如何使用setup-new-computer-script一键配置新Mac?完整安装指南与避坑技巧

你是否刚拿到一台全新的Mac电脑,却为繁琐的开发环境配置而头疼?别担心,今天我要为你介绍一个终极解决方案——**setup-new-computer-script**,这是一个专门为开发者设计的Mac一键配置脚本,能够让你在30分钟内完成原本需要2-5天的开发环境搭建工作!🎉 ## 什么是setup-new-computer-script? **setup-new-computer-scri

gitblog_00367的博客 927

Python 领域 vllm 知识蒸馏的实践经验

知识蒸馏(Knowledge Distillation)是一种将大型、复杂模型(教师模型)的知识转移到小型、高效模型(学生模型)的技术。在大型语言模型(LLM)时代,这项技术变得尤为重要,因为它可以在保持模型性能的同时显著降低计算资源需求。本文专注于在Python生态中使用vLLM(Very Large Language Model)框架实现知识蒸馏的实践经验。vLLM是一个专为大型语言模型设计的高效推理和服务框架,它通过创新的注意力机制和内存管理技术,显著提高了LLM的推理速度。

AI Python 编程之道的博客 779

时间门控拉曼进展

拉曼光谱就像是用光给分子拍“指纹照”,通过激光照射样品,散射光会揭示样品的分子结构。但问题来了,样品有时会发荧光,就像拍照时闪光灯太亮,把指纹照模糊了。时间门控拉曼光谱技术就像加了个“快门”,只在拉曼信号出现的那一瞬间开门,把慢吞吞的荧光挡在门外,这样就能拍到清晰的“指纹”。

qq_53529450的博客 538

Postman使用详解

一、Postman背景介绍 用户在开发或者调试网络程序或者是网页B/S模式的程序的时候是需要一些方法来跟踪网页请求的,用户可以使用一些网络的监视工具比如著名的Firebug等网页调试工具。今天给大家介绍的这款网页调试工具不仅可以调试简单的css、html、脚本等简单的网页基本信息,它还可以发送几乎所有类型的HTTP请求!Postman在发送网络HTTP请求方面可以说是Chrome插件类产品中的代...

大痴小乙的博客 150万+

在 Linux 64 位上遭遇 Signal 7 与 ST22 SYSTEM_CORE_DUMPED:从 es/implementation=std 到 /dev/shm 的一套落地排查法

摘要: Linux 64位SAP系统出现SYSTEM_CORE_DUMPED和Signal 7(对应SIGBUS)错误时,核心问题是进程因共享内存资源异常被操作系统强制终止。主要诱因包括:1)/dev/shm的tmpfs默认容量不足(通常仅占物理内存50%);2)SAP内存管理参数es/implementation=map在64位场景下的敏感性。解决方案应双管齐下:在实例profile设置es/implementation=std以降低对tmpfs的依赖,同时按(RAM+Swap)*75%重新配置/dev/

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 169

mac电脑安装postman

mac电脑安装postman 查看资料发现以前的Google Chrome支持浏览器插件方式安装postman,探索了一下发现现在已经不能用了 直接点击learn more 跳转到官网 https://www.postman.com/downloads/ 然后点击下载app(会自动识别电脑是windows系统还是mac系统) 下载完毕点击安装,然后注册,开始使用 ...

yechaer的博客 1803

公文流转系统

公文录入区 | QLineEdit(文号/标题)、QComboBox(公文类型/紧急程度)、QTextEdit(正文)、QListWidget(附件列表)、QPushButton(上传附件/保存草稿/提交审批) |// 按时间范围获取。QStringList userNames = {"张三", "李四", "王五", "赵六", "钱七", "孙八", "周九", "吴十", "郑十一", "王十二"};

寒寒豆豆软件公司的博客 552

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

Mac电脑 postman9.12.0汉化全套(postman+汉化包)

如果目录下没有 app 文件夹,那么直接解压 app.zip 得到 app 文件夹即可 将app.zip解压出来的app文件夹复制到Resources目录,替换原本的app文件夹 可以先删除或重命名原本的app文件夹。今天在使用Postman时,发现全是英文,对于我这个英文不好的程序员很不友好,于是我便思考,如何将Postman设置成中文,经过查阅资料与实践最终成功,下面是我分享的。进入访达/应用程序找到Postman.app右键查看包内容,再进入Contents/Resources。

weixin_67361149的博客 2674

android 蓝牙通讯demo

android 下蓝牙通讯demo,实现了发现蓝牙,使能蓝牙,通过蓝牙发送消息。

Mac_postman安装过程和使用

第一步下载Postman、Postman Interceptor和nodejs。 https://www.postman.com/downloads/版本:Postman-osx-7.36.1 https://www.crx4chrome.com/(右侧搜索:Interceptor)版本:Postman Interceptor1.1.0 https://nodejs.org/en/版本:node-v14.15.4 第二步 双击Postman安装 第三步Postman Interce...

技术分子博客 4428

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

mac 电脑postman 安装

第二步登录成功后我们就可以创建属于自己的文件夹啦。第一步 下载 postman 官网地址。,按照自己的版本下载哦。

weixin_46096113的博客 785

Postman Mac版下载

Postman Mac版下载 【下载地址】PostmanMac版下载 本仓库提供了一个Postman的Mac版资源文件下载。Postman是一款广泛使用的接口请求工具,能够帮助开发者更高效地进行API测试和调试 项目地址: htt...

gitblog_09806的博客 803

【工具篇】postman的完全使用,全是干货

一、GET请求 二、POST请求 三、PUT请求 四、DELETE请求 五、Headers 六、认证 (1)基本认证:Basic Auth (2)摘要身份认证:Digest Auth (3)Hawk Auth权限认证 (4)OAuth权限认证 七、Cookies操作

小朱的博客 3836

Postman安装与简单使用

Postman使用参考文档: 1.官方英文文档 2.chrome插件整理的postman中文使用教程 Postman一款非常流行的API调试工具。其实,开发人员用的更多。因为测试人员做接口测试会有更多选择,例如Jmeter、soapUI等。不过,对于开发过程中去调试接口,Postman确实足够的简单方便,而且功能强大。 官方网站:https://www.getpostman.com/ 下载 1> 、postman下载地址: 1.Postman for MAC 2.Postman ..

CatStarXcode的博客 5万+
上一篇: 第6篇-Mac电脑安装Nvm
下一篇: 第8篇-参数化方法介绍
红色编程
博客等级 码龄5年 315粉丝 10原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值