Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

please can you help me to get a code of flames using a visual basic 6

1856


What are the rules to name variable in vbscript?

1137


What are class properties?

1226


can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.

2357


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1933


hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?

2231


Mention what is the technology used by vb script?

1014


Mention the environments where vbscript could be run?

1302


What is the use of the formatdatetime function in the vbscript language?

1073


What methods are used to create text files and open text files in the vbscript language?

1025


What is the main difference between function and sub-procedure?

1107


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

1045


when we use filter funtiom invb script(QTP)

2836


What is the event handling in vbscript?

1031


How will you get the last occurrence of one string within another string using vbscript?

1242