我有一个带有python脚本的套件,可以使用squish测试java应用程序。你知道吗
在我的测试中,我得到一个名为menuObj的对象,其中包含一个名为items的属性,该属性的类型是JavaArray。当我尝试使用getattr()获取该属性时,会得到一个包含属性的对象,而不是这样的列表(或包含列表中项目的字符串)。你知道吗
正确的方法是什么?你知道吗
预期=[MenuItem{Project Ctrl+Shift+D},MenuItem{System Ctrl+Shift+M},MenuItem{Panel}] 获得=包含三个属性。你知道吗
当访问属性或调用作为/返回Java数组的方法时,Squish会产生JavaArray。你知道吗
要访问该数组中的元素,请使用JavaArray.at文件(int)方法:
对我来说,使用。。。你知道吗
…还有。。。你知道吗
…两者都会产生一个JavaArray类型的对象。你知道吗
相关问题 更多 >
编程相关推荐