How do you identify an exception is silk?
Answers were Sorted based on User's Feedback
Answer / jinsha
we can identify exception when an error window comes. stop
the window. run the script. abort it. next to the line
recording in the script give command do. make all statements
under do. At the end give except statement. capture the name
of the window. after except statement write
messagebox.yes.click()
print("exception handled")
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vimalkanth
in do accept block use verification statement with
exception number.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / santhosh
use the
do
...........
...........
accept log()
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / skylark
you can use "Raise" statement also
like,
if(a==b)
.....
else
raise "any comment"
| Is This Answer Correct ? | 0 Yes | 0 No |
What is silktest agent?
What statement in for test is used to transfer control of the script out of the innermost nested for, for each, while switch or selected statement?
How to specify a browser extension to a web application?
How to create a test frame?
what .inc file consists in silk?
what is the use of exception handling in Silk Test and how to use the commands?
How to run a test case from a test script file?
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 are testplan attributes?
Where are the testplan attributes stored?
What is a silktest testplan?
How to define an object verification in a test case?