public GeneralResult CreateTestCase(string authorLogin, int testsuiteid, string testcasename, int testprojectid, string summary, TestStep[] steps, string keywords, int order, bool checkduplicatedname, ActionOnDuplicatedName actiononduplicatedname,
int executiontype, int importance)
{
string actionFlag = "block";
switch (actiononduplicatedname) {
case ActionOnDuplicatedName.Block:
actionFlag = "block";
break;
case ActionOnDuplicatedName.CreateNewVersion:
actionFlag = "create_new_version";
break;
case ActionOnDuplicatedName.GenerateNew:
actionFlag = "generate_new";
break;
}
stateIsValid();
object response = proxy.createTestCase(devkey, authorLogin, testsuiteid, testcasename, testprojectid, summary, steps, keywords, order, checkduplicatedname ? 1 : 0,
actionFlag, executiontype, importance);
handleErrorMessage(response);
if (response is object[]) {
object[] list = response as object[];
foreach (XmlRpcStruct data in list)
return new GeneralResult(data);
}
return null;
}