コード例 #1
0
 public void Cleanup()
 {
     try
     {
         bool   retainResults = (ReportingUtilities.InterpretTestOutcome(test) == Result.Pass || (test.TestInfo.Bugs != null && test.TestInfo.Bugs.Count != 0));
         string traceName     = MakeTraceName(test);
         ExecutionEventLog.RecordStatus("Ending Code Coverage session - Saving Code Coverage Trace Results.");
         CodeCoverageUtilities.EndTrace(logDirectory, retainResults, traceName);
     }
     //Hitting a null-ref somewhere in the cleanup logic - need to understand source.
     catch (Exception e)
     {
         ExecutionEventLog.RecordException(e);
     }
 }
コード例 #2
0
ファイル: Datasource.cs プロジェクト: RHEAGROUP/COMET-Reports
    // Initialize the Variables using an Option.
    public static void SetVariables(Option option)
    {
        if (option != null)
        {
            LauncherAdapterPath = ReportingUtilities.ConvertToOptionPath(LauncherAdapterPath, option);
            FuelMassPath        = ReportingUtilities.ConvertToOptionPath(FuelMassPath, option);
            OxidizerMassPath    = ReportingUtilities.ConvertToOptionPath(OxidizerMassPath, option);
            PressurantMassPath  = ReportingUtilities.ConvertToOptionPath(PressurantMassPath, option);
            PropellantMassPath  = ReportingUtilities.ConvertToOptionPath(PropellantMassPath, option);

            // Get the tree of NestedElements for the selected Option.
            NestedElements = new NestedElementTreeGenerator().Generate(option).ToList();

            // Get all contained NestedParameters from the tree of NestedElements for the selected Option
            NestedParameters = new NestedElementTreeGenerator().GetNestedParameters(option).ToList();
        }
    }