Please Example programms on vbscript 1)writing functions
and calling functions

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you get the natural logarithm of the given number in vbscript?

608


Explain the string concatenation function in vbscript?

546


How to throw an error in vbscript?

615


What are the valid scopes of a variable in vbscript?

614


What are the uses of vb script?

591






Differentiate javascript and vbscript?

573


Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..

2028


What are the data types supported by vbscript?

583


What are keywords in the vbscript language?

530


Both Static and dynamic arrays are handled by VB script. Is it true?

619


how to set one column as primary key in QTP and fetch values accordingly

1830


Which operator is used to concatenate the 2 values in the vbscript language?

563


Why is error handling required?

580


Mention how you can call vbscript functions?

587


What are lbound and ubound in the vbscript language?

610