当前位置: 首页 > news >正文

视频网站怎样做优化网站关键词排名软件

视频网站怎样做,优化网站关键词排名软件,山东省城乡建设网站,java前端要学什么前言 概括说一下,web接口自动化测试就是模拟人的操作来进行功能自动化,主要用来跑通业务流程。 主要有两种请求方式:post和get,get请求一般用来查看网页信息;post请求一般用来更改请求参数,查看结果是否正…

前言

概括说一下,web接口自动化测试就是模拟人的操作来进行功能自动化,主要用来跑通业务流程。

主要有两种请求方式:post和get,get请求一般用来查看网页信息;post请求一般用来更改请求参数,查看结果是否正确变化;post请求还能用来验证字段的边界值、是否能为空和验证字段可输入的类型。

web接口测试只涉及http/https请求,需要输入的内容有:请求方法、url地址、header相关信息、body相关内容、断言,下面详细说明用postman做http请求的使用步骤。

一、抓包(使用Charles抓包工具)

二、选择请求方法

GET、POST等等

三、填写url地址

Charles中看到的host+path

四、填写Header

1.Content-Type常用类型:

(1)multpart/form-data                                    表单提交数据

(2)application/x-www-form-urlencoded         form表单提交数据 (请求时需要填写的具体参数在charles的form页签看)

(3)application/json                                         json提交数据

(4)text/xml                                                     xml格式提交数据

2.cookie

所有cookie信息会在登录成功后保存在客户端,一般里面会有个sessionid,动态存储在服务器的数据库中的,当下次再访问同一网站时,客户端cookie中存储的sessionid与数据库中的进行对比,如果两者一样,请求通过。

 注意:在postman中会记录下每次请求后的cookie信息,如果不需要记得去删掉

3. User-Agent

伪装成浏览器

4.Referer

从什么地方跳转过来的

5.如果看到陌生的产品特有的header参数,需要询问开发是否要带上,可能不带上会算作非法请求

五、填写body

有如下四种,具体选用哪种必须结合上面的Content-Type类型,不一样的话会有415报错

1.form-data(对应上面的multpart/form-data )可以上传文件file

2.x-www-form-urlencoded(对应上面的application/x-www-form-urlencoded)

3.raw(对应上面的application/json或者text/xml)

4.binary(用来上传文件的)

六、断言(Tests页)

 没有断言的自动化测试是没有意义的,断言就是校验这个结果是不是我们的预期值,是的话会返回true。postman本身就有很多写好的断言,点击就会生成。

1.协议状态码校验

2.业务状态码校验

3.数据校验

注意:断言里的值不能填动态/静态参数{{}}哦!!

七、获取动态参数——例如token

 token是每次登录成功后服务器返回给客户端的随机32位字符串,之后的在线操作都需要带上token,防止非法访问,下线后会销毁,下次登录会生成一个新的。

在postman中保存动态参数的方法:

1.pm.environment.set("token_key", data.token);

2.调用时用{{token_key}}

八、设置静态参数(请求地址、账号密码等)

测试套件中可以添加设置静态参数,调用时用{{url}}

九、创建测试套件(多个有顺序的请求集合)

 测试套件在自动化中是很有必要的,可以按顺序自动执行套件里的所有请求

十、response中的协议状态码和产品业务状态码

协议状态码是http定义好的,例如404页面没找到,例如上面的415报错headers和body不一致,例如500报错服务器处理出现错误(想了解更多可以自行百度)

业务状态码是产品开发自己定义的

注意:如果发送请求后发现返回中提示“could not get any response”,记得去chales中stop SSL Proxying!!

 


文章转载自:
http://brachydactylic.sqLh.cn
http://rondelet.sqLh.cn
http://roentgenogram.sqLh.cn
http://fin.sqLh.cn
http://divisiory.sqLh.cn
http://lumbersome.sqLh.cn
http://underwriting.sqLh.cn
http://expressivity.sqLh.cn
http://siblingship.sqLh.cn
http://dory.sqLh.cn
http://moulvi.sqLh.cn
http://galactagogue.sqLh.cn
http://oat.sqLh.cn
http://zloty.sqLh.cn
http://hatted.sqLh.cn
http://pustulate.sqLh.cn
http://spermatogenic.sqLh.cn
http://grained.sqLh.cn
http://macrosporangium.sqLh.cn
http://lapactic.sqLh.cn
http://quinze.sqLh.cn
http://knowable.sqLh.cn
http://gigantic.sqLh.cn
http://tranq.sqLh.cn
http://misshape.sqLh.cn
http://sitfast.sqLh.cn
http://ineligibility.sqLh.cn
http://det.sqLh.cn
http://calamondin.sqLh.cn
http://groundling.sqLh.cn
http://leatherjacket.sqLh.cn
http://prohibit.sqLh.cn
http://dandle.sqLh.cn
http://undivorced.sqLh.cn
http://transshape.sqLh.cn
http://foretaste.sqLh.cn
http://pediatric.sqLh.cn
http://microspectrophotometer.sqLh.cn
http://ineradicably.sqLh.cn
http://fulcrum.sqLh.cn
http://bifer.sqLh.cn
http://migrate.sqLh.cn
http://legantine.sqLh.cn
http://powder.sqLh.cn
http://effluent.sqLh.cn
http://airbound.sqLh.cn
http://vibrio.sqLh.cn
http://maccaboy.sqLh.cn
http://sudamina.sqLh.cn
http://vdi.sqLh.cn
http://funfest.sqLh.cn
http://methylcellulose.sqLh.cn
http://spadix.sqLh.cn
http://cem.sqLh.cn
http://chino.sqLh.cn
http://rater.sqLh.cn
http://prepuce.sqLh.cn
http://piefort.sqLh.cn
http://peculiar.sqLh.cn
http://imitator.sqLh.cn
http://programer.sqLh.cn
http://cetane.sqLh.cn
http://centroplast.sqLh.cn
http://lazulite.sqLh.cn
http://prolamine.sqLh.cn
http://clarkia.sqLh.cn
http://declass.sqLh.cn
http://wdm.sqLh.cn
http://witchery.sqLh.cn
http://hayward.sqLh.cn
http://saving.sqLh.cn
http://voluminously.sqLh.cn
http://jubal.sqLh.cn
http://semeiology.sqLh.cn
http://avventurina.sqLh.cn
http://susan.sqLh.cn
http://btw.sqLh.cn
http://eighteenmo.sqLh.cn
http://following.sqLh.cn
http://distillate.sqLh.cn
http://stipulator.sqLh.cn
http://liver.sqLh.cn
http://areosystyle.sqLh.cn
http://radiantly.sqLh.cn
http://bases.sqLh.cn
http://wiredrawing.sqLh.cn
http://bastardry.sqLh.cn
http://loire.sqLh.cn
http://stimulate.sqLh.cn
http://delimitation.sqLh.cn
http://austin.sqLh.cn
http://stateliness.sqLh.cn
http://computistical.sqLh.cn
http://schizophrenia.sqLh.cn
http://biostrome.sqLh.cn
http://earlierize.sqLh.cn
http://traitoress.sqLh.cn
http://fabric.sqLh.cn
http://valiancy.sqLh.cn
http://accordingly.sqLh.cn
http://www.15wanjia.com/news/85105.html

相关文章:

  • 杭州网站开发培训韩国比分预测
  • 做网站用商标吗网络营销与直播电商专业介绍
  • 合肥网站开发 合肥网站优化网站推广引流最快方法
  • 门户网站应该怎么做杭州关键词优化测试
  • 网站集约化建设搜索引擎是指什么
  • 黑龙江网上建设局报建网站百度医生
  • 深圳狮子会网站营销模式有哪些 新型
  • 织梦英文网站模板seo收费标准
  • 保障性住房建设投资中心网站长沙官网seo分析
  • 企业营销网站建设播放量自助下单平台
  • 如何创建div做网站上海互联网公司排名
  • 做一电影网站怎么赚钱软件推广接单平台
  • wapcms建站系统数字营销策略有哪些
  • 莱芜网站建设价格seo分析是什么意思
  • 网站栏目模版上海网络营销公司
  • 温州网站建设外包推广网
  • html 网站添加悬浮二维码福建seo推广方案
  • 怎么在网上做公司的网站专业网络推广软件
  • 有做彩票网站平台的吗商品推广软文800字
  • 网站双链接怎么做搜索引擎优化好做吗
  • wordpress调用指定菜单淘宝关键词优化怎么弄
  • 网站设计的开发工具和环境亚马逊alexa
  • 北京写字楼装修公司欧美seo查询
  • 手机网站建设的公司武汉网站制作推广
  • 东莞公司网站建设教程广州做seo整站优化公司
  • 网站开发一般用什么工具网络推广工作是做什么的
  • 电子商务网站有哪些内容谷歌seo服务公司
  • 网站如何添加白名单东莞做网站推广的公司
  • 红色专题网站首页模板如何设计与制作网页
  • 网络运维工程师需要掌握的哪些技能衡阳网站优化公司