1 Star 0 Fork 0

henryxpx/selenide4webfast

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 1.51 KB
一键复制 编辑 原始数据 按行查看 历史
plugins {
id "java"
}
defaultTasks 'clean', 'test'
repositories {
mavenLocal()
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
mavenCentral()
}
dependencies {
testImplementation 'junit:junit:4.13.2'
testImplementation 'com.codeborne:selenide:6.3.1'
testRuntimeOnly 'org.slf4j:slf4j-simple:1.7.32'
}
task libs(type: Sync) {
from configurations.testRuntimeClasspath
into "$buildDir/lib"
}
classes.dependsOn libs
[compileJava, compileTestJava]*.options.collect {options -> options.encoding = 'UTF-8'}
[compileJava, compileTestJava]*.options.collect {options -> options.debug = true}
tasks.withType(Test).all { testTask ->
testTask.systemProperties = [
'file.encoding': 'UTF-8',
'BUILD_URL': System.getenv()['BUILD_URL']
]
testTask.testLogging.showStandardStreams = true
testTask.exclude 'org/selenide/examples/google/classic_page_object/**/*'
testTask.outputs.upToDateWhen { false }
}
task chrome(type: Test) {
systemProperties['selenide.browser'] = 'chrome'
systemProperties['selenide.headless'] = 'true'
}
task firefox(type: Test) {
systemProperties['selenide.browser'] = 'firefox'
systemProperties['selenide.headless'] = 'true'
}
task ie(type: Test) {
systemProperties['selenide.browser'] = 'ie'
}
task edge(type: Test) {
systemProperties['selenide.browser'] = 'edge'
}
// You must enable the 'Allow Remote Automation' option in Safari's Develop menu to control Safari via WebDriver.
task safari(type: Test) {
systemProperties['selenide.browser'] = 'safari'
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/henryxpx/selenide4webfast.git
git@gitee.com:henryxpx/selenide4webfast.git
henryxpx
selenide4webfast
selenide4webfast
master

搜索帮助