SQUISH 问题可识别“&”在 GUI 对象名称中
我使用 SQUISH 在 Qt 版本 5.9.4 的 GUI 应用程序(基于 Linux SUSE 15)上执行自动化测试(用 python 编写)。 该应用程序包含的对象的属性(菜单的示例名称)包含字符“&”。
每当包含字符“&”的对象时,我的测试脚本都会崩溃(在其属性中)在脚本中被调用。 错误是: “LookupError:未找到对象“从 RCSL 到涡轮机 I&C 的硬连线链接”
为了调试,我从应用程序设计中删除了该字符 ==> 没有发现更多问题,测试脚本通过了。
但是,它不是可持续的解决方案,我的应用程序中需要“&”字符,
你们有关于 SQUISH 在管理某些字符时遇到问题的信息吗?
I use SQUISH to perform automated tests (written in python) on a GUI application (based Linux SUSE 15) with Qt version 5.9.4.
This application contains objects with properties (example name of a menu) containing the character "&".
My test script crashes everytime an object containing the character "&" (in its properties) is called in the script.
The error is :
"LookupError: Object 'Hardwired links from RCSL to turbine I&C' not found
For debugging, I erase this character from the the application design ==> No more issues were observed, the test scripts passed.
But, it is not a sustainble solution, I need the "&" character in my application.
Do you guys have any information about SQUISH having problem with managing certain characters as "&" ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

该错误消息可能指示一种特殊情况:使用对象的纯文本来查找相同的对象。
请不要使用这种未记录(且通常不受支持)的方法。
相反,请记录与相应对象的交互,然后使用 Squish 自动为其生成的对象名称。
或者选择对象和 复制对象名称。
The error message may indicate a special case: Using the plain text of an object to look up the same.
Please do not use this undocumented (and generally unsupported) approach.
Instead, please record an interaction with the respective object, and then make use of the object name that Squish automatically generated for it.
Or pick the object and copy the object name.