dtmilano / AndroidViewClient

Android ViewServer and ADB client
Apache License 2.0
1.62k stars 347 forks source link

Dump prints all the views with all their details on the screen in 6.1.0 build #80

Closed neploch closed 10 years ago

neploch commented 10 years ago

After upgrading the AndroidViewClient to the latest 6.1.0 version I see the following bug: Each time I dump / refresh the current views tree I receive on the screen the full list containing all the presented views with all their attributes. I use command:

vc.dump(window='-1')

Again, while using previous 5.4.4 version I didn't see that. I didn't change any parameters / flags in viewclient.py or adbclient.py files.

dtmilano commented 10 years ago

I couldn't reproduce on 6.1.0. Try this:

$ culebra -o /tmp/610.py
$ /tmp/610.py

does the problem happen?

neploch commented 10 years ago

Maybe this is because you working on Linux while I use Windows 7 OS PC? This is a screenshot I made as an example of the dump I see:

cul Here there are only 7 views presented. Normally my application presents about 100 views and even much more. So each dump floods the screen with 2-3 or more full screens of such a data.

dtmilano commented 10 years ago

This are lines 1242-1243 in viewclient.py:

    if DEBUG:
        print >> sys.stderr, "    ViewClient.__init__:

useUiAutomator=", self.useUiAutomator, "sdk=", self.build[VERSION_SDK_PROPERTY], "forceviewserveruse=", forceviewserveruse

and line 46:

DEBUG = False

so, there's no way for it to be printed UNLESS, DEBUG = True. Check line 46.

On Tue, May 27, 2014 at 3:17 PM, neploch notifications@github.com wrote:

Maybe this is because you working on Linux while I use Windows 7 OS PC? This is a screenshot I made as an example of the dump I see:

[image: cul]https://cloud.githubusercontent.com/assets/7148970/3096361/270debe6-e5d3-11e3-935c-4588f16d9e49.png Here there are only 7 views presented. Normally my application presents about 100 views and even much more. So each dump floods the screen with 2-3 or more full screens of such a data.

— Reply to this email directly or view it on GitHubhttps://github.com/dtmilano/AndroidViewClient/issues/80#issuecomment-44321995 .

Have you read my blog ? http://dtmilano.blogspot.com android junit tests ui linux cult thin clients

neploch commented 10 years ago

Wow! You are right! This is what you told me to change several days before while we tried to resolve my previous bug! I wonder why this wasn't overwritten by the newest files... Anyway, you are compositely right, this is not a bug!

dtmilano commented 10 years ago

git reset ?

On Tue, May 27, 2014 at 3:51 PM, neploch notifications@github.com wrote:

Wow! You are right! This is what you told me to change several days before while we tried to resolve my previous bug! I wonder why this wasn't overwritten by the newest files... Anyway, you are compositely right, this is not a bug!

— Reply to this email directly or view it on GitHubhttps://github.com/dtmilano/AndroidViewClient/issues/80#issuecomment-44326162 .

Have you read my blog ? http://dtmilano.blogspot.com android junit tests ui linux cult thin clients

neploch commented 10 years ago

Sorry?

dtmilano commented 10 years ago

If you are not using git to synchronize the repo ignore my comment.

On Tue, May 27, 2014 at 4:04 PM, neploch notifications@github.com wrote:

Sorry?

— Reply to this email directly or view it on GitHubhttps://github.com/dtmilano/AndroidViewClient/issues/80#issuecomment-44327794 .

Have you read my blog ? http://dtmilano.blogspot.com android junit tests ui linux cult thin clients

neploch commented 10 years ago

Does it work on Windows too?

dtmilano commented 10 years ago

I guess, check https://help.github.com/articles/set-up-git

On Tue, May 27, 2014 at 4:15 PM, neploch notifications@github.com wrote:

Does it work on Windows too?

— Reply to this email directly or view it on GitHubhttps://github.com/dtmilano/AndroidViewClient/issues/80#issuecomment-44329098 .

Have you read my blog ? http://dtmilano.blogspot.com android junit tests ui linux cult thin clients