Pregunta

Busqué esto durante algunos días y no he encontrado un buen recurso.

Quiero configurar dos tareas para que la cuadrícula de selenio funcione "con solo un clic" en CONEMU. Agregué una tarea y configuré un directorio de inicio (donde se encuentra el frasco de la rejilla de selenio).

De acuerdo con http://code.google.com/p/selenium/wiki/ Grid2 Necesito iniciar dos instancias de ese frasco con diferentes parámetros:

java -jar selenium-server-standalone-2.14.0.jar -role hub

y

java -jar selenium-server-standalone-2.14.0.jar -role node  -hub http://localhost:4444/grid/register

Quería tener dos tareas en CONEMU para iniciar esas dos instancias de selenio. Intenté configurar una tarea con

-new_console:d:D:\Downloads\Programming\Selenium

java -jar selenium-server-standalone-2.14.0.jar -role hub

Esto siempre me lleva a seguir la salida en CONEMU

Error: Unable to access jarfile selenium-server-standalone-2.14.0.jar

Current directory:
C:\Program Files\ConEmu\ConEmu

Command to be executed:
"C:\Windows\system32\java.exe" -jar selenium-server-standalone-2.14.0.jar -role hub

ConEmuC: Root process was alive less than 10 sec, ExitCode=1.
Press Enter or Esc to close console...

Con el frasco en la tarea no abrirá la ruta de origen. Al eliminar el frasco con parámetros en la tarea, una nueva consola se abre y navega a la carpeta correcta.

Estoy totalmente perdido aquí: ¿cómo tengo que configurar una tarea para ejecutar la cuadrícula de selenio automáticamente?

Editar 1: Añadido una captura de pantalla de la configuración actual (-> http:// tinyurl .com / Q2MGKMX [A medida que no tengo suficiente reputación, modificé la URL de StackOverflow con TinyURL; nada que temer aquí;)]). Sé que esto está mal, ya que cada entrada en una nueva línea abre una nueva pestaña en CONEMU. Pero pensé que el parámetro ">" marcaría la pestaña como "pestaña actual" ...

Editar 2: Solo para completar: ejecuto el cliente 64bit en Windows 7.

¿Fue útil?

Solución 2

I found a solution! yay

Screenshot of working hub and node: http://tinyurl.com/njkszq6 (Stackoverflow image)

I don't know if this might work better if set up in another way, but this should be fine for now. This is the setup I twiddled together from various sources:

>cmd /k color 4C & cd /d "D:\Downloads\Programming\Selenium" -cur_console:t:Hub & java -jar selenium-server-standalone-2.40.0.jar -role hub

>cmd /k RenameTab "Node" & color 2A & cd /d "D:\Downloads\Programming\Selenium" -cur_console:s1TVn & java -jar selenium-server-standalone-2.40.0.jar -role node

Screenshot of ConEmu setup: http://tinyurl.com/pnfyta5 (Stackoverflow image)

This opens both console windows on top and bottom of ConEmu. I added color to both windows. And they both start the respective hub and node of Selenium.

I still don't know why Maximus' line of code did not do the magic trick. But it was a really good hint on where to head to.

@Maximus: If you can shed some light into this, I would appreciate it greatly!

Edit: I added Maximus' hints to the setup.

Otros consejos

java -jar selenium-server-standalone-2.14.0.jar -role hub -new_console:d:D:\Downloads\Programming\Selenium
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top