qileilove

          blog已經(jīng)轉(zhuǎn)移至github,大家請訪問 http://qaseven.github.io/

          軟件測試管理工具—JIRA使用初體驗

          JIRA 使用神奇的JQL查詢數(shù)據(jù),很nice啊 !
            官網(wǎng)API:   https://docs.atlassian.com/jira/REST/latest/#d2e2344
            測試一下search:
          /rest/api/2/search
          request query parameters
          parametervaluedescription
          jql
          string
          a JQL query string
          startAt
          int
          the index of the first issue to return (0-based)
          maxResults
          int
          the maximum number of issues to return (defaults to 50). The maximum allowable value is dictated by the JIRA property 'jira.search.views.default.max'. If you specify a value that is higher than this number, your search results will be truncated.
          validateQuery
          boolean
          Default:true
          whether to validate the JQL query
          fields
          string
          the list of fields to return for each issue. By default, all navigable fields are returned.
          expand
          string
          A comma-separated list of the parameters to expand.
            其中jql 是一個JQL的query string。  
            測試代碼:
          string url = baseURL + "/search?jql=assignee=" +username +" and (status=1 or status=2)";
          HttpWebRequest req = WebRequest.Create(url) as HttpWebRequest;
          try
          {
          req.ContentType = "application/json";
          req.Headers.Add("Authorization", "Basic " + m_authString);
          using (HttpWebResponse resp = req.GetResponse() as HttpWebResponse)
          {
          StreamReader reader = new StreamReader(resp.GetResponseStream());
          response = reader.ReadToEnd();
          }
          }
          catch (Exception e)
          {
          response = e.Message;
          m_errorMsg = e.Message;
          return false;
          }
            也可以直接裝好以后,用url直接回車訪問上述創(chuàng)建的鏈接,會直接得到數(shù)據(jù)信息到頁面

          posted on 2014-10-30 11:00 順其自然EVO 閱讀(282) 評論(0)  編輯  收藏 所屬分類: 測試學習專欄

          <2014年10月>
          2829301234
          567891011
          12131415161718
          19202122232425
          2627282930311
          2345678

          導航

          統(tǒng)計

          常用鏈接

          留言簿(55)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 调兵山市| 海城市| 上饶县| 六枝特区| 阜平县| 九寨沟县| 铁岭县| 涟源市| 万安县| 六盘水市| 马边| 金湖县| 白水县| 广丰县| 迁西县| 阆中市| 京山县| 凤山县| 图木舒克市| 山西省| 舞钢市| 罗田县| 巨野县| 于都县| 赞皇县| 贵德县| 合川市| 萝北县| 长沙县| 墨脱县| 汨罗市| 克拉玛依市| 前郭尔| 大英县| 和平区| 西峡县| 图木舒克市| 泰兴市| 漳州市| 郎溪县| 胶南市|