/
05 - Verify Network - Windows - Android

05 - Verify Network - Windows - Android

update 29 aug 2024

After tools installation, we will check the access to Greenspector’s servers: it’s necessary to launch test on our Testbench, and to send tests results after a test on a local device.

  • Open a command prompt and type the following command:

gspt init -a https://core-saas-prod.greenspector.com/api -p [privateToken]

Replace [privateToken] with the right information available in Greenspector Core Saas, in settings.

If a custom server is used, replace also https://core-saas-prod.greenspector.com/api with the right URL.

  • After initialization, try to reach server:

gspt ping

You should receive a confirmation of a successful ping to core-saas-prod.greenspector.com:

image-20240229-121726.png
Command prompt output

Several case of failure can happen:

  1. Bad token, the following message should appear:

Unauthorized. Your token may be invalid. Please check your configuration.
  • Simply check token and redo initialization step.


  1. Bad server URL, the following message should appear:

Sending ping request on https://myurl.fr http.request: Server error (404) - content-type=text/html; charset=iso-8859-1
  • Simply check server URL and redo initialization step.


  1. Proxy issues, the following message should appear:

Please check the url of Greenspector API. You can test the url [URL] in your browser, it should return a blank page with OK displayed. If not, your url is not good. If your browser displays OK, you have to configure a proxy with the gspt set-proxy command.
  • Test server URL (example https://core-saas-prod.greenspector.com/api) on a regular browser. A blank page with “Ok” should appear:

    • If not, it’s a server URL problem. Simply check server URL and redo initialization step.

    • If yes, a proxy should probably be configured.

To confirm that a proxy is needed, try to ping with a mobile hotspot connection. If the test pass, you need to configure a proxy on your regular connection.

  • Use the following function:

gspt set-proxy
  • Give the proxy information. Here’s an example of gspt set-proxy questions:

Enter the Proxy Protocol (http or https) Proxy Protocol: http Enter the Proxy Host Proxy Host: testproxy.local Enter the Proxy Port Proxy Port: 3112 Is this proxy authenticated? (y/N) y Enter the Proxy Username: myuser Enter the Proxy Password: mypassword$1,!

If proxy configuration is unknown, open your browser settings and search proxy with search field. Use the founded information to answer gspt set-proxy questions.

Sometimes you may find url like https://wpad.myorganisation.fr/wpad.dat (wpad.[organization]/wpad.dat with [organization] your organization domain name). Open this url in your browser and you should see proxy information to use with command gspt set-proxy.