예제 #1
0
        public static bool IsTestFlaky(this TestCaseResult result)
        {
            var outcomeConfidenceField = result.GetCustomField(TestResultFieldNameConstants.OutcomeConfidence);

            if (outcomeConfidenceField != null &&
                outcomeConfidenceField.Value != null &&
                float.TryParse(outcomeConfidenceField.Value.ToString(), out float ocValue))
            {
                return(ocValue == TaskConstants.OutcomeConfidenceValue);
            }

            return(false);
        }