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 / jinsha

First we have to define the function and then we have to
call the function.
Eg:
to define a function
integer biger(integer a,integer b)
if (a>b)
return a
else
return b
save the file with .inc extension as x.inc
Now to call a function
Use x.inc
test case userfn1()
int a=10
int b=5
int c=biger(a,b)
print("{c}is greater")

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1147


Where is a testplan stored?

1055


How to run all test cases in a testplan?

1185


Want to lear from basic about silktest and how to write scripts. Please let me know if you know any website

3164


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

2518


What is 4test?

1094


What is silktest host?

1145


How to run a test case from a testplan file?

1176


How to specify a browser extension to a web application?

1224


How to add objects of other pages to a test frame?

1140


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

1105


What is the segue testing methodology?

1199


How to define values for a testplan attribute?

1202


How to select a group of test cases in a testplan to run?

1065


How to define an object verification in a test case?

1121