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?

Answers were Sorted based on User's Feedback



How to Write user defined functions?..

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

How to Write user defined functions?..

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

How to Write user defined functions?..

Answer / suresh

USER defined function can be written as we write them in C/
the syntax:
return type functionname(list of arguments)
]//@@@@@@@@
simple example
//@@@@@@@@@@

int sum(int a ,int b)
int sum
sum=a+b
return sum

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More Silk Test Interview Questions

Can silktest run on mac?

0 Answers  


How to write the good frame work for application.

1 Answers  


How to define new testplan attributes?

0 Answers  


How to include a test case into a testplan?

0 Answers  


can we test the application by inserting checkpoints using silktest as we do in qtp and winrunner and also what are the automation frameworks in silktest

0 Answers  


How to define an object verification in a test case?

0 Answers  


How do you create a user defined class in silk?

2 Answers  


Can silktest switch browsers automatically?

0 Answers  


What is the perpose of user-defined base state method?

3 Answers   TCS,


can any one please tell me the full form of .g.t in silktest datadriven method

0 Answers   STC,


In for test there are three pass modes for function arguments. They are rarely used since pass mode always default to the most used one. Pls name them and specify which one is a default?

3 Answers   IBM,


procedure or steps to do silk test? clearly

2 Answers  


Categories