代码拉取完成,页面将自动刷新
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'
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。