Interview Questions

How to launch 2 web application windows simultaneously thru Silktest?

SilkTest Questions and Anwsers


(Continued from previous question...)

124. How to launch 2 web application windows simultaneously thru Silktest?

Testing a login feature for web application.
In the first window login will be successful, in the second window it will show error that user is already logged in.
But with the Recovery system set in SIlktest I can only launch One application window at a time.
How to launch 2 web application windows simultaneously thru Silktest?


Browser.Invoke ()
Browser.LoadPage ("URL for login screen")
Browser.WaitForReday ()
// Do login
Browser.Invoke ()
Agent.SetOption (OPT_VERIFY_UNIQUE, FALSE)
Browser.LoadPage ("URL for login screen")
Browser.WaitForReday ()
// Attempt to login and verify the message
Agent.SetOption (OPT_VERIFY_UNIQUE, TRUE)
Browser.TypeKeys ("<Alt-F4>")

(Continued on next question...)

Other Interview Questions