isonic1 / appium-mobile-grid

Appium Mobile Grid Example for iOS, Android and More
29 stars 13 forks source link

Resetting usb hub #2

Closed sskorol closed 7 years ago

sskorol commented 7 years ago

Hi @isonic1,

In your Selenium Camp 16 talk you've mentioned issues with loosing connectivity with real devices connected to usb hub. I've faced with the same problem. Only cable unplugging / plugging helps. As a solution you were resetting the hub programmatically before each test somehow. Could you please share the code to perform this operation?

Thanks, Sergey

isonic1 commented 7 years ago

Hi @sskorol I actually bought a programmable power strip to power cycle the USB hubs prior to each test run. This would then reset the stale ADB connections. Basically, it's just a curl POST to the powerstrip to tell it to turn on or off. I hope this helps!

http://energenie.com/item.aspx?id=7557

sskorol commented 7 years ago

@isonic1 thanks, will check it :)