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 is dictionary object in vbscript? Explain?
write a vb script to add two 2*2 matrix
1. How do declare public variable in vb scripts?
Explain about the extension .hta?
how does vb script help in web page designing? explain with example.
How do you write an SQL insert statement?
how to genarate a random numbers in vb?
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
There are 5 web pages.write a script to click the button on 4th web page.
Mention what is variant in vbscript?
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..
Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.