E
E
Evgeniel2019-04-06 20:03:58
Test Driven Development
Evgeniel, 2019-04-06 20:03:58

Problem with server when running test on appium?

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 123:123:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 102, column 21
[WARNING] 'build.plugins.plugin.version' for io.qameta.allure:allure-maven is missing. @ line 110, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building 123 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ 123 ---
[INFO] Deleting /var/lib/jenkins/workspace/test1/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 123 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ 123 ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 123 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/test1/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ 123 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /var/lib/jenkins/workspace/test1/target/test-classes
[INFO] /var/lib/jenkins/workspace/test1/src/test/java/TestJoom.java: /var/lib/jenkins/workspace/test1/src/test/java/TestJoom.java uses unchecked or unsafe operations.
[INFO] /var/lib/jenkins/workspace/test1/src/test/java/TestJoom.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @ 123 ---
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running TestSuite
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 163.326 s <<< FAILURE! - in TestSuite
[ERROR] case_1(TestJoom)  Time elapsed: 149.56 s  <<< FAILURE!
org.openqa.selenium.WebDriverException: 
An unknown server-side error occurred while processing the command. Original error: pkg: /data/local/tmp/appium_cache/8e73ab7cdf3e8cb0e8ced3494a3595ecf3d479d6.apk
Failure [INSTALL_FAILED_NO_MATCHING_ABIS] (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 140.34 seconds
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: 'evgeniel-RV420-RV520-RV720-E3530-S3530', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-47-generic', java.version: '1.8.0_201'
Driver info: io.appium.java_client.android.AndroidDriver
  at TestJoom.case_1(TestJoom.java:31)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   TestJoom.case_1:31 » WebDriver An unknown server-side error occurred while pro...
[INFO] 
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:25 min
[INFO] Finished at: 2019-04-06T20:27:55+04:00
[INFO] Final Memory: 20M/96M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project 123: There are test failures.
[ERROR] 
[ERROR] Please refer to /var/lib/jenkins/workspace/test1/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
android-container1

Above is the console output after running an automated java test project through the appium of an android mobile app. I ran the test in a docker container via ci Jenkins.
Here are the capabilities in the project code:
protected AppiumDriver<MobileElement> driver;
    protected DesiredCapabilities capabilities = new DesiredCapabilities();
    @Title("Проверка отображения кабинета продавца")
    @Test
    public void case_1() throws IOException, InterruptedException {
        capabilities.setCapability("platformName", "Android");
        capabilities.setCapability("platformVersion", "6.0");
  capabilities.setCapability("deviceName", "Samsung Galaxy S6");
  capabilities.setCapability("androidInstallTimeout", "900000");
        capabilities.setCapability("appWaitDuration", "200000");
        capabilities.setCapability("app", "/root/tmp/Joom.apk");
        driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
        driver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);

Here is the container launch command:
docker run --privileged -d -p 6080:6080 -p 4723:4723 -p 5554:5554 -p 5555:5555 -v $PWD/Joom.apk:/root/tmp/Joom.apk -e DEVICE="Samsung Galaxy S6" -e APPIUM=true -e APPIUM_HOST="127.0.0.1" -e APPIUM_PORT=4723 --name android-container1 budtmo/docker-android-x86-6.0

Constantly when running through jenkins builds, an error is displayed:
[ERROR] case_1(TestJoom)  Time elapsed: 149.56 s  <<< FAILURE!
org.openqa.selenium.WebDriverException: 
An unknown server-side error occurred while processing the command. Original error: pkg: /data/local/tmp/appium_cache/8e73ab7cdf3e8cb0e8ced3494a3595ecf3d479d6.apk
Failure [INSTALL_FAILED_NO_MATCHING_ABIS] (WARNING: The server did not provide any stacktrace information)

Actually what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question