Skip to content

Culebra 11.5.1 landscape mode failure #186

Description

@7ikPDYl3
  1. Python 2.7.5
  2. java version "1.8.0_40"
  3. Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
  4. Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
  5. MAC OS X Version 10.9.5
  6. Culebra version: 11.5.1
  7. Android OS 4.4.4, Samsun Galaxy S5t

A) On a MAC PC described above, Culebra 11.5.1 portrait mode has no issues and the long press feature has no problems. With the -O feature set as in the command line culebra --scale=0.5 -O -uUG -o output.py, and starting out with the Android phone in portrait mode, there is no problem. If the Android phone is turned to landscape mode, and the screen refreshed, the MAC PC's Culebra screen never displays landscape mode. It displays the screenshot below which has a landscape display with a portrait screen in "Please Wait.." mode. If the Android phone starts out in landscape mode when Culebra is first initiated, the MAC PC's screen displays a portrait mode displaying "Please Wait..." and never changes.

B) On Windows 8.1 Culebra 11.5.1 and Python 2.7.11 with the sameJ java version as the MAC OS X listed above, Culebra displays both landscape and portrait mode as expected. The Long Press feature causes Python.exe and Culebra v11.5.1 to both display "Not Responding" in the Task Manager on the Windows PC.
screen shot 2016-04-05 at 1 16 05 pm

Activity

  1. dtmilano commented on Apr 5, 2016

    @dtmilano
    Owner

    To better understand the issue. This "Please wait..." screen appears just
    after you rotate the device and lasts forever,.
    Have you tried to force a refresh (F5 or context menu)? This worked for me.

    On Tue, Apr 5, 2016 at 3:11 PM, 7ikPDYl3 notifications@github.com wrote:

    1. Python 2.7.5
    2. java version "1.8.0_40"
    3. Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
    4. Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
    5. MAC OS X Version 10.9.5
    6. Culebra version: 11.5.1
    7. Android OS 4.4.4, Samsun Galaxy S5

    A) On a MAC PC described above, Culebra 11.5.1 portraid mode has no issues
    and the long press feature has no problems. With the -O feature set as in
    the command line culebra --scale=0.5 -O -uUG -o output.py, and starting out
    with the Android phone in portrait mode, there is no problem. If the
    Android phone is turned to landscape mode, and the screen refreshed, the
    MAC PC's Culebra screen never displays landscape mode. It displays the
    screenshot below which has a landscape display with a portrait screen in
    "Please Wait.." mode. If the Android phone starts out in landscape mode
    when Culebra is first initiated, the MAC PC's screen displays a portrait
    mode displaying "Please Wait..." and never changes.

    B) On Windows 8.1 Culebra 11.5.1 and Python 2.7.11 with the sameJ java
    version as the MAC OS X listed above, Culebra displays both landscape and
    portrait mode as expected. The Long Press feature causes Python.exe and
    Culebra v11.5.1 to both display "Not Responding" in the Task Manager on the
    Windows PC.
    [image: screen shot 2016-04-05 at 1 16 05 pm]
    https://cloud.githubusercontent.com/assets/18293424/14294706/65642444-fb40-11e5-8861-e619b53b2823.png

    —
    You are receiving this because you are subscribed to this thread.
    Reply to this email directly or view it on GitHub
    #186

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

  2. dtmilano commented on Apr 5, 2016

    @dtmilano
    Owner

    Starting culebra from the terminal do you receive any error message
    during or after the rotation?

    On Tue, Apr 5, 2016 at 5:58 PM, Diego Torres Milano dtmilano@gmail.com
    wrote:

    To better understand the issue. This "Please wait..." screen appears just
    after you rotate the device and lasts forever,.
    Have you tried to force a refresh (F5 or context menu)? This worked for me.

    On Tue, Apr 5, 2016 at 3:11 PM, 7ikPDYl3 notifications@github.com wrote:

    1. Python 2.7.5
    2. java version "1.8.0_40"
    3. Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
    4. Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
    5. MAC OS X Version 10.9.5
    6. Culebra version: 11.5.1
    7. Android OS 4.4.4, Samsun Galaxy S5

    A) On a MAC PC described above, Culebra 11.5.1 portraid mode has no
    issues and the long press feature has no problems. With the -O feature set
    as in the command line culebra --scale=0.5 -O -uUG -o output.py, and
    starting out with the Android phone in portrait mode, there is no problem.
    If the Android phone is turned to landscape mode, and the screen refreshed,
    the MAC PC's Culebra screen never displays landscape mode. It displays the
    screenshot below which has a landscape display with a portrait screen in
    "Please Wait.." mode. If the Android phone starts out in landscape mode
    when Culebra is first initiated, the MAC PC's screen displays a portrait
    mode displaying "Please Wait..." and never changes.

    B) On Windows 8.1 Culebra 11.5.1 and Python 2.7.11 with the sameJ java
    version as the MAC OS X listed above, Culebra displays both landscape and
    portrait mode as expected. The Long Press feature causes Python.exe and
    Culebra v11.5.1 to both display "Not Responding" in the Task Manager on the
    Windows PC.
    [image: screen shot 2016-04-05 at 1 16 05 pm]
    https://cloud.githubusercontent.com/assets/18293424/14294706/65642444-fb40-11e5-8861-e619b53b2823.png

    —
    You are receiving this because you are subscribed to this thread.
    Reply to this email directly or view it on GitHub
    #186

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

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

  3. 7ikPDYl3 commented on Apr 6, 2016

    @7ikPDYl3
    Author

    Hi Diego,

    I appreciate the help. I tried F5 to refresh the screen on the MAC with no success. Below is the Culebra output printed to the screen. There seems to be no difference in the output in the following scenarios:

    1. Start Culebra with Android Samsung S5 in landscape mode. The output is below. A "Preconditions failed" message appears. Waited over 5 minutes and no change after several refresh attempts. Android screen did not display after waiting over 5 minutes and refreshing several times.

    2. Start Culebra with Android Samsung S5 in portrait mode. The exact same output is below. A "Preconditions failed" message appears. Even with the "Precondition failed" message in portrait mode, Culebra generates scripts with no problems. The Android screen appears quickly and refreshes successfully each time.

    landscape.txt

    1. Start Culebra with Android Samsung S5 in portrait mode, then turn the S5 to landscape mode and refresh the screen. Same output as below with the same "Precondition failed" message. Portrait mode started up and displayed the S5 screen with no problems, but turning the S5 to landscape and refreshing several times resulted in a landscape wide display with the "Please Wait..." message displayed in portrait mode. No change after waiting and refreshing over 5 minutes.

    Command line used: culebra --scale=0.5 -O -uUG

    ulebra --scale=0.5 -O -uUG

    #! /usr/bin/env python

    -- coding: utf-8 --

    '''

    Copyright (C) 2013-2014 Diego Torres Milano

    Created on 2016-04-06 by Culebra v11.5.1


    / \ / \ / \ / \

    / **/ **/ **/ **_********

    / // // /**/ /___________**

    | / \ / \ / \ / \ ___

    |/ _/ _/ _/ \ o \

    _____/--<

    @author: Diego Torres Milano

    @author: Jennifer E. Swofford (ascii art snake)

    '''

    import re

    import sys

    import os

    import unittest

    from com.dtmilano.android.viewclient import ViewClient, CulebraTestCase

    TAG = 'CULEBRA'

    class CulebraTests(CulebraTestCase):

    @classmethod

    def setUpClass(cls):

    cls.kwargs1 = {'ignoreversioncheck': False, 'verbose': False, 'ignoresecuredevice': False}

    cls.kwargs2 = {'forceviewserveruse': False, 'useuiautomatorhelper': False, 'ignoreuiautomatorkilled': True, 'autodump': False, 'startviewserver': True, 'compresseddump': True}

    cls.options = {'start-activity': None, 'concertina': False, 'device-art': None, 'use-jar': False, 'multi-device': False, 'unit-test-class': True, 'save-screenshot': None, 'use-dictionary': False, 'glare': False, 'dictionary-keys-from': 'id', 'scale': 0.5, 'find-views-with-content-description': True, 'window': -1, 'orientation-locked': 1, 'save-view-screenshots': None, 'find-views-by-id': True, 'log-actions': False, 'use-regexps': False, 'null-back-end': False, 'auto-regexps': None, 'do-not-verify-screen-dump': True, 'verbose-comments': False, 'gui': True, 'find-views-with-text': True, 'prepend-to-sys-path': False, 'install-apk': None, 'drop-shadow': False, 'output': None, 'unit-test-method': None, 'interactive': False}

    cls.sleep = 5

    def setUp(self):

    super(CulebraTests, self).setUp()

    def tearDown(self):

    super(CulebraTests, self).tearDown()

    def preconditions(self):

    if not super(CulebraTests, self).preconditions():

    return False

    return True

    def testSomething(self):

    if not self.preconditions():

    self.fail('Preconditions failed')

    _s = CulebraTests.sleep

    _v = CulebraTests.verbose

    self.vc.dump(window=-1)

    self.vc.dump(window=-1)

    self.vc.dump(window=-1)

    self.vc.dump(window=-1)

    self.device.touchDip(228.67, -4.67, 1)

    self.vc.sleep(_s)

    self.vc.dump(window=-1)

    self.vc.sleep(_s)

    self.vc.dump(window=-1)

    self.vc.dump(window=-1)

    self.device.touchDip(616.67, 14.0, 1)

    self.vc.sleep(_s)

    self.vc.dump(window=-1)

    self.vc.dump(window=-1)

    self.vc.dump(window=-1)


    From: Diego Torres Milano notifications@github.com
    Sent: Tuesday, April 5, 2016 6:10 PM
    To: dtmilano/AndroidViewClient
    Cc: Michael Tirone
    Subject: Re: [dtmilano/AndroidViewClient] Culebra 11.5.1 landscape mode failure (#186)

    Starting culebra from the terminal do you receive any error message
    during or after the rotation?

    On Tue, Apr 5, 2016 at 5:58 PM, Diego Torres Milano dtmilano@gmail.com
    wrote:

    To better understand the issue. This "Please wait..." screen appears just
    after you rotate the device and lasts forever,.
    Have you tried to force a refresh (F5 or context menu)? This worked for me.

    On Tue, Apr 5, 2016 at 3:11 PM, 7ikPDYl3 notifications@github.com wrote:

    1. Python 2.7.5
    2. java version "1.8.0_40"
    3. Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
    4. Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
    5. MAC OS X Version 10.9.5
    6. Culebra version: 11.5.1
    7. Android OS 4.4.4, Samsun Galaxy S5

    A) On a MAC PC described above, Culebra 11.5.1 portraid mode has no
    issues and the long press feature has no problems. With the -O feature set
    as in the command line culebra --scale=0.5 -O -uUG -o output.py, and
    starting out with the Android phone in portrait mode, there is no problem.
    If the Android phone is turned to landscape mode, and the screen refreshed,
    the MAC PC's Culebra screen never displays landscape mode. It displays the
    screenshot below which has a landscape display with a portrait screen in
    "Please Wait.." mode. If the Android phone starts out in landscape mode
    when Culebra is first initiated, the MAC PC's screen displays a portrait
    mode displaying "Please Wait..." and never changes.

    B) On Windows 8.1 Culebra 11.5.1 and Python 2.7.11 with the sameJ java
    version as the MAC OS X listed above, Culebra displays both landscape and
    portrait mode as expected. The Long Press feature causes Python.exe and
    Culebra v11.5.1 to both display "Not Responding" in the Task Manager on the
    Windows PC.
    [image: screen shot 2016-04-05 at 1 16 05 pm]
    https://cloud.githubusercontent.com/assets/18293424/14294706/65642444-fb40-11e5-8861-e619b53b2823.png

    You are receiving this because you are subscribed to this thread.
    Reply to this email directly or view it on GitHub
    #186

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

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

    You are receiving this because you authored the thread.
    Reply to this email directly or view it on GitHubhttps://github.com//issues/186#issuecomment-206003795

  4. 7ikPDYl3 commented on Apr 6, 2016

    @7ikPDYl3
    Author

    Hi Diego,
    What I tried are variations of the culebra --scale= setting. If it is set to --scale=1, or not set at all, then on the Culebra display screen in landscape mode a section of the S5 screen appears. The S5 screen is about 4 inches wide X 2 inches high in landscape mode. If --scale=1, or not set at all, the top of the S5 screen appears cropped on the Culebra screen. What shows is 3/4 inch in from both the left and right of the S5 screen and 1 inch down from the top. The Culebra screen that is showing is 1/2 blank from the top, then the section of the S5 screen with the measurements of the actual screen mentioned above appears.

    I've tried variations of --scale=0.1 up to 0.9 and there is no appearance of the S5 screen when in landscape mode.

  5. dtmilano commented on Apr 6, 2016

    @dtmilano
    Owner

    Did you upgrade to 11.5.3?
    I could reproduce the problem on OS X and I'm pretty sure 11.5.3 cover most
    of the cases.
    Let me know if still an issue.
    Thanks.

    On Wed, Apr 6, 2016 at 9:52 AM, 7ikPDYl3 notifications@github.com wrote:

    Reopened #186 #186.

    —
    You are receiving this because you commented.
    Reply to this email directly or view it on GitHub
    #186 (comment)

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

  6. 7ikPDYl3 commented on Apr 6, 2016

    @7ikPDYl3
    Author

    Hi Diego,

    Yes, I just upgraded to 11.5.3 and tried out landscape mode and switching back and forth between landscape and portrait and back again. Works really nice. Thanks for the upgrade!

    Mike Tirone


    From: Diego Torres Milano notifications@github.com
    Sent: Wednesday, April 6, 2016 1:46 PM
    To: dtmilano/AndroidViewClient
    Cc: Michael Tirone
    Subject: Re: [dtmilano/AndroidViewClient] Culebra 11.5.1 landscape mode failure (#186)

    Did you upgrade to 11.5.3?
    I could reproduce the problem on OS X and I'm pretty sure 11.5.3 cover most
    of the cases.
    Let me know if still an issue.
    Thanks.

    On Wed, Apr 6, 2016 at 9:52 AM, 7ikPDYl3 notifications@github.com wrote:

    Reopened #186 #186.

    You are receiving this because you commented.
    Reply to this email directly or view it on GitHub
    #186 (comment)

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

    You are receiving this because you modified the open/close state.
    Reply to this email directly or view it on GitHubhttps://github.com//issues/186#issuecomment-206485048

  7. 7ikPDYl3 commented on Oct 6, 2016

    @7ikPDYl3
    Author

    Hi Diego,

    I have access to the Culebra Tester and Culebra Tester Instrumentation apk files on Google Play, but I was wondering if I could download the apks and install with adb install? The account I have on Google Play is for a Motorola phone I use for experimenting with at home. The devices at work are Samsung Galaxy S5s with OS 4.4.4. The other Samsung devices have OS 4.2.2 which is not compatible with Culebra Tester.

    When I obtain the devices for testing, they do not have WiFi installed, so the main method for installing apk files is to go into settings and enable adb to turn on adb debugging, then adb install the application.

    If there is a way to download the Culebra Tester and Instrumentation apk files I'd appreciate it.

    Regards,

    Michael Tirone

    PdM Nett Warrior

    Augustine Consulting, Inc. (ACI)

    Software T&I

    SOFTWARE INT & TEST ENGINEER

    1 Radar Way, Suite 23

    Tinton Falls, NJ 07724

    Office: (732) 380-7289 ext 518

    Cell: 732-673-5686

    michael.a.tirone.ctr@mail.mil

    mtirone@aciedge.com

    You are hereby notified that I DO NOT have the authority to direct you in any way to alter your contractual obligation. Further, if the Government, as a result of the information obtained from this email discussion DOES desire to alter your requirements, changes will be issues in writing and signed by the contracting officer. You should take no action on any change unless you receive such a contract modification.

    Private Beta Opt-In

    Thanks!

    Your response has been recorded. We will be analyzing your answers and adding your Google Play account to the CulebraTester Private Beta programme as soon as possible.

    There are 2 applications that have to be installed on your device(s):

    Please follow them for further instructions.

    NOTICE: It may take some time after you receive this message and your user is added in Google Play

    Edit your responsehttps://docs.google.com/forms/d/e/1FAIpQLScSOnd9Q7SH3D84lrwKLLK-rerbMseDj1jKjTHErz--SPC9mQ/viewform?usp=form_confirm&edit2=2_ABaOnucyZWRApKK2b1BqWqFLhCXVsYTYbVLjdcDlS9WkgduWqxvP0BDgEKwjZQSubmit another responsehttps://docs.google.com/forms/d/e/1FAIpQLScSOnd9Q7SH3D84lrwKLLK-rerbMseDj1jKjTHErz--SPC9mQ/viewform?usp=form_confirm


    From: Michael Tirone
    Sent: Wednesday, April 6, 2016 2:21:47 PM
    To: dtmilano/AndroidViewClient
    Subject: Re: [dtmilano/AndroidViewClient] Culebra 11.5.1 landscape mode failure (#186)

    Hi Diego,

    Yes, I just upgraded to 11.5.3 and tried out landscape mode and switching back and forth between landscape and portrait and back again. Works really nice. Thanks for the upgrade!

    Mike Tirone


    From: Diego Torres Milano notifications@github.com
    Sent: Wednesday, April 6, 2016 1:46 PM
    To: dtmilano/AndroidViewClient
    Cc: Michael Tirone
    Subject: Re: [dtmilano/AndroidViewClient] Culebra 11.5.1 landscape mode failure (#186)

    Did you upgrade to 11.5.3?
    I could reproduce the problem on OS X and I'm pretty sure 11.5.3 cover most
    of the cases.
    Let me know if still an issue.
    Thanks.

    On Wed, Apr 6, 2016 at 9:52 AM, 7ikPDYl3 notifications@github.com wrote:

    Reopened #186 #186.

    You are receiving this because you commented.
    Reply to this email directly or view it on GitHub
    #186 (comment)

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

    You are receiving this because you modified the open/close state.
    Reply to this email directly or view it on GitHubhttps://github.com//issues/186#issuecomment-206485048

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions