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

Validation fails in double screen rotation (EditorActivity). #76

Open
davirec opened this issue Mar 18, 2022 · 1 comment
Open

Validation fails in double screen rotation (EditorActivity). #76

davirec opened this issue Mar 18, 2022 · 1 comment

Comments

@davirec
Copy link

davirec commented Mar 18, 2022

This issue has relation with #75

When executing this sequence of actions, there is a loss of data in the activity EditorActivity

Issue 01:
IntentEvent(intent='am start vocabletrainer.heinecke.aron.vocabletrainer/vocabletrainer.heinecke.aron.vocabletrainer.activity.MainActivity')
TouchEvent [[14,1460],[706,1544]]
KeyEvent(name=BACK)
TouchEvent [[14,460],[706,544]]
TouchEvent [[0,54],[98,152]]
TouchEvent [[14,362],[706,446]]
TouchEvent [[580,1418],[678,1516]]
TouchEvent [[508,968],[662,1052]]
FillUIEvent
Cap01: capture screen properties before rotation
DoubleRotationEvent
Cap02: capture screen properties after rotation

Cap01 != Cap02 (Return to a previous state)

Before rotation:

After rotation:

Issue 02:
IntentEvent(intent='am start vocabletrainer.heinecke.aron.vocabletrainer/vocabletrainer.heinecke.aron.vocabletrainer.activity.MainActivity')
TouchEvent [[14,362],[706,446]]
TouchEvent [[580,1418],[678,1516]]
SetTextEvent [[71,863],[648,961]]
ScrollEvent(direction=FULL_RIGHT)
TouchEvent [[508,968],[662,1052]]
TouchEvent [[552,61],[636,145]]
LongTouchEvent(duration=2000) [[71,667],[648,765]]
LongTouchEvent(duration=2000) [[71,765],[648,863]]
KeyEvent(name=BACK)
ScrollEvent(direction=FULL_LEFT)
TouchEvent [[636,61],[720,145]]
FillUIEvent
Cap01: capture screen properties before rotation
DoubleRotationEvent
Cap02: capture screen properties after rotation

Cap01 != Cap02 (message fragment disappears)

Before rotation:

After rotation:

Issue 03:
SetTextEvent [[71,542],[648,640]]
TouchEvent [[71,444],[606,542]]
LongTouchEvent(duration=2000) [[71,444],[606,542]]
TouchEvent [[71,542],[648,640]]
SetTextEvent [[71,542],[648,640]]
LongTouchEvent(duration=2000) [[71,640],[648,738]]
SetTextEvent [[71,640],[648,738]]
TouchEvent [[606,500],[648,542]]
TouchEvent [[508,794],[662,878]]
TouchEvent [[71,346],[606,444]]
LongTouchEvent(duration=2000) [[71,542],[648,640]]
TouchEvent [[606,402],[648,444]]
TouchEvent [[354,794],[508,878]]
FillUIEvent
Cap01: capture screen properties before rotation
DoubleRotationEvent
Cap02: capture screen properties after rotation

Cap01 != Cap02 (order in table changes)

Before rotation:

After rotation:

@davirec
Copy link
Author

davirec commented Mar 18, 2022

We found similar flaws in activities:

ExImportActivity

  • Message stating error in input disappears and values change
  • Selected options return to default
  • The menu popup disappears
  • Title disappears
  • View properties change

MainActivity

  • message fragment disappears

Note:

  • Double screen rotation: It is executed twice to reach a state that should be exactly the same as the screen before if no data loss occurred.
  • A data loss problem occurs when data is accidentally deleted or state variables are accidentally assigned with default or initial values.

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

1 participant