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

GetTestSuitesForTestPlan() public method

get test suites for a test plan
public GetTestSuitesForTestPlan ( int testplanid ) : List
testplanid int
return List
        public List<TestSuite> GetTestSuitesForTestPlan(int testplanid)
        {
            List<TestSuite> result = new List<TestSuite>();
            // empty string means none, otherwise it is name, id combo
            stateIsValid();
            object o = proxy.getTestSuitesForTestPlan(devkey, testplanid);

            handleErrorMessage(o);

            if (o is string)
                return result;
            object[] oList = o as object[];

            if (oList != null) {
                foreach (XmlRpcStruct data in oList)
                    result.Add(new TestSuite(data));
            }
            return result;
        }