Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Using network shares from tests run from grid node
tkarlsen
#1 Posted : Tuesday, July 9, 2019 3:57:57 PM(UTC)
Rank: Member

Groups: Registered
Joined: 3/30/2017(UTC)
Posts: 19
Location: United States of America

Was thanked: 4 time(s) in 4 post(s)
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?
michaelkroes
#2 Posted : Tuesday, July 9, 2019 7:08:36 PM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 306
Location: Netherlands

Thanks: 138 times
Was thanked: 73 time(s) in 69 post(s)
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.
tkarlsen
#3 Posted : Wednesday, July 10, 2019 2:26:29 PM(UTC)
Rank: Member

Groups: Registered
Joined: 3/30/2017(UTC)
Posts: 19
Location: United States of America

Was thanked: 4 time(s) in 4 post(s)
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.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.024 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download