Please Example programms on vbscript 1)writing functions
and calling functions
Answers were Sorted based on User's Feedback
Answer / badri
'writing function
function example()
msgbox "This is example for writing funtion"
end function
'calling the above function--just we write the function name
example()
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / cil testing team(jaipalreddy)
Public function login(x,y)
'record or write descriptive script for repeatable
operation
here xand y are arguements
End Function
'save this function in function library or copy them in
notepad or wordpad and save them with .vbs exension
While calling this function in test
call like this in test
login "Mercury","mercury"
then steps->1.File menu->settings->Resources Tab ->here
click + mark to Browse the path
->Click apply->Click Ok
Is This Answer Correct ? | 4 Yes | 0 No |
What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?
What is the difference between vb debugger and the script debugger?
Hi, I need to accept user inputs for login at runtime.I know i can use Inputbox but how to proceed further that i dont know. Thanks in advance
Write a program to create a Dynamic array of size 5 elements and display all the elements.
Here in my automation tool, i am retreiving some values and i need to store this values in the excel. How can i achieve this?. We are using VBA as scripting language. please let me know if you require any further inputs.
accept a string & display whether a is present or not
What are class properties?
What if you do not specify anything when you call a procedure?
this q asked in applabs, q is: QTP should open google.com page and enter "qtp" in one edit(search) box and click search and should open google.com again and enter "job" in edit(search) box and click on search. I tried this but getting error "Edit(search) box matches more than one object", could anyone this question plz..
what is the code in QTP to take screen shot? Please send me any one to my mail id. my mailid is manu.sanepalli@gmail.com
what is diff between static and dynaic arrys?
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.