java调用qtp,使用Chrome使用Java脚本打开QTP(UFT)

这篇博客探讨了在Chrome中无法通过VBScript启动QuickTest Professional(UFT)的问题。由于VBScript不被Chrome支持,而JavaScript与COM不兼容,直接从HTML页面启动UFT在Chrome下变得困难。作者指出,虽然可以尝试编写Chrome扩展,但并不推荐,因为这将带来额外的复杂性。
摘要由CSDN通过智能技术生成

The following is the code I used to launch qtp, It is working well with IE but not in chrome.

What are the changes I shd Make to open through Chrome

var qtApp = new ActiveXObject("QuickTest.Application");

qtApp.Launch(); // Start QuickTest

qtApp.Visible = true;

解决方案

Microsoft's VBScript is integrated with COM and UFT also exposes a COM interface, this is why you were able to launch UFT from HTML using VBScript. However VBScript is not supported by Chrome and JavaScript is not integrated with COM (at least not Chrome's JavaScript).

Therefore I don't think there's a simple way to launch UFT from an HTML page using Chrome. It is possible if you write a Chrome Extension but I don't think this is worth the trouble.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值