Meyn.TestLink.TestLink.GetTestCaseIdsForTestSuite C# (CSharp) Method

GetTestCaseIdsForTestSuite() public method

get a list of testcase ids of test cases contained in a test suite
public GetTestCaseIdsForTestSuite ( int testSuiteid, bool deep ) : List
testSuiteid int id of the test suite
deep bool Set the deep flag to false if you only want test cases in the test suite provided and no child test cases.
return List
        public List<int> GetTestCaseIdsForTestSuite(int testSuiteid, bool deep)
        {
            stateIsValid();
            object o = proxy.getTestCasesForTestSuite(devkey, testSuiteid, deep, "simple");
            List<int> result = new List<int>();

            handleErrorMessage(o);

            XmlRpcStruct[] list = o as XmlRpcStruct[];
            foreach (XmlRpcStruct item in list) {
                string val = (string)item["id"];
                //string val = "2";// (string)item.Keys[0];//["id"];
                result.Add(int.Parse(val));
            }
            return result;
        }