1 Star 0 Fork 0

crossany / robotframework-browser

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
jq
Loading...
README

使用说明

基于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目录。

使用playwirght

npx playwright test -x

使用playwirght时需要在playwright.config.js增加这个reporter配置:

reporter: [
    ['line'],
    ['html', { open: 'never' }],
    ['json', { outputFolder:'playwright-report',outputFile: 'output.json' }]
  ]

效果图

效果图

配置图

配置图

vnc实时查看执行过程

需要一个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://help.aliyun.com/document_detail/153811.html?spm=a2cl9.flow_devops2020_goldlog_detail.0.0.45f146f6321yVX

阿里云容器镜像服务

https://cr.console.aliyun.com/cn-beijing/instances

内网穿透frp

https://github.com/fatedier/frp

python chromedriver

直接使用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接入查看执行过程

空文件

简介

基于robotframework browser在阿里云效做自动化测试 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Shell
1
https://gitee.com/crossany/robotframework-browser.git
git@gitee.com:crossany/robotframework-browser.git
crossany
robotframework-browser
robotframework-browser
master

搜索帮助