Git Product home page Git Product logo

Comments (5)

xiaocong avatar xiaocong commented on August 20, 2024
  • uiautomator wrapper uses a jsonrpc server on device side to register watcher. If the jsonrpc server gets down, the registered watchers will get lost.
  • uiautomator wrapper will restart the jsonrpc server automatically in case of an unrecoverable error from jsonrpc server.

So my assumption is the jsonrpc server got restarted. If possible, please help send the logcat to me.

from uiautomator.

hankaidahaoren avatar hankaidahaoren commented on August 20, 2024

I'm sorry to feedback so slow.......Really sorry...
As you said, the jsonrpc maybe get down and restart will lost the watchers. So I create a thread in my test to check if there is exception blocked in the front page. Now it works. But can you add this to you wrapper? I mean a complete wrapper to handle exception like .....isn't responding and ......has crashed....
Best Regards!

from uiautomator.

xiaocong avatar xiaocong commented on August 20, 2024

Thank @hankaidahaoren , but it's tricky to catch exception and re-add d watchers into the new jsonrpc server when it restarts.

I am thinking another way to implement it. Could you please have a try at below branch? I'd like to get your feedback.

pip install git+https://github.com/xiaocong/uiautomator.git@feature/not-found-callback

Best Regards!

from uiautomator.

hankaidahaoren avatar hankaidahaoren commented on August 20, 2024

Okay, xiaocong, I will try it and will feed back as soon as possible.

THANK YOU!

from uiautomator.

xiaocong avatar xiaocong commented on August 20, 2024

merged into main branch.

from uiautomator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.