Example #1
0
        /// <inheritdoc/>
        public ITestCase GetNextTestCase()
        {
            this.ConnectToALM();
            ITestCase testCase;
            string    testCaseID = this.TestSet.GetCurrentTestCaseName();
            string    release    = this.TestSet.GetField("Test Case Version");
            string    collection = this.TestSet.GetField("Application Collection");

            try
            {
                if (TestCaseData is DatabaseCaseData databaseData && GetEnvironmentVariable(EnvVar.TestCaseDataArgs) == string.Empty)
                {
                    testCase = databaseData.SetUpTestCase(testCaseID, collection, release, true);
                }
                else
                {
                    testCase = TestCaseData.SetUpTestCase(testCaseID, true);
                }

                int testCondType = this.TestSet.GetCurrentTestCaseConditionType();
            }