views:

41

answers:

2

Hi all , i started hub with ant ,i dont to start rc using ant instead i want to invoke it from code .iam using junit to run rc .please suggest me how??

A: 

can any one help me running seleniumg grid.

i have started hub,if i start Rc with ant as specified in document it is working.

but i want to start the RC from code and register to hub?? and run test .

how to do it??

sasikumar
for my convienence i started junit from my servlet (which will be invoked from UI - idont want to start from command line) and started selenium = new selenium()now for same thing i want rc to started from my code and connect to grid/hub.
sasikumar
why do you want to do this?
AutomatedTester
two things i want to start my server in different port from code.then i want to run different projects from a m/c. i want my rc to be registered from my code!
sasikumar
A: 

If you really must do this, take a look at the build.xml file. The "launch-remote-control" task should give you all the information you need. You can see the Java class being invoked as well as the arguments being passed through. You'll need to make sure you have everything in the vendor/ directory on your classpath, too.

nirvdrum