基于RobotFramework Browser自动化测试自定义云效飞流流水线步骤。
需要:
1. 使用飞流flow工具发布一个自定义步骤
1. 修改flow-tmpl/step.yaml之sign
2. cd flow-tmpl
3. ./flow login
4. ./flow step publish
5. ./flow step run #运行测试
2. 新建流水线,添加新发布的步骤,添加报告上传
3. 支持RobotFramework Browser、requests,支持测试录屏,支持实时vnc接入查看执行过程
4. 支持nodejs playwright
需要自己添加上传报告步骤,robotframework报告路径 robot_logs, 文件名 report.html
playwright报告路径playwright-report,文件名index.html
robot testfolder
或者
pabot testfolder
testfolder 为测试文件的路径,参照tests目录。
npx playwright test -x
使用playwirght时需要在playwright.config.js增加这个reporter配置:
reporter: [
['line'],
['html', { open: 'never' }],
['json', { outputFolder:'playwright-report',outputFile: 'output.json' }]
]
需要一个frp服务器,参照robotframework-browser/templates新建frp服务器和nginx
参照robotframework-browser/templates/frpc.tmpl.ini创建frp客户端配置文件,放到工作路径并配置参数
或者使用freefrp.net提供的免费frp穿透服务。参照tests/freefrpc.ini,修改subdomain和custom_domains,并在域名服务器配置cname或hosts文件里加上域名映射。144.24.68.60 test.yourdomain.com
https://help.aliyun.com/document_detail/224585.html
https://cr.console.aliyun.com/cn-beijing/instances
https://github.com/fatedier/frp
直接使用python + chromedriver + selenium执行网页脚本。
需要:
1. 使用飞流flow工具发布一个自定义步骤
1. 修改chromedriver-tmpl/step.yaml之sign
2. cd chromedriver-tmpl
3. ./flow login
4. ./flow step publish
5. ./flow step run #运行测试
2. 新建流水线,添加新发布的步骤,添加报告上传
3. 支持python + chromedriver + selenium,支持测试录屏(需要关掉headless),支持实时vnc接入查看执行过程