/// <summary> Kicks off all batches specified. </summary>
        /// <param name="batchDirectory"> A directory to load Test batches from. </param>
        /// <param name="chassisManagerEndPoint"> Chassis Manager endpoint uri. </param>
        public void RunAllFrameworkBatches(string batchDirectory, string chassisManagerEndPoint, string userName, string userPassword)
        {
            var    globalParameters = Parameters.GetSampleParameters();
            string exceptionMessage = null;

            Assert.IsTrue(
                Directory.GetFiles(batchDirectory ?? @".", "*Batch.xml").Any(),
                String.Format("No batch found matching *Batch.xml in directory '{0}'", batchDirectory));
            foreach (var batchDefinitionFile in Directory.GetFiles(batchDirectory ?? @".", "*Batch.xml"))
            {
                try
                {
                    this.RunFrameworkBatch(
                        TestBatch.LoadBatch(batchDefinitionFile), chassisManagerEndPoint, globalParameters, userName, userPassword);
                }
                catch (Exception ex)
                {
                    exceptionMessage = ex.Message;
                }
            }

            Assert.IsTrue(
                string.IsNullOrEmpty(exceptionMessage),
                string.Format("At least one Batch failed to Load/Run;\n{0}", exceptionMessage));
        }
        /// <summary> Kicks off batch specified. </summary>
        /// <param name="batchDefinitionFile"> A Test batch objectame of batch file to load and run. </param>
        /// <param name="chassisManagerEndPoint"> Chassis Manager endpoint uri. </param>
        public void RunFrameworkBatch(string batchDefinitionFile, string chassisManagerEndPoint, string userName, string userPassword)
        {
            var batch = TestBatch.LoadBatch(batchDefinitionFile);

            this.RunFrameworkBatch(batch, chassisManagerEndPoint, Parameters.GetSampleParameters(), userName, userPassword);
        }