AltTester-Unity-SDK icon indicating copy to clipboard operation
AltTester-Unity-SDK copied to clipboard

[To investigate] Text not set using SetText/SetComponentProperty for dynamic/changing text

Open AleVescan opened this issue 1 year ago • 2 comments

In what language is the test written? C#

What version of AltTester Unity SDK are you using? 1.8.0, 1.8.2

The OS from where you are running the test? Windows

Summary

SetText method and SetComponentProperty doesn`t set new text for dynamically populated texts i.e. text that changes throughout the game, such as countdowns, distance measurements, score multiplier.

Steps to reproduce

  1. Open a game that has text with changing content - e.g. TrashCat.
  2. Connect AltTester Desktop to the game.
  3. Identify in the running game the elements containing changing text - for TrashCat there is MultiplierText and DistanceText.
  4. While writing a test try to modify the values for these fields by using one of the methods : SetText and SetComponentProperty on these elements.
  5. Get the value modified in the previous step using GetText on the same element.
  6. Compare the value set in step 4 and the one returned in step 5.

Result

The values compared are not the same, as if the text is not correctly set. There are no relevant logs, stating that something went wrong.

The value for DistanceText is changing fast, but the value of MultiplierText doesn`t change that quickly.

Notes

The issue can be reproduced for CoinsCollector example, for the text field TimeCounterText TimeCounterCoinCollector

Relevant logs and/or screenshots

DistanceTextTrashCat

SetMultiplierText

AleVescan avatar Apr 19 '23 08:04 AleVescan