So I have these lines of code right here-
// on a network location
string fileName = @"S:\Information Technology\QA\Automation\jsons\scheduler_ready\patientInfo.json";
string json = TestHelper.GetJsonFromFilePath(fileName);
patient = TestHelper.ExtractJsonData(json);
I have a NUnit test that relies on these getting information from a JSON. The issue I'm having is the execution. When I run through Visual Studio, I can read the filepath just fine. But when I execute through NUnit-Console runner, I get an error that says "part of file path not found" for the json.
I researched and so far no luck. Has anyone come into contact with this problem?
Do I need to take extra steps to tell the console that it is my user that is accessing this file location?
EDIT
I changed my file path to a local location. It seems I can't access a network drive through the nunit-console runner. Is there a way to accomplish this?