How to call .vbs functions in QTP? plz Explain indetail

Answer Posted / nandishpatil

You can execute a VB Script function using the statement

ExecuteFile "File"

Eg: If you have the .vbs (MyVBScript.vbs) file in the
path "C:\Temp" then the following statement will call the
same:

ExecuteFile "C:\Temp\MyVBScript.vbs"

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What VBScript operators, functions, and statements do you use in QuickTest Professional?

2172


what type of automation is follwed in the project?

1488


Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??

1639


Hi All, issue is related to handling pop up script generated in IE, and run on mozilla. In App Under Test, when we get the alert pop ups, we just click ok button. if we need to run the same code on mozilla it will not identify . so we will check browser if browser(*).dialog(IE object).exits browser(*).dialog(IE object).winbutton(OK).click else 'by default mozilla browser(*).dialog(mozilla object).page(*).webbutton(OK).CLICK END IF But my qustion is. Do we write the above piece of code where ever we get such kind of pop ups from the application like alert pop up, confirmation pop up.... OR do we have any other alternative way to do this by using any functions in Recovery Scebarios? If Any of u know idea please do help me in this regard. or send answer to kravimb@gmail.com

1434


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

3597






Explain the concept of object repository and how quicktest professional (qtp) recognises objects?

614


What are the methods of the TextStream object that are used for reading from a text file?

1689


What is the difference between per-action and shared?

592


what difference between runtime object and text object and what property they have. whether they have same properties or different properties.

1709


hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com

1413


What is the difference between run time object and test object?

582


what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

1467


What does it mean when a check point is in red color? What do you do?

568


What is action?

577


How to customize qtp?

614