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 a test frame?

686


What are the default testplan attributes?

692


how to pass TDS intery in tally?

2316


What is silktest agent?

661


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

2686






What is silktest project?

639


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

680


Can silktest run on mac?

714


How to include a test case into a testplan?

636


What is multi-tagging?

680


What is the dom browser extension?

660


How to define new testplan attributes?

586


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

616


What is a silktest testplan?

713


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

700