Monday 15 August 2011

selenium - Automating distributed system testing with multiple browser windows -



selenium - Automating distributed system testing with multiple browser windows -

i'm building distributed scheme websockets. browser clients can connect each other straight or central server. test few distributed utilize cases end-to-end.

example 1:

open browser , connect site open browser b , connect site browser sends chat message browser b confirm browser b received message

example 2:

open browser , connect site open browser b , connect site browser sends chat message browser b on browser b, "disconnect" button clicked confirm browser b not receive message on browser b, "reconnect" button clicked confirm browser received message

how can this? i've seen selenium running in parallel, haven't seen allows coordinate interaction between browsers.

your test can open many webdriver instances.

if open 2 instances in test, 1 can represent browser , other browser b.

call methods on these objects simulate scenario discuss in post.

to accomplish need utilize remotewebdriver. if hosted locally, 2 unconnected browsers on computer. if utilize grid, 2 browsers somewhere on grid, on different machines.

if want finish control, start selenium instances on 2 remote machines , utilize these hard coded machine names , b. in scenario there no grid.

word of warning though. if seek host browsers locally, cannot utilize ie multiple ie share mutual info chrome separate

selenium websocket distributed

No comments:

Post a Comment