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 摘要。