自动化测试
文章平均质量分 55
向高人学习
这个作者很懒,什么都没留下…
展开
-
好久没写case了,postman校验结果都忘记怎么写了
if (responseCode.code != 200){ tests["ResponseBody="+responseBody] = 0; tests["request is "+JSON.stringify(request)]=jsonData.result===1; } var jsonData = JSON.parse(responseBody); tests["Status is "+jsonData.Status]=true; jsonData = JSON.stri...原创 2021-01-04 10:27:15 · 135 阅读 · 1 评论 -
Selenium报错-浏览器放大比例需要设置为100%
[TestNG] Running: C:\Users\wwwxs\AppData\Local\Temp\testng-eclipse-163890489\testng-customsuite.xml Started InternetExplorerDriver server (32-bit) 2.40.0.0 Listening on port 38740 FAILED: t原创 2014-11-01 15:54:28 · 7872 阅读 · 0 评论 -
chrome driver 下载和版本对应关系
http://chromedriver.storage.googleapis.com/index.html----------ChromeDriver v2.38 (2018-04-17)----------Supports Chrome v65-67Resolved issue 2354: The chromedriver crashes/lose connection when navigat...转载 2018-06-01 12:05:17 · 2505 阅读 · 0 评论 -
Katalon Studio-打败QTP的前端测试工具
赞誉 Katalon Studio获取2018全球自动化测试工具TOP2的好成绩。 https://blog.csdn.net/yoyocat915/article/details/80642317 该工具界面操作,非常适合UI测试小白入门,不需要代码功底基本就能进行UI测试case的写作工作。 尝试使用 下载和安装 从官网https://www.katalon.com/下载,并不需要安装,直接...原创 2019-02-20 16:13:22 · 647 阅读 · 0 评论 -
get api list from swagger file
get api list from sagger file # -*- coding: utf-8 -*- import json from xml.dom import minidom import shutil import time import sys import csv print(sys.getdefaultencoding()) reload(sys) sys.setdef...原创 2019-02-26 16:50:00 · 139 阅读 · 0 评论 -
katalon-传参
以某输入框每次输入不同的值为例。 1.在输入操作所在的case中,定义Variables的Name,Type和default value 2.在输入操作所在的case中,对应action中,Input设置Value Type为Varialble,Value为上面定义的Name 3. CallTestCase的时候,Input设置Key为Variable的Name,Val...原创 2019-03-06 11:46:22 · 744 阅读 · 0 评论 -
katalon-分支判断
在测试中,写了一个公共的查询步骤,一个起个菜单,每个菜单进去后都调用查询。 但是在其中一个菜单进去后,查询都会报错。 经分析发现,报错的这一个页面不是同一个开发coding的,导致风格不一致,其他页面使用的search按钮的location方式在该页面则找不到对应的elemnt,导致报错。 最开始使用If Else的逻辑判断,发现还是报错。 后台发现使用Exception的try-catc...原创 2019-03-06 15:36:14 · 914 阅读 · 0 评论 -
newman V3 command line
相对于V2版本,V3版本命令有很多关键字废弃了。详见下面的help消息: + cp -f ./ReportTemplate/template-default.hbs ./node_modules/newman/lib/reporters/html/ + /home/node_modules/newman/bin/newman.js -v -h usage: newman [-h] [-c COL...原创 2019-03-07 11:16:08 · 257 阅读 · 0 评论