Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the apk I compiled with source code not same with the apk in the IDE how to fix it? #4

Open
woshichuanqilz opened this issue Aug 30, 2019 · 1 comment

Comments

@woshichuanqilz
Copy link

I compile the apk use the source code in this repository.

The python code stopped at
The request failed, when I use the apk I compiled, but it works fine when use the apk in the airtest folder. Why is this?
requests.get('http://{}:{}/uiautomation/connectionState'.format(self.device_ip, port_to_ping),

def _start_instrument(self, port_to_ping, force_restart=False):
        if not force_restart:
            try:
                state = requests.get('http://{}:{}/uiautomation/connectionState'.format(self.device_ip, port_to_ping),
                                     timeout=10)
               # the request throw exception 
                state = state.json()
                if state.get('connected'):
                    # skip starting instrumentation if UiAutomation Service already connected.
                    return True
            except:
                pass
@adolli
Copy link
Member

adolli commented Sep 2, 2019

Is there any other traceback information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants