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.
Answers were Sorted based on User's Feedback
Answer / hemakumar.m
ExecuteFile "Path of vbs file"
Call Login()
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / supriya
you have to associate the library function using file--
>settings-->resources
and then just call the function using its name
It will work
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sunnyk8
If it still wont work with either of these 2 options of
file-setings-resources & executefile "path of file" then the
problem is with the naming conventions
Naming conventions should b function functionname
---------------
---------
-----
End function
Is This Answer Correct ? | 0 Yes | 0 No |
Why you are Using Descriptive programming instead of Object Repository?
Explain QTP testing process?
Can anybody help me by sharing the code for checkbox in qtp using vbscript.
HOw to add the recovery file at runtime to the test file .
what are the different Frame Works in Quick Test Proffessional testing
To which environments does quicktest professional supports?
How to delete an object from the object repository?
I recorded a Web App with a Oracle backend using QTP 9.5 and for some reason the scripts don't play back> What am I missing at this point. I recorded the same Apps under Sybase and they work great. This is Oracle 10g. Why won't my scripts play back.
Can we Test Welcome Screens and Process Images with QTP
diff between wr and qtp in detail.
What is User defined function in QTP
I have the script like this: Browser("Login").Page ("Application").Frame("ScopeFrame").Link("DC3701737 (Active)").Click in which the value "DC3701737" will get changed and i have to use the same value in so many places. I got the value "DC3701737" in to a variable(Say x). Now if i want to pass the variable in to link object .. how? Browser("Login").Page("Application").Frame ("ScopeFrame").Link(x).Click Is it possible to pass any variable into a link object .. so, that the application will select that link automatically? If ur not able to understand, pls let me know.