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

CreateTestSuite() public method

create a new test suite
public CreateTestSuite ( int testprojectid, string testsuitename, string details, int parentId, int order, bool checkduplicatedname = true ) : GeneralResult
testprojectid int id of test project
testsuitename string Name of this test suite
details string
parentId int parent test suite id. Optional
order int display order with sibling test suites. Optional
checkduplicatedname bool if true, throw an error of a duplicate name exists. Optional, default=true
return GeneralResult
        public GeneralResult CreateTestSuite(int testprojectid, string testsuitename, string details, int parentId = 0, int order = 0, bool checkduplicatedname = true)
        {
            object[] o = null;
            stateIsValid();
            if (parentId == 0)
                o = proxy.createTestSuite(devkey, testprojectid, testsuitename, details, order, checkduplicatedname);
            else
                o = proxy.createTestSuite(devkey, testprojectid, testsuitename, details, parentId, order, checkduplicatedname);
            handleErrorMessage(o);
            foreach (XmlRpcStruct data in o)
                return new GeneralResult(data);
            return null;
        }