Have you ever faced issue where android test cases were passed in local but failing in device farm due to locator issue (No such element found)? If yes then how it can be resolved. Please help
I'm using Python. I'm stuck with the ZIP File upload.It successfully uploads the zip file but never executes it. Gives parsing error, which only shows device harness error. AWS should really gear up with some video tutorials to help potential users. Your documentation is all elaborate and good, but it's when you actually start following them step by step, nothing works at all.
Ive not messed with AWS Device Farm since 2018 and Im back reconfiguring a new project for their cloud and hitting the same damn error. Ive stripped out the appium references, packaged and uploaded and its not running the tests.....open up your run, click a failed device link, and click files then click TestSpecOutput , this will give you the logging youre looking for....Im digging thru mine right now looking for why its not running my testNG script.
Say I have 1000 test cases and 10 devices; I want to distribute my tests across the devices and complete my entire test execution in 1/10th of the time. Can this be done on AWS Device farm or will all 1000 test cases be run on all 10 devices?
Anyone facing 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. For more information about this issue, please see the documentation"
Hello ! thanks for sharing this insightful video ! I followed all the steps but this error occurs in the AWS build Start Appium TestNG test [DeviceFarm] java -Dappium.screenshots.dir=$DEVICEFARM_SCREENSHOT_PATH org.testng.TestNG -testjar *-tests.jar -d $DEVICEFARM_LOG_DIR/test-output -verbose 10 [TestNG] Couldn't find the testng.xml in the jar file, running all the classes Exception in thread "main" java.lang.UnsupportedClassVersionError: LoginTest has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.testng.internal.ClassHelper.forName(ClassHelper.java:96) at org.testng.xml.XmlClass.loadClass(XmlClass.java:78) at org.testng.xml.XmlClass.init(XmlClass.java:73) at org.testng.xml.XmlClass.init(XmlClass.java:63) at org.testng.xml.XmlClass.(XmlClass.java:39) at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:397) at org.testng.TestNG.run(TestNG.java:1030) at org.testng.TestNG.privateMain(TestNG.java:1364) at org.testng.TestNG.main(TestNG.java:1333) any help will be appreciated. thanks
Hi Ramesh, thanks for very helpful tutorials. Appreciate your time and effort in making.
-Regards
thank you for this video. It's giving clear understanding. what is device farm and how we can work with that. Thanks and Appriciated.
Nice explanation
very informative, thanks.
Have you ever faced issue where android test cases were passed in local but failing in device farm due to locator issue (No such element found)?
If yes then how it can be resolved.
Please help
Can we do this using the Gradle plugin and not maven?
Can you tell me how to get video link from ListTestGridSessionArtifacts
I'm using Python. I'm stuck with the ZIP File upload.It successfully uploads the zip file but never executes it.
Gives parsing error, which only shows device harness error. AWS should really gear up with some video tutorials to help potential users.
Your documentation is all elaborate and good, but it's when you actually start following them step by step, nothing works at all.
Ive not messed with AWS Device Farm since 2018 and Im back reconfiguring a new project for their cloud and hitting the same damn error. Ive stripped out the appium references, packaged and uploaded and its not running the tests.....open up your run, click a failed device link, and click files then click TestSpecOutput , this will give you the logging youre looking for....Im digging thru mine right now looking for why its not running my testNG
script.
How can I add input data through excel in AWS?
Say I have 1000 test cases and 10 devices; I want to distribute my tests across the devices and complete my entire test execution in 1/10th of the time. Can this be done on AWS Device farm or will all 1000 test cases be run on all 10 devices?
Anyone facing 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. For more information about this issue, please see the documentation"
@Navpreet dont know why with skip tests = true my tests are running
Sir my build is failing and no zip file is created
frankly, its not so good cloud platform as everything is so tightly coupled
Hello ! thanks for sharing this insightful video ! I followed all the steps but this error occurs in the AWS build Start Appium TestNG test
[DeviceFarm] java -Dappium.screenshots.dir=$DEVICEFARM_SCREENSHOT_PATH org.testng.TestNG -testjar *-tests.jar -d $DEVICEFARM_LOG_DIR/test-output -verbose 10
[TestNG] Couldn't find the testng.xml in the jar file, running all the classes
Exception in thread "main" java.lang.UnsupportedClassVersionError: LoginTest has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.testng.internal.ClassHelper.forName(ClassHelper.java:96)
at org.testng.xml.XmlClass.loadClass(XmlClass.java:78)
at org.testng.xml.XmlClass.init(XmlClass.java:73)
at org.testng.xml.XmlClass.init(XmlClass.java:63)
at org.testng.xml.XmlClass.(XmlClass.java:39)
at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:397)
at org.testng.TestNG.run(TestNG.java:1030)
at org.testng.TestNG.privateMain(TestNG.java:1364)
at org.testng.TestNG.main(TestNG.java:1333)
any help will be appreciated. thanks