chineseluo / opensourcetest Goto Github PK
View Code? Open in Web Editor NEWOpenSourceTest自动化测试框架,帮您创建自动化测试项目架构,使用python灵活的编写文档化用例
Home Page: http://docs.opensourcetest.cn/
License: Apache License 2.0
OpenSourceTest自动化测试框架,帮您创建自动化测试项目架构,使用python灵活的编写文档化用例
Home Page: http://docs.opensourcetest.cn/
License: Apache License 2.0
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
木神大佬: 接口返回有中文时,在log里面乱码显示,希望迭代修复,
现象:
在jenkins中使用OST 创建的项目执行自动化测试时,因为没有对pytest.man()返回码进行判断,会导致jenkins任务大概率都是成功的,与自动化中测试用例成功与否没有关系
处理结果:
新增断言,如果返回状态码不为0直接抛出异常
比如注册接口
/api/regist
body:
{"phone": "13728632983","email":"[email protected]","password":"123456"}
1、注册可以用phone,也可以用email,也可以同时填写
当参数较多时,组合情况就非常多,如何用更少的代码解决重复创建testcase 比如①只有phone,②只有email,③有phone并且有email
2、同一个参数多种测试用例,如何用更少的代码解决重复创建testcase
比如email测试 ①qq邮箱②gmail邮箱③outlook邮箱④163邮箱等等
'email':["[email protected]","[email protected]","[email protected]","[email protected]"]
期望 能够以 dice的方式来进行深度定位添加数据
{
“Param”:[
{
"Key": "string",
"Value": "string",
"Type": 0
},
“data”: “hello”
]
}
如 要在Param下面的第零个值里面添加数据:{
(json["Param"][0], {"ss_key": int(time.time())}),
}
前面的json是固定写法
结果:
{
“Param”:[
{
"Key": "string",
"Value": "string",
"Type": 0,
"ss_key": "1234566456",
},
“data”: “hello”
]
}
如: json= (({“data”:。。。}), (‘【Verify】’,{‘TimeStamp’:123456}))左边是插入外层数据,右边是插入里面的数据 这样插入数据会出现报错的情况
当接口参数是文件的时候,入参正确的情况下,依然读不到文件参数,是什么原因呢?
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.