Esempio n. 1
0
 public static void SyncTestRunInstance(this HipTestApi hipTestInstance, int testRunId)
 {
     try
     {
         hipTestInstance.SyncTestRun(testRunId);
     }
     catch (Exception e)
     {
         log.Debug(e.Message);
         throw;
     }
 }
Esempio n. 2
0
 public static void UpdateHipTestRunDataInstance(this HipTestApi hipTestInstance, List <KeyValuePair <int, List <int> > > hiptestRunData, List <KeyValuePair <int, KeyValuePair <TestStatus, string> > > hipTestResults)
 {
     try
     {
         hipTestInstance.UpdateHipTestRunData(hiptestRunData, hipTestResults);
     }
     catch (Exception e)
     {
         log.Debug(e.Message);
         throw;
     }
     finally
     {
         Thread.Sleep(5000);
     }
 }
Esempio n. 3
0
 public static int CreateTestRunInstance(this HipTestApi hipTestInstance, List <int> scenarioIDs, string[] testRunDetails)
 {
     try
     {
         _testRunId = hipTestInstance.CreateTestRun(scenarioIDs, testRunDetails);
         return(_testRunId);
     }
     catch (Exception e)
     {
         log.Debug(e.Message);
         throw;
     }
     finally
     {
         Thread.Sleep(5000);
     }
 }
Esempio n. 4
0
        public static string[] SetTestRunDetails(this HipTestApi hipTestInstance, string[] testRunDetails)
        {
            try
            {
                if (_testRunDetails == null || !_testRunDetails.Any())
                {
                    _testRunDetails = new string[] { };
                    _testRunDetails = testRunDetails;
                }
                else
                {
                    _testRunDetails = testRunDetails;
                }

                return(_testRunDetails);
            }
            catch (Exception e)
            {
                log.Debug(e.Message);
                throw;
            }
        }
Esempio n. 5
0
        public static List <int> SetTestCaseID(this HipTestApi hipTestInstance, int testCaseNumber)
        {
            try
            {
                if (_hiptestRunTestCaseIDs == null || !_hiptestRunTestCaseIDs.Any())
                {
                    return(_hiptestRunTestCaseIDs = new List <int>()
                    {
                        testCaseNumber
                    });
                }
                else
                {
                    _hiptestRunTestCaseIDs.Add(testCaseNumber);
                }

                return(_hiptestRunTestCaseIDs);
            }
            catch (Exception e)
            {
                log.Debug(e.Message);
                throw;
            }
        }
Esempio n. 6
0
 public static List <KeyValuePair <int, List <int> > > BuildTestRunSnapshotDataInstance(this HipTestApi hipTestInstance, int testRunId)
 {
     try
     {
         _hiptestRunData = new List <KeyValuePair <int, List <int> > >();
         _hiptestRunData = hipTestInstance.BuildTestRunSnapshotData(testRunId);
         return(_hiptestRunData);
     }
     catch (Exception e)
     {
         log.Debug(e.Message);
         throw;
     }
 }
Esempio n. 7
0
        public static List <KeyValuePair <int, KeyValuePair <TestStatus, string> > > SetTestResultInstance(this HipTestApi hipTestInstance, KeyValuePair <int, KeyValuePair <TestStatus, string> > testResult)
        {
            try
            {
                if (_hipTestResults == null || !_hipTestResults.Any())
                {
                    _hipTestResults = new List <KeyValuePair <int, KeyValuePair <TestStatus, string> > >()
                    {
                        testResult
                    };
                }
                else
                {
                    _hipTestResults.Add(testResult);
                }

                return(_hipTestResults);
            }
            catch (Exception e)
            {
                log.Debug(e.Message);
                throw;
            }
        }