-1

わかりました-私の元の質問に特異性がないことをお詫びします。これが私がやろうとしていることです-特定のブラウザのテストケースのテストケース結果でRallyを更新します。更新コードのスニペット:

    DynamicJsonObject newTestCaseResult = new DynamicJsonObject();

    newTestCaseResult["Date"] = "2012-04-25";
    newTestCaseResult["TestCase"] = "TC1234";
    newTestCaseResult["Notes"] = "XSLT support tests";
    newTestCaseResult["Build"] = "20120430.3681";
    newTestCaseResult["Verdict"] = "Pass";

    // Create the TestCaseResult
    CreateResult cr = restApi.Create("TestCaseResult", newTestCaseResult);

作成ステップで次の例外が発生します。

           {System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.}

私がどこで間違っているのかについて何か考えはありますか?この質問は、改善された特異性の必要性を満たしていますか?

4

1 に答える 1

1

コメントセクションの私のコメントによると、この質問が再開されたことに注意して、FormattedIDの代わりに参照を使用するようにTestCaseの割り当てを調整することをお勧めします。

    newTestCaseResult["TestCase"] = "/testcase/12345678";

ここで、longintは問題のテストケースのOIDです。

于 2012-05-07T19:03:32.753 に答える