public TestOutcome CreateFolder(string path) { TestOutcome outcome = new TestOutcome(); outcome.moduleName = "Folders"; outcome.methodName = "FolderCreate"; string folderName = "folder_new" + System.DateTime.Now.ToString("G", CultureInfo.CreateSpecificCulture("en-US")).Replace('/', '-').Replace(':', '_'); try { FoldersApi foldersApi = new FoldersApi(_url); Folder newFolder = new Folder(null, folderName, null, "this is a new folder", null, "ProjectFolder"); Folder folder = foldersApi.FolderCreate(_session.SessionId, path, newFolder); Console.WriteLine(folder.Path); outcome.outcome = "Success"; return(outcome); } catch (Exception ex) { outcome.outcome = ex.Message; return(outcome); } }