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...

How to Write user defined functions?

Answer Posted / kkamalay

Hi Padmaja,
with silktest you can write user defined functions as same
as c, c++

<returntype> <functionName> (Arguments list)
--------------
------------
statements
return

eg:1
Integer simpleAdd(Integer a, Integer b)
Integer c=0
c=a+b
return c

eg: 2

Void PrintStatement(String msg)
Print(msg)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is silktest host?

1094


How to record a test case?

1054


In SilkTest we have a function Except Log which displays the path of the error occured in a Script.In QTP do we have any function like that?

2539


What is the dom browser extension?

1156


What are testplan attributes?

1018


What is the standard flow of execution of a test case?

1058


How to run a test case from a testplan file?

1128


How to run a test case from a test script file?

1097


How to download latest silk test trial version?

1178


What is the syntax of ui object identifier used by dom extension?

1117


How to run all test cases in a testplan?

1143


How to create a new silktest project?

1042


How load testing can be done with silk international?

1015


What are the problems you faced while identifying an object in silk?

2474


How to create group and sub group descriptions in a testplan?

1145