[英]Query cannot find “+” character using Rally API in C#
我一直在嘗試使用C#中的Rally的rest API,來創建一個查詢來查找包含字符“ +”的測試用例。 當我使用API創建測試用例時,使用+號將其毫無問題地插入項目中並正確顯示。 然后,當我執行查詢以找到名稱中帶有“ +”的測試用例時,將不會返回任何內容。 在調試時,我注意到查詢運算符正在從“ +”轉換為“%2B”,並且沒有返回與測試用例名稱匹配的結果。 如何獲得查詢以查找包含“ +”號的測試用例名稱? 另外,我似乎無法找到包含以下字符的測試用例:&,#,%,“”。 我的查詢請求代碼:
string testName = "Example+";
Request requestTC = new Request("TestCase");
requestTC.Project = rallyProjectRef;
requestTC.ProjectScopeDown = false;
requestTC.ProjectScopeUp = false;
requestTC.Fetch = new List<string> { "Name", "ObjectID", "TestFolder" };
requestTC.Query = new Query("Name", Query.Operator.Equals, testName);
bool noMatchesFound = true;
QueryResult findTCMatchQueryResult = m.myRestApi.Query(requestTC);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.