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
What are testplan attributes?
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?
Can silktest switch browsers automatically?
How to open an existing silktest project?
How to specify a browser extension to a web application?
How to include a test case into a testplan?
What are the important aspects of a test case?
Where is a testplan stored?
What is stored in a test frame?
How to create and edit a testplan?
Can silktest run on mac?
What is silktest host?
How to define new testplan attributes?
What are the problems you faced while identifying an object in silk?
How to assign attribute values to test cases?