셀레늄 그리드를위한 ConeMU 작업을 설정하는 방법
문제
나는 이제 며칠 동안 이것을 찾았으며 좋은 자원을 발견하지 못했습니다.
ConeMU에서 셀레늄 그리드에 대한 두 가지 작업을 "한 번 클릭"으로 설정하고 싶습니다. 작업을 추가하고 시작 Dir (Selenium Grid Jar가있는 곳)을 설정합니다.
http://code.google.com/p/selenium/wiki/ GRID2 다른 매개 변수를 사용하여 해당 JAR의 두 가지 인스턴스를 시작해야합니다.
java -jar selenium-server-standalone-2.14.0.jar -role hub
.
및
java -jar selenium-server-standalone-2.14.0.jar -role node -hub http://localhost:4444/grid/register
.
ConeMU에 두 가지 작업을 원하면 셀레늄의 두 가지 인스턴스를 시작하고 싶었습니다.
로 작업을 설정하려고했습니다.-new_console:d:D:\Downloads\Programming\Selenium
java -jar selenium-server-standalone-2.14.0.jar -role hub
.
이것은 항상 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...
.
태스크에서 JAR을 사용하면 소스 경로가 열리지 않습니다. 태스크의 매개 변수로 JAR을 삭제하면 새 콘솔이 열리고 올바른 폴더로 이동합니다.
여기에서 완전히 잃어버린다 - 셀레늄 그리드를 자동으로 실행하는 작업을 설정해야합니까?
편집 1 : - 현재 설정 (-> http : // tinyurl)에서 스크린 샷을 추가했습니다. .com / q2mgkmx [내가 평판이 충분하지 않은 것처럼, 나는 tinyurl로 stackoverflow URL을 변경했다; 여기서 두려워 할 것이 없다;))]). 새 줄의 모든 항목이 ConeMU의 새로운 탭을 엽니다면이 문제가 잘못되었다는 것을 알고 있습니다. 그러나 ">"매개 변수가 탭을 "현재 탭"으로 표시 할 것으로 생각했습니다 ...
편집 2 : 은 완전성을 위해 단지 다음을 수행합니다. Windows 7에서 64 비트 클라이언트를 실행합니다.
해결책 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.
다른 팁
java -jar selenium-server-standalone-2.14.0.jar -role hub -new_console:d:D:\Downloads\Programming\Selenium
.