Whenever I use Wscript.Echo Qtp raising Run time error
as 'Object required for Wscript' How I can create object
for Wscript

Answer Posted / utpal

Wscript.Echo is a pure vb script which runs on vb Script
engine where as QTP has wrapper class around the vbscript
engine so it does not support these methods in the script.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you get the exponent of the given number in vbscript?

554


What are the disadvantages of vbscript?

652


Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji

1243


There are 5 web pages.write a script to click the button on 4th web page.

2938


what is the features of visual basic?

1550






Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function

1915


Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?

1550


How will you reverse a string in vbscript?

620


Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?

2587


How will you convert a string to upper case string using vbscript?

551


How can you destroy an object in vbscript?

639


How strcomp function works?

624


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

532


i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click

1417


Which loop is used in case of arrays in the vbscript language?

520