Appium Run Error Java.net.SocketException:socket write error

Source: Internet
Author: User
Tags appium

This is a mistake I tuned two days a little clue no, script normal run no problem, but is the console output information error, unable to locate the problem. Error

Although this error does not affect the test results, but I have obsessive-compulsive disorder, we must find out exactly:

My attempt:

1, the day of the test, the code on the server is not a problem, I run a local report this error, the result I put the system reload (previously I checked two hours Baidu plus try, no fruit)

2, starting from noon today began to make up, initially suspected that my IO operation caused, the results in Finanly added Process.destroy (); and P.geterrorstream (), close also not,

The online check says what thread is blocking, because I don't want to start it manually and write the process P = runtime.getruntime (). exec (CMD); Such a method

3, because the previous has been no problem, I use XML concatenation of multiple case, a single script run without error, so it is to locate the overall operation error

My approach and solution:

1, put the starting method in the constructor with a direct call

2. Make the XML of the previously-concatenated case, and then copy the two case into it.

3, in the run so that, strange, I guess it should be because of the same name as the previous Testng.xml file, compiled into a new test class. Cllass

Again, under the groove, like this bad location of the program, I can only be very embarrassed ah ...

Appium Run Error Java.net.SocketException:socket write error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.