質問

私は今何日の間これを検索し、良いリソースを見つけていません。

Conemuで「ワンクリックで」作業するためのセレングリッドの2つのタスクを設定したいです。タスクを追加し、スタートアップディレクトリ(Selenium Grid Jarが配置されている場所)を設定しました。

私は異なるパラメータを持つそのjarの2つのインスタンスを起動する必要があります:

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には2つのタスクがありたいと思いました。これら2つのセレンのインスタンスを開始したいと思いました。

でタスクを設定しようとしました
-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:現在のセットアップからスクリーンショットを追加しました( - > href="http://tinyurl.com/q2mgkmx" refolll.com/q2mgkmx" refollow"> http:// tinyurl .com / q2mgkmx [十分な評判がないので、TinyURLでStackOverflow URLを変更しました。ここで恐れていません。)])新しい行のすべてのエントリがCONEMUの新しいタブを開くと、これが間違っていることを知っています。しかし、私は ">"パラメータが「現在のタブ」としてタブをマークすると思いました...

編集2:完全な場合:私はWindows 7で64bitクライアントを実行します。

役に立ちましたか?

解決 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
.
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top