小编N..*_*N..的帖子

每天在特定时间执行shell脚本

我有一个简单的shell脚本,只检查目录的内容,如果在白天添加任何内容,则将其复制到备份文件夹.我想在每天结束时执行这个脚本(让我们假设在23:55).

此脚本驻留在其上的系统(Debian)始终打开(服务器类型)

我怎样才能做到这一点?

linux shell cron debian sh

14
推荐指数
2
解决办法
4万
查看次数

无法使用gradle在intellij中以调试模式运行黄瓜功能

当我在调试中运行配置时,所有测试都会在不停止到断点的情况下执行.任何人都知道如何使用gradle运行/调试功能?

我还尝试了应用程序配置,但未设置系统属性"geb.browser和geb.environment",这会导致空指针异常.

组态:

在此输入图像描述

的build.gradle:

import org.apache.tools.ant.taskdefs.condition.Os
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath "com.github.samueltbrown:gradle-cucumber-plugin:0.9"
        classpath "info.cukes:cucumber-core:1.2.4"
    }
}

ext {
    ext {
        groovyVersion = '2.4.4'
        gebVersion = '0.12.2'
        seleniumVersion = '2.48.2'
        chromeDriverVersion = '2.20'
        cucumberJvmVersion = '1.2.2'
     }
}

apply plugin: 'groovy'
apply plugin: 'java'
apply from: "gradle/osSpecificDownloads.gradle"
apply plugin: "com.github.samueltbrown.cucumber"
apply from: "gradle/idea/idea.gradle"

repositories {
    mavenCentral()
}
dependencies {
    testCompile "org.gebish:geb-core:$gebVersion"
    testCompile "org.codehaus.groovy:groovy-all:$groovyVersion"

    // HttpBuilder
    testCompile "org.codehaus.groovy.modules.http-builder:http-builder:0.7.1"

    // Selenium support
    testCompile "org.seleniumhq.selenium:selenium-support:$seleniumVersion"
    testCompile "org.seleniumhq.selenium:selenium-api:$seleniumVersion"

    testCompile "info.cukes:cucumber-core:$cucumberJvmVersion"
    testCompile …
Run Code Online (Sandbox Code Playgroud)

gradle cucumber-jvm intellij-15

9
推荐指数
1
解决办法
892
查看次数

是否可以将Java-Enum作为参数从黄瓜功能文件传递

我目前在Java中使用硒,并且想要实现黄瓜来使测试脚本更具可读性。当前将参数传递给希望将Enum作为参数的java方法时遇到的问题。我还想知道,在迁移当前框架之前,是否有任何其他已知的黄瓜java局限性。

因为我是黄瓜的新手,如果有人知道黄瓜的详细信息,请给我一个链接。

enums selenium cucumber cucumber-jvm cucumber-java

3
推荐指数
2
解决办法
6879
查看次数