7 Star 53 Fork 27

zx钟/UITest

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Jenkinsfile 2.02 KB
Copy Edit Raw Blame History
zx钟 authored 2022-05-12 16:20 +08:00 . 修改README
pipeline {
agent {
label "${params.test_PC}"
}
triggers {
cron('H * * * *')
}
parameters {
gitParameter(name: 'branch', branch: '', branchFilter: '.*', defaultValue: 'origin/master', description: '代码分支', quickFilterEnabled: false, selectedValue: 'NONE', sortMode: 'NONE', tagFilter: '*', type: 'PT_BRANCH')
choice(name: 'test_PC', choices: ['a', 'b'], description: '执行设备')
choice(name: 'headless', choices: ['false', 'true'], description: '是否不显示浏览器界面')
choice(name: 'concurrent', choices: ['否', '1', '2', '3', '4', 'auto'], description: '是否并发执行,并发数')
string(name: 'apk_path', defaultValue: '', description: '安装包地址')
string(name: 'udid', defaultValue: '', description: '测试手机')
string(name: 'remote_url', defaultValue: 'http://127.0.0.1', description: '远程地址')
string(name: 'remote_port', defaultValue: '4723', description: '远程端口')
string(name: 'robot', defaultValue: '', description: '企业微信群机器人地址,以逗号分隔')
string(name: 'email', defaultValue: '', description: '邮箱地址,以逗号分隔')
text(name: 'cases', defaultValue: '''''', description: '要执行的用例', )
}
stages {
stage('克隆代码'){
steps{
checkout([$class: 'GitSCM', branches: [[name: "${params.branch}"]], doGenerateSubmoduleConfigurations: false, extensions: [], gitTool: 'Default', submoduleCfg: [], userRemoteConfigs: [[url: 'https://gitee.com/zx660644/uitest.git',credentialsId: 'xxx',]]])
}
}
stage('执行测试'){
steps{
dir("${env.WORKSPACE}/src/cases/") {
sh '''
python3 allure_debug.py
exit 0
'''
}
}
}
stage('生成Allure报告'){
steps{
allure includeProperties: false, jdk: '', results: [[path: 'report/allure_results']]
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zx660644/uitest.git
git@gitee.com:zx660644/uitest.git
zx660644
uitest
UITest
master

Search