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 are testplan attributes?

765


How to include a test case into a testplan?

739


How to run a test case from a testplan file?

814


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

3037


how to pass TDS intery in tally?

2421


Where are the testplan attributes stored?

736


What is multi-tagging?

771


What is defaultbasestate?

824


How to specify a browser extension to a web application?

790


What is a test frame?

780


What are the important aspects of a test case?

783


What is the segue testing methodology?

840


What is silktest host?

820


What are the types of text lines in a testplan file?

771


What is silktest project?

734