private static ProjectInfo CreateProjectInfoFile()
{
var pi = new ProjectInfo();
pi.ProjectName = Instance.CurrentTestProgramSet.TestSetName;
pi.Uuid = Guid.NewGuid().ToString();
if (UutManager.ProjectHasUUT( pi.ProjectName ))
{
UUTDescription uut = UutManager.GetProjectUUT( pi.ProjectName );
if (uut != null)
{
pi.UutName = uut.name;
pi.UutId = uut.uuid;
}
}
string fileName = Path.Combine( ATMLContext.TESTSET_PATH, pi.ProjectName, "project-info.xml" );
FileManager.WriteFile( fileName, Encoding.UTF8.GetBytes( pi.Serialize() ) );
LogManager.Warn(
"Failed to find the project information file so a new file has been created." );
return pi;
}