Daily Usage Issues

Using network shares from tests run from grid node

Started by tkarlsen on 2,064 views

Some of my tests use files located on a network share that is protected by a username/password. When I run the tests locally, everything works fine. I have the network credentials cached on my dev machine. I also have the credentials cached on my NCrunch grid node machine, but I'm guessing NCrunch runs as a different user and thus can't use the cached credentials for the logged in user, so I just get the WinIOError "The specified server cannot perform the requested operation" when the tests try to access the files.

Maybe I overlooked something in the documentation or configuration, but is there any way to configure the grid node to be able to access the network shares?
Hi thanks for posting.

NCrunch runs under the LocalSystem account by default. You can change the account the service runs under by opening the services.msc from Start->Run. Find the Grid Node service and right click it and select the properties. There's a tab there that's called Log On. You can set the correct user there.

If the tests require an interactive log on, (ie a full session) you can disable the service and run the grid node manually by starting the exe from Finder.
That worked great, thanks! I guess I was so caught up in what I was doing, I completely forgot to check the service credentials. Everything is running perfectly now, appreciate it.

Post a reply

Log in to reply.