awslabs / aws-device-farm-gradle-plugin

Gradle plugin for AWS Device Farm.
Apache License 2.0
61 stars 32 forks source link

What is the zip file of appium ? #26

Open NateZ7 opened 6 years ago

NateZ7 commented 6 years ago

In the gradle plugin there is this part:

appium {
    tests file("path to zip file") // Required
    useTestNG() // or useJUnit()
}

What is the path to zip file ? I'm using gradle of course. Thanks!

JinZgitH commented 6 years ago

The zip file is your test package. and you can find more information at https://docs.aws.amazon.com/devicefarm/latest/developerguide/test-types-intro.html hope that helps

JinZgitH commented 6 years ago

https://docs.aws.amazon.com/devicefarm/latest/developerguide/test-types-android-appium-java-testng.html

satheeshkumarf commented 6 years ago

Hi Guys, Any idea about generating the single jar file with all tests info, using gradle builds? instead of maven build

jamesknowsbest commented 5 years ago

@satheeshkumarf does this help to answer the inquiry? https://stackoverflow.com/a/52398377/8016330

Dorme commented 5 years ago

I'm still unable to create a zip file with the link provided above. When I use from sourceSets.test.runtimeClasspath, I get this error: "ERROR: Could not get unknown property 'test' for SourceSet container of type org.gradle.api.internal.tasks.DefaultSourceSetContainer." My code is located under: app/src/test

I've tried replacing these by from 'src/test/java' and then I'm able to create a zip file. But when I use the zip file in AWS Device Farm, I'm getting this: There was a problem processing your file. We could not find a class file within the tests JAR file. Please unzip your test package and then unjar the tests JAR file, verify that at least one class file is within the JAR file, and try again