提交测试框架样例
This commit is contained in:
parent
a565af2c7a
commit
4fc0950231
|
@ -31,6 +31,7 @@ robotframework + python的web接口业务测试框架
|
||||||
|
|
||||||
#### 运行demo.robot
|
#### 运行demo.robot
|
||||||
- 给出了个demo脚本robot\Ap_web\demo.robot
|
- 给出了个demo脚本robot\Ap_web\demo.robot
|
||||||
|
|
||||||
> C:\python3\Scripts\robot.bat(上述装好robotframe后python路径下有的) -v top:test.txt(top文件) -i test_demo -d F:\mayun\robotframework\log\ -L Trace -P F:\mayun\robotframework\lib F:\mayun\robotframework\robot\Ap_web
|
> C:\python3\Scripts\robot.bat(上述装好robotframe后python路径下有的) -v top:test.txt(top文件) -i test_demo -d F:\mayun\robotframework\log\ -L Trace -P F:\mayun\robotframework\lib F:\mayun\robotframework\robot\Ap_web
|
||||||
|
|
||||||
- -v 可跟变量文件
|
- -v 可跟变量文件
|
||||||
|
@ -40,3 +41,7 @@ robotframework + python的web接口业务测试框架
|
||||||
- 可查看run的结果
|
- 可查看run的结果
|
||||||
|
|
||||||
- robot\Ap_web\Ap_demo.robot就是一个业务功能脚本
|
- robot\Ap_web\Ap_demo.robot就是一个业务功能脚本
|
||||||
|
|
||||||
|
- robot官网
|
||||||
|
- https://robotframework.org/
|
||||||
|
- 内置关键字方法:http://robotframework.org/robotframework/latest/libraries/BuiltIn.html
|
||||||
|
|
10
log/log.html
10
log/log.html
File diff suppressed because one or more lines are too long
746
log/output.xml
746
log/output.xml
File diff suppressed because one or more lines are too long
|
@ -1582,7 +1582,7 @@ storage = function () {
|
||||||
window.output = {};
|
window.output = {};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.output["suite"] = [1,2,3,0,[],[1,0,2034],[[4,5,6,7,[],[1,1393,638],[],[[8,9,1,0,[10],[1,1404,625],[]]],[],[1,1,1,1]]],[],[],[1,1,1,1]];
|
window.output["suite"] = [1,2,3,0,[],[1,0,1977],[[4,5,6,7,[],[1,1396,579],[],[[8,9,1,0,[10],[1,1409,564],[]]],[],[1,1,1,1]]],[],[],[1,1,1,1]];
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.output["strings"] = [];
|
window.output["strings"] = [];
|
||||||
|
@ -1594,10 +1594,10 @@ window.output["strings"] = window.output["strings"].concat(["*","*Ap web","*F:\\
|
||||||
window.output["stats"] = [[{"elapsed":"00:00:01","fail":0,"label":"Critical Tests","pass":1},{"elapsed":"00:00:01","fail":0,"label":"All Tests","pass":1}],[{"elapsed":"00:00:01","fail":0,"label":"test_demo","pass":1}],[{"elapsed":"00:00:02","fail":0,"id":"s1","label":"Ap web","name":"Ap web","pass":1},{"elapsed":"00:00:01","fail":0,"id":"s1-s1","label":"Ap web.Demo","name":"Demo","pass":1}]];
|
window.output["stats"] = [[{"elapsed":"00:00:01","fail":0,"label":"Critical Tests","pass":1},{"elapsed":"00:00:01","fail":0,"label":"All Tests","pass":1}],[{"elapsed":"00:00:01","fail":0,"label":"test_demo","pass":1}],[{"elapsed":"00:00:02","fail":0,"id":"s1","label":"Ap web","name":"Ap web","pass":1},{"elapsed":"00:00:01","fail":0,"id":"s1-s1","label":"Ap web.Demo","name":"Demo","pass":1}]];
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.output["baseMillis"] = 1628781668506;
|
window.output["baseMillis"] = 1628784117411;
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.output["generated"] = 2163;
|
window.output["generated"] = 2106;
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.settings = {"background":{"fail":"#f66","nonCriticalFail":"#9e9","pass":"#9e9"},"logURL":"log.html","title":""};
|
window.settings = {"background":{"fail":"#f66","nonCriticalFail":"#9e9","pass":"#9e9"},"logURL":"log.html","title":""};
|
||||||
|
|
Loading…
Reference in New Issue