tvarchive / optimusTemplate

This is a cucumber jvm implementation template using the optimus mobile automation framework. If you like it, star it, help spread the word.
http://docs.testvagrant.com
66 stars 23 forks source link

An error happens on running Template scenario ":fragmentationReport FAILED" #5

Closed ochubey closed 6 years ago

ochubey commented 6 years ago

After setting up the solution and successfully running HelloOptimusAndroid test feed I'm constantly getting following error:

MongoClient:1851422703
say-hello-to-optimus;hello-optimus
ce021712ad0fe4250c
:fragmentationReport FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':fragmentationReport'.
> java.lang.NullPointerException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 8.098 secs

Command executed: gradle runFragmentation -DtestFeed=HelloOptimusAndroid -Dtags=@helloOptimus

Commit 3b5fccaef5050d85764899a64286b66b7f460e3e [3b5fcca]

KrishnB commented 6 years ago

@ochubey can you please upgrade Optimus Gradle version to 2.0 in your project's build.gradle file.


buildscript {

    repositories {
        maven {
            url "https://plugins.gradle.org/m2/"
        }
        mavenCentral()
    }

    dependencies {
        classpath "gradle.plugin.com.testvagrant.optimus:OptimusGradle:2.0"
    }

} 

This should resolve the error.
ochubey commented 6 years ago

It resolved an issue, thank you, @KrishnB