If i need to run the test on a different remote machine using Selenium Grid what i need to do.
Where are we mentioning about which machine are we trying to run except for the fact that the node on a remote machine is registered to the hub. How can we invoke RC on the remote machine using the above TestNG file, is this proper way of invoking RC using Grid.
I don't think you can specify on which machine your want you test case to run. Hub detects the configuration of running remote machines and launches the test cases on the machine which is matching with your provided configuration.
so if you are using grid just to run all the test cases on single remote machine. Start the webdriver there only and it will pick it up automatically.