cucumber-JVM for behave自动化框架(二)

上节介绍完我们框架的3层, 下面来介绍其他部分:
1.log用的是log4j2,测试数据是以json的格式组织的,项目是以maven组织的,另外封装了很多的工具类: 连接redis取验证码,(对了, 我们做的是iOS和Android端, 还有windows端 UI, 还有API自动化测试, 我们甚至还研究了把mac端APP的UI自动化加入到我们的框架中, 关于mac端APP ui自动化, 这种小众需求, 后来理论上确实不支持, 可惜)
说到这里, 我觉得有必要把我们这个框架能干的事,隆重的介绍一下:😝

  1. Android端APP UI自动化
  2. iOS端APP UI自动化
  3. Window10端APP UI自动化
  4. Web UI自动化
  5. API 自动化
    我这里所阐述的并不是说我们的框架可以写Android APP UI自动化, 然后也可以改写成iOS APP UI自动化. 而是我们的框架把上面这些东西都集成进去了, 可以同时写上面的这些东西, 当然这样确实有一个比较大的诟病, 就是integrate so many functions, it is confusion. And if we change a step, will impact more codes.
    But , as our old leader, he said, our goal is becoming expert in APP UI automation, so the framework is friendly to us. certainly, the framework is an all-round and perfect. by the way, I want to introduce my a partner in the framework and current job: Lucas__liu

sorry, I suddenly want to practice my English. )

above link is Lucas blog, if our old leader has blog, I will also link him: @Harley, my English name is Ivan, 😁

so continue to introduce our package tools class: To connect MongoDB to reset testing env. ; deal all kinds files(json\File\properties\Image); common appium functions and so on.
在这里插入图片描述

  1. 运行某一条自动化测试用例, 这里有hook定义前置和后置做的事, 比如前置要启动appium server, knowledge: 这里我们可以take Command Line style to start appium server. the way is stabler. we also use DriverEventListener to get clearer log output when we run our script.

  2. when we run all testcases, we run by cucumber-jvm, we can configure some tags cases to run,
    在这里插入图片描述

the tag is a property of test case, is powerful. by tag, we can select cases that we want to run. and tag also is a index when we count in report.

Another property of test case is Transfer parameters:
在这里插入图片描述
we usually use above two kinds way, and the second way has some means: data to drive. I believe you can find many blogs about Transferring parameters in gerkin.

  1. our report is cucumber-reporting,
    report
    so beautiful, I believe when you first meet the report. of course, allure also is pretty.
    the report apply some editable for our user, for example, add log for every cases.
    so pretty.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值