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
How to run all test cases in a testplan?
Is there any way of passing values at runtime? Like scanf does in C.
How to test your defaultbasestate?
What are the default testplan attributes?
What is stored in a test frame?
What is the standard flow of execution of a test case?
Can silktest switch browsers automatically?
How to run a test case from a testplan file?
What are the types of text lines in a testplan file?
How to run a test case from a test script file?
How to define values for a testplan attribute?
What is the vo browser extension?
How record a test case into a testplan automatically?
How to specify a browser extension to a web application?
How to create a test frame?