Unable to Fetch Available Capabilities


#1

I am using Webtestit to run a Selenium test. It is working when using a local endpoint but I’m having trouble setting up a Selenium Grid remote endpoint.

I performed these steps:

  1. Started a Selenium server and verified it is running on port 4444
    java -D"webdriver.chrome.driver=C:\drivers\chromedriver.exe" -jar .\selenium-server-standalone-3.141.59.
    jar -role hub

  2. Added a node
    java -D"webdriver.chrome.driver=C:\drivers\chromedriver.exe" -jar .\selenium-server-standalone-3.141.59.jar -role node -hub http://localhost:4444/grid/register -browser “browserName=chrome,version=77,platform=WINDOWS”

  3. Clicked New Endpoint in my Webtestit project

  4. Selected the Remote Endpoint tab

  5. Selected Selenium Grid

  6. Entered http://localhost:4444/wd/hub as the Grid-URL

  7. Clicked Fetch available capabilities

Result is an error message saying nothing more than “Fetching failed.”

I am completely stuck without any meaningful error message. As a side note, I was able to execute a simular Selenium Grid test manually in Netbeans.

Also if you are wondering, I’m just trying to develop a proof of concept to see if Webtestit is a feasable automated testing solution for my team, so at this point I don’t really care that the remote endpoint isn’t truly remote (its simply a selenium grid running locally).


#2

Hi @alanschuster02!
Strange, I could not reproduce the issue. Could you please tell us, if you type in http://localhost:4444/grid/console do you get any output?
Could you try it one more time, without the browser and platform capabilities in the node. For example:

java -jar "/Users/user/pathTO/senium-server-standalone-3.141.59.jar" -role hub

and

java -Dwebdriver.chrome.driver="/Users/user/pathTo/chromedriver" -jar "/Users/user/pathTo/selenium-server-standalone-3.141.59.jar" -role node -hub http://hubAdress:4444/grid/register/

And let us know the outcome?
If the error still persists, could you please send us the Ranorex Webtestit log file. The log file is located under C:\Users\youtUsermane.webtestit\log so that we could take a closer look at the error. You can send it at [email protected] email address.
Kind regards


#3

Thanks for the reply. Yes I do get output at that URL. And the error still occurs after removing the browser and platform capabilities in the node.

I will email you the screenshots along with the log file.


#4

Hi @alanschuster02!
The only way I could reproduce the issue is when the wrong IP address of the remote endpoint is entered, but I guess that you haven’t made a mistake in this part.
Could it be that maybe. a proxy server or a firewall is blocking Webtestit? What you could try is to re-install the app and allow the firewall prompts on a first start.
Also, perhaps setup a node on a remote machine and try to fetch the capabilities, and see what happens.
We are sorry for the inconvenience,
Regards!


#5

Yes, there is a proxy server. I reinstalled Webtestit, however I didn’t encounter any firewall prompts. I went to Preferences and filled in the HTTP proxy and HTTPS proxy fields. This did not fix the problem however.


#6

@alanschuster02 Strange, have you tried to connect end fetch to a different machine, any luck with that?