how to call a funtion in a script? i have saved the login
scipt in notepad. with extension .vbs. But when i am
calling the function with the keyword CALL <Function Name>.
its not working out. can any one give me a clue how to call
the external functions. with example.
Answer Posted / hemakumar.m
ExecuteFile "Path of vbs file"
Call Login()
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Differences between text and test area checkpoints?
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
How to handle dynamic objects in quicktest professional?
Explain the differences between table and db checkpoints?
What is test object model in quicktest professional (qtp)?
Can the user toggle between using Local OR and shared OR for the same action?
Explain the types of object repository?
What is Curd testing?
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
How to call a test from another test?
I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object
Did the scripts need lot of maintenance? If yes, why?
What are the different types of recording modes?
How u will do versioning in QTP?
How to use Environment parameterization? Explain with an example.