I use the kit to test chat behavior. Each user performs various actions to enter the chat in different browsers.
I performed each test separately and work fine. I also implemented one package that includes both cases: one first and then the other, and it works, but it seems like both browsers are not using this information because it does not show the user logging in. Here is an example of what I implement in java:
The open connect_facebook class extends SeleneseTestCase {
Selenium sele1 = null;
Selenium sele2 = null;
@Before
public void setUp() throws Exception {
sele1 = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.google.es/");
sele2 = new DefaultSelenium("localhost", 4444, "*googlechrome " , "http://www.facebook.com");
sele1.start();
sele2.start();
}
@Test
public void testConnect_facebook_nocookies() throws Exception {
...
}
I do not stop sele1
//Open Facebook, check the message and open Zaraproxy to start Connect
@Test
public void testCheck_mail_facebook() throws Exception {
...
}
. , , FF Chrome, Chrome sele1. FF, FF Chome, FF, sele2 Chrome.
sele2 , sele1 (FF) .
selenium HUB node ( ). RC , Grid, Grid .
! !