alttester / alttester/AltTester-Unity-SDK

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

Đang mở
#1,213 2 bình luận 1 reaction 0 người được giao Xem trên GitHub
bug investigate no version triaged
Ngôn ngữ chính
C#
Star
121
Fork
24
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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](https://user-images.githubusercontent.com/126661357/233007674-9cc3fe97-2732-4200-abfa-433232e59912.png)

### Relevant logs and/or screenshots

![DistanceTextTrashCat](https://user-images.githubusercontent.com/126661357/233011959-cbdec9d3-7b87-4a7b-af54-3c636f2d18d3.png)

![SetMultiplierText](https://user-images.githubusercontent.com/126661357/233011991-748ad608-5c1d-4460-82d0-3c358ce98129.png)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.