How to Write user defined functions?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to assign attribute values to test cases?

626


What is defaultbasestate?

589


How to create a test frame?

618


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

546


What is a test frame?

607






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

600


How load testing can be done with silk international?

544


How to define an object verification in a test case?

618


Hi All, An newbiee to silk test tool. I wanted to write a function which checks the browser type installed in the local machine & then based on the browser type test case should run. I tried little bit writing the function : Void Func_ValidateBrowserType() Window myWin myWin = Browser.GetRealBrowser () print (myWin) Any help please.. Thanks, V

2036


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

587


How to create and edit a testplan?

571


How to open an existing silktest project?

555


What is 4test?

592


What is a silktest testplan?

612


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?

2060