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