问题标签 [hp-uft]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
qtp - QTP/UFT:对从对象存储库文件 (.tsr) 检索的对象执行操作
我的目标是从对象存储库文件 (.tsr) 中获取一个对象,并对该对象执行一些操作,例如单击、设置...在下面的代码中,“WebButton”对象被捕获。但是当我对这个对象(brObj)执行“点击”操作时。在 UFT 中收到错误消息“由于不可恢复的错误行 (20):brObj.Click 无法继续测试运行”
那么 UFT 中是否有另一种方法可以对检索的对象执行操作
来自对象存储库文件 (.tsr)
c# - QTP - Is there any relevance in setting WPF objects to nothing from the GC perspective?
I have a long running QTP test which does a bunch of UI actions on my WPF application. I started off creating the script by explicitly invoking the WPF objects. Like so:
I wanted to know if I should change this to
Does version (1) prevent GC because Qtp may be holding references to the objects? Does version (2) avoid that problem?
Update: The same long running script seems to release memory or handle memory references better in UFT 11.53. I was using Qtp11 before.
batch-file - 通过批处理文件远程启动 UFT (QTP) 测试。
我创建了一堆 UFT 12(前 QTP)测试,并且我还创建了一个批处理文件以运行这些测试。
当我在本地运行批处理文件时,测试运行良好。
这是我使用的脚本:
现在我正在尝试通过启动它的作业远程执行这些批处理文件。我面临两个问题:
第一个:我有一个带有弹出框的交互式服务检测提示,我应该单击查看消息以切换到另一个屏幕,这对我来说是个问题,因为我希望 UFT 在没有任何用户交互的情况下自动启动。
第二个问题:即使我在服务交互弹出窗口中单击查看消息,使用此脚本 UFT 也没有启动。
我在互联网上进行了搜索,发现了先打开 UFT 的建议,所以我在上面的脚本顶部添加了这个片段:
使用此脚本,在我单击交互式服务检测消息后启动 UFT,但睾丸未启动。
因此,要继续我的问题是如何避免交互式服务检测并直接启动 UFT,以及如何在启动 UFT 后开始测试。
谢谢齐德
macros - QTP 宏/键盘快捷键
这是否可以在 QTP 11 中设置将运行宏的键盘快捷键 - 根据当前选择生成注释。例子:
如果我选择函数名称,我想生成带有一些参数的注释标题(使用快捷方式)函数
一些提示如何做到这一点?
vbscript - QTP Descriptive Programmuing - 加载通过函数创建的对象
我有 10 个不同的测试用例。我想创建不同的 SwfEdit、SwfButton 等对象,只需在函数中说一次,然后在 QTP 中的不同操作中使用这些对象。
我尝试创建一个函数并将其链接到一个测试用例,但是它不起作用。所以我不确定在所有测试用例中链接所有这些对象的正确方法是什么。
qtp - 将 QTP 12 结果导出到 html 会引发错误“样式表不包含文档元素”
为了生成 HTML 报告,我试图在下面执行代码。该脚本在“xmlSource.transformNode(xmlXForm)”处引发错误。错误显示“样式表不包含文档元素”。
请帮忙。
谢谢巴维亚
qtp - 从 ALM 11.5 运行脚本时出现“未指定的错误”
我已经使用 UFT 11.5 连接到 ALM,当我从 UFT 11.5 运行我的脚本时,它工作得非常好,但是当从 ALM 测试实验室运行相同的脚本时我遇到了问题。我不确定发生了什么。
我收到未指定的错误,我想知道为什么直接在 UFT 中运行的相同脚本没有从 ALM 运行。
脚本从 QTP 11.0 的 ALM 运行,它只为 UFT 11.5 提供未指定的错误,我还启用了“允许其他 HP 产品运行测试和组件”选项
请检查屏幕截图是否有错误。我试图找到它的答案,但找不到任何东西:(
日志
qtp - UFT Oracle Forms - Default Description Property
I am working on autonmation testing an Oracle Forms application with UFT V11.5.
The issue I'm having is that when you add an object in the object repository it adds a "developer name" for the object in the description properties. However, this property is dynamic and changes every time the application is opened. There is, however, a label property that remains static.
Unfortunately, UFT doesn't add the label property by default, meaning that I have to manually delete the developer name property and then add the label. I'd like to make it so that when I add an object to the repository, it uses the label Description property, rather than the developer name - does anyone know how to accomplish this?
Cheers
qtp - 计算机锁定时脚本失败(QTP 11.0)。有任何解决方法吗?
我使用 QTP 11.0。当我运行脚本时,如果计算机被锁定,脚本会失败。有什么解决方法吗?
提前致谢...
button - Find if a Java button is clickable or not using QTP
I am new to QTP and trying out some Java GUI automation. I have to click a java button and sometimes the button may not be available to click. i.e it will be in disable state.
Because of this, my code is fail to click the button
How can I make it to handle the error case ?
Note : I am using QTP's record and playback option only, not the descriptive programming.