Hello,

I am a little bit stuck here. I want to connect some of my tests 
(preferebly base this on testng groups) to browsertack runner. This is what 
I have currently:

build.gradle:


buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'org.gebish:geb-gradle:2.0'
    }
}
allprojects {
    apply plugin: "groovy"
}

apply plugin: "geb-browserstack"


    browserStack {
        application "http://google.com";
        task {
            testClassesDir = rootProject.test.testClassesDir
            classpath = rootProject.test.classpath
 

            systemProperty "geb.build.reportsDir", 
reporting.file("$project.buildDir/test-results/$name/geb")
        }

        browsers {
            firefox_windows
        }

        browsers {
            chrome_mac
        }

        account {
            username = "login"//System.getenv("GEB_BROWSERSTACK_USERNAME")
            accessKey = "password"// System.getenv("GEB_BROWSERSTACK_AUTHKEY")
        }
    }



GebConfig

def browserStackBrowser = System.getProperty("geb.browserstack.browser")
if (browserStackBrowser) {
    driver = {
        def username = "login"//System.getenv("GEB_BROWSERSTACK_USERNAME")
        assert username
        def accessKey = "password"// System.getenv("GEB_BROWSERSTACK_AUTHKEY")
        assert accessKey
        new BrowserStackDriverFactory().create(browserStackBrowser, username, 
accessKey)
    }
}



my source tree looks like this:

project
   |_ src
   |       |_test
   |            |_groovy
   |            |      |_com.company
   |            |                    |_pages
   |            |                    |_tests
   |            |                    |_utils
   |            |_resources
   |                      |_ GebConfig
   |_build.gradle
    

So simple question: with current setup I get
path may not be null or empty string. path='null'
exception when running ./gradlew -i clean chromeMacTest

I want to be able to run some groups of tests locted under tests directory 
based testng groups preferably or just any other filter criteria. Am I 
missing sth?

Best Regards
MP

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/9f988e45-57f6-402e-9781-2f2c81f76128%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to