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

ADB connection reset error when running gradle RunFragmention on a windows machine #20

Closed arvind1017 closed 6 years ago

arvind1017 commented 6 years ago

While setting up Optimus on a windows 7/10 machine, I am getting a connection reset exception, when the framework is trying to run the shell command "Wm size" through ADB.

Optimus error log.txt

Attached is the error log i get.

sarathsp23 commented 6 years ago

I am seeing the same error , for my windows machine as well. It works fine on my macbook. Also optimus setup or choco did not install the mongoDB correctly. I had to install it separately.

nishantverma commented 6 years ago

We have added this as a bug and look into it. Thanks for giving it a try!

arvind1017 commented 6 years ago

team, did you get a chance to look into this issue?

KrishnB commented 6 years ago

Can you try downgrading appium version once? To 1.7.0 and see if this happens?

arvind1017 commented 6 years ago

Hi Krishna,

Thanks for the response. I tried on appium versions 1.6.3, 1.7.0 and 1.7.2, but no success.

Thanks Arvind

KrishnB commented 6 years ago

Thanks for the update Arvind. Will look into this and update you. Can I assume that this doesn't happen on Distribution mode?

arvind1017 commented 6 years ago

Since I was not able to set it up on one mobile, didnt give a try to have the distribution mode. I would think that, its not a safe assumption to make

KrishnB commented 6 years ago

@arvind1017 @sarathsp23 We had reproduced this on a windows machine and were able to resolve it by downgrading appium version to 1.7.0 however there was an issue with appium log path on windows which is fixed in optimus version 3.0 below are the dependencies.

Optimus Dependency

repositories {
    mavenCentral()
    jcenter()
}
dependencies {
    compile group: 'com.testvagrant', name: 'optimus', version: '3.0'
}

Optimus Gradle plugin dependency

buildscript {
    repositories {
        maven {
            url "https://plugins.gradle.org/m2/"
        }
        mavenCentral()
    }
    dependencies {
        classpath "gradle.plugin.com.testvagrant.optimus:OptimusGradle:3.0"
    }

}

Let us know if this helps.