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
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
What is 4test?
How to add objects of other pages to a test frame?
What are testplan attributes?
How to create group and sub group descriptions in a testplan?
What is the dom browser extension?
How to test your defaultbasestate?
Can silktest run on mac?
Want to lear from basic about silktest and how to write scripts. Please let me know if you know any website
What is stored in a test frame?
How to run a test case from a test script file?
What is silktest project?
What is the syntax of ui object identifier used by dom extension?
What is a silktest testplan?
What is defaultbasestate?