|
Hi experts,
Have you ever used javascript to program QTP automation scripts. Here is a strange problem I encountered.
the method SetActiveAddins of Applicaiton object always throws an error: "invalid procedure call or parameters". The java script is like the following:
var qtApp = new ActiveXObject("QuickTest.Application");
var d = new Array("Web","Oracle");
qtApp.SetActiveAddins(d);
qtApp.Launch();
......
But if I write this in VB script, it works fine. The VB script is like the following:
Dim qtApp
Set qtApp = CreateObject("QuickTest.Application")
qtApp.SetActiveAddins Array("Web","Oracle")
qtApp.Launch
......
how did this happen? BTW the GetAssociatedAddinsForTest method of Applicaiton object also works abmormal.
Need you help
Thanks |
|