NSFullUserName not implemented - Run from command line

Hi,

I want to run scripts from command line, like this:
“C:\Program Files\Eggplant\runscript.bat” “E:\Framework\Eggplant\CM\main.suite\Scripts\main.script”

Below is the run results:
E:\Framework\Eggplant\CM>“C:\Program Files\Eggplant\runscript.bat” “E:\Framework
\Eggplant\CM\main.suite\Scripts\main.script”
2011-06-01 20:25:18.703 Eggplant[2196] Warning: NSFullUserName not implemented
2011-06-01 20:25:23.500 Eggplant[2196] Approved License: Name = XXXX, Rema
rk = , Serial = XXXXX, Users = 4
Eggplant (10.3-2066) running in CLI mode on Host:0.
2011-06-01 20:25:24.937 Eggplant[2196] Completed EggplantTestScript main.suite -
main.script

Is it because I didn’t connect VNC server? And where can I config the connecting VNC server information? Thanks.

I tried this:
E:\Framework\Eggplant\CM>“C:\Program Files\Eggplant\runscript.bat” “E:\Framework
\Eggplant\CM\main.suite\Scripts\main.script” -host 192.168.175.25 -port 5900 -pa
ssword 1

2011-06-01 20:31:12.265 Eggplant[1760] Warning: NSFullUserName not implemented
2011-06-01 20:31:19.656 Eggplant[1760] Approved License: Name = XXXX, Rema
rk = , Serial = XXXX, Users = 4
Eggplant (10.3-2066) running in CLI mode on Host:0.
2011-06-01 20:31:41.062 Eggplant[1760] Error - Unable to Connect To 192.168.175.
25 (0)
Connection Failed: Unable to connect to Server:192.168.175.25 on port:5900
Unable to Contact Server: 192.168.175.25:5900 (Socket Error 10060 Occurred)

2011-06-01 20:31:42.234 Eggplant[1760] Completed EggplantTestScript main.suite -
main.script

The NSFullUserName warning is not significant here. You used the correct syntax to connect to a host, but Eggplant wasn’t able to make the connection. You should double check that those connect values are correct for your SUT and make sure that the Eggplant machine can reach the VNC server. You can do that from command line by typing:

curl 192.168.175.25:5900

You should see the VNC handshake response:

RFB 003.008

If you didn’t then there is a network problem.

Seems not that reason. I used Windows XP, and ping 192.168.175.25:5900, it can get response and I can reach the VNC server by VNC viewer.

[quote=“JonathanOSX”]The NSFullUserName warning is not significant here. You used the correct syntax to connect to a host, but Eggplant wasn’t able to make the connection. You should double check that those connect values are correct for your SUT and make sure that the Eggplant machine can reach the VNC server. You can do that from command line by typing:

curl 192.168.175.25:5900

You should see the VNC handshake response:

RFB 003.008

If you didn’t then there is a network problem.[/quote]

The error is definitely a failure to connect as is shown in your line.

Connection Failed: Unable to connect to Server:192.168.175.25 on port:5900
Unable to Contact Server: 192.168.175.25:5900 (Socket Error 10060 Occurred)

A few things to look at:[list]

  • Is your password actually just “1” (single character?) as shown in your connect command.
  • Is there anything special about your network, is it a VPN?
  • Can Eggplant connect in GUI mode, is this only a problem from CLI?
  • Ping uses UDP instead of TCP, if you don’t have CURL you can enter http://192.168.175.25:5900 into a web browser on the same machine and again look for the VNC signature
    [/list:u]

Today I tried again, there is no connecting error, and the scripts also run successfully. I guess the connecting error is because the VNC server is used by another user. But “Warning: NSFullUserName not implemented” is still existed. I don’t know why?
Answer for below questions:

  • The password is just single character “1”.
  • The network is normal, not a VPN.
  • EggPlant can work in GUI mode.
  • the VNC signature is RFB 003.008.

Connection Failed: Unable to connect to Server:192.168.175.25 on port:5900
Unable to Contact Server: 192.168.175.25:5900 (Socket Error 10060 Occurred)

A few things to look at:[list]

  • Is your password actually just “1” (single character?) as shown in your connect command.
  • Is there anything special about your network, is it a VPN?
  • Can Eggplant connect in GUI mode, is this only a problem from CLI?
  • Ping uses UDP instead of TCP, if you don’t have CURL you can enter http://192.168.175.25:5900 into a web browser on the same machine and again look for the VNC signature
    [/list:u]

The message “Warning: NSFullUserName not implemented” is always there and is not something to worry about. It has no impact on the script execution.

Thanks a lot!