コード例 #1
0
        public void GetAllTestCases()
        {
            QaseAPI qaseAPI = new QaseAPI("https://api.qase.io/v1", "your api token");

            try
            {
                BaseFilter filterCases = new BaseFilter();
                filterCases.DictionaryFilters.Add($"filters[{TypeFilter.type}]", new List <string>()
                {
                    TypeCase.other.ToString(), TypeCase.performance.ToString()
                });

                var testCases = qaseAPI.GetAllTestCasesAsync("TEST", filterCases).Result;
            }
            catch (WebApiException ex)
            {
            }
            catch (ApiException ex)
            {
            }
            catch (Exception ex)
            {
            }
        }