alttester / alttester/AltTester-Unity-SDK

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

未關閉
#1,213 2 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
bug investigate no version triaged
主要語言
C#
星號
121
分支
24
PR 合併指標
30 天內沒有已合併 PR

描述

**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)

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。