2021-01-26 jira rest api

  1. get http://jira.eswin.com/rest/tests/1.0/testrun/SOC-C10?fields=id,key,name,projectId,projectVersionId,environmentId,plannedStartDate,plannedEndDate,iteration(name),executionTime,estimatedTime {"executionTime":0,"estimatedTime":7200000,"plannedStartDate":"2020-12-28T09:20:04.000Z","name":"rest-api-post-2020_1228_1720","projectVersionId":"10805","iteration":{"name":"RTL_0.1"},"id":35,"projectId":10302,"plannedEndDate":"2020-12-28T09:20:04.000Z","key":"SOC-C10"}

  2. get http://jira.eswin.com/rest/tests/1.0/project/10302/environments

  3. get http://jira.eswin.com/rest/tests/1.0/project/10302/testresultstatus

[{"isDefault":true,"color":"#cfcfc4","i18nKey":"TEST_RESULT.STATUS.NOT_EXECUTED","name":"Not Executed","index":0,"id":88,"projectId":10302},{"isDefault":false,"color":"#f0ad4e","i18nKey":"TEST_RESULT.STATUS.IN_PROGRESS","name":"In Progress","index":1,"id":89,"projectId":10302},{"isDefault":false,"color":"#3abb4b","i18nKey":"TEST_RESULT.STATUS.PASS","name":"Pass","index":2,"id":90,"projectId":10302},{"isDefault":false,"color":"#df2f36","i18nKey":"TEST_RESULT.STATUS.FAIL","name":"Fail","index":3,"id":91,"projectId":10302},{"isDefault":false,"color":"#4b88e7","i18nKey":"TEST_RESULT.STATUS.BLOCKED","name":"Blocked","index":4,"id":92,"projectId":10302},{"isDefault":false,"color":"#ffd966","name":"uvm_warn","index":5,"description":"uvm_warn in ExecMan test","id":189,"projectId":10302},{"isDefault":false,"color":"#cc0000","name":"vcs_crash","index":6,"description":"vcs_crash in ExecMan test","id":190,"projectId":10302},{"isDefault":false,"color":"#ff0000","name":"Run_TimedOut","index":7,"description":"Run_TimedOut in ExecMan test","id":191,"projectId":10302},{"isDefault":false,"color":"#ff0000","name":"uvm_error","index":8,"description":"uvm_error in ExecMan test","id":192,"projectId":10302}]

  1. get http://jira.eswin.com/rest/tests/1.0/project/10302/testcasepriority
    [{"isDefault":false,"color":"#ff0000","i18nKey":"TESTCASE.PRIORITY.HIGH","name":"High","index":0,"id":102,"projectId":10302},{"isDefault":true,"color":"#ffa900","i18nKey":"TESTCASE.PRIORITY.NORMAL","name":"Normal","index":1,"id":103,"projectId":10302},{"isDefault":false,"color":"#008000","i18nKey":"TESTCASE.PRIORITY.LOW","name":"Low","index":2,"id":104,"projectId":10302}]

  2. get http://jira.eswin.com/rest/tests/1.0/testrun/35/testrunitems?fields=id,index,issueCount,$lastTestResult
    [{'index': 0, 'id': 205, '$lastTestResult': {'id': 904, 'assignedTo': 'JIRAUSER10504', 'userKey': 'JIRAUSER10504', 'testCase': {'name': 'rest-api-trial-1111', 'id': 1062, 'majorVersion': 1, 'projectId': 10302, 'folderId': 12, 'key': 'SOC-T999', 'priorityId': 102}, 'testResultStatusId': 90}, 'issueCount': 0}, {'index': 1, 'id': 206, '$lastTestResult': {'id': 893, 'assignedTo': 'JIRAUSER10504', 'userKey': 'JIRAUSER10504', 'testCase': {'name': 'trial-rest-api', 'id': 1061, 'majorVersion': 1, 'projectId': 10302, 'folderId': 12, 'key': 'SOC-T998', 'priorityId': 103}, 'testResultStatusId': 190}, 'issueCount': 0}]

  3. get testrun/35/testresults?fields=id,testResultStatusId,automated,estimatedTime,customFieldValues,executionTime,executionDate,plannedStartDate,plannedEndDate,actualStartDate,actualEndDate,environmentId,jiraVersionId,sprintId,comment,userKey,assignedTo,testScriptResults(id,testResultStatusId,executionDate,comment,index,description,expectedResult,testData,traceLinks,attachments,sourceScriptType,parameterSetId,customFieldValues,stepAttachmentsMapping),traceLinks,attachments&itemId=205

[{'estimatedTime': 7200000, 'executedBy': 'JIRAUSER10504', 'actualEndDate': '2021-01-27T08:45:05.000Z', 'executionDate': '2021-01-27T08:45:05.000Z', 'assignedTo': 'JIRAUSER10504', 'testScriptResults': [{'sourceScriptType': 'STEP_BY_STEP', 'testData': 'bsub -Is verdi', 'expectedResult': 'passed', 'executionDate': '2021-01-27T08:44:59.000Z', 'index': 0, 'description': 'start verdiabc', 'id': 922, 'testResultStatusId': 90}, {'sourceScriptType': 'STEP_BY_STEP', 'testData': 'bsub -Is vcs', 'expectedResult': 'verified', 'executionDate': '2021-01-27T08:45:01.000Z', 'index': 1, 'description': 'start vcs456', 'id': 923, 'testResultStatusId': 90}, {'sourceScriptType': 'STEP_BY_STEP', 'testData': 'bsub -Is vc_static_lint', 'expectedResult': 'passed', 'executionDate': '2021-01-27T08:45:02.000Z', 'index': 2, 'description': 'start lint789', 'id': 924, 'testResultStatusId': 90}, {'sourceScriptType': 'STEP_BY_STEP', 'testData': 'bsub -Is vc_formal', 'expectedResult': 'passed', 'executionDate': '2021-01-27T08:45:05.000Z', 'index': 3, 'description': 'start test1357', 'id': 925, 'testResultStatusId': 90}], 'userKey': 'JIRAUSER10504', 'testResultStatusId': 90, 'sprintId': 142, 'automated': False,
'customFieldValues': [
{'stringValue': 'session-1861', 'id': 1890, 'customField': {'archived': False, 'name': 'eman-Session', 'index': 0, 'id': 15, 'type': 'SINGLE_LINE_TEXT', 'projectId': 10302, 'required': False}},
{'stringValue': '2021-01-27 16:44:38', 'id': 1891, 'customField': {'archived': False, 'name': 'eman-StartTime', 'index': 1, 'id': 14, 'type': 'SINGLE_LINE_TEXT', 'projectId': 10302, 'required': False}},
{'stringValue': '5819', 'id': 1892, 'customField': {'archived': False, 'name': 'eman-RTime', 'index': 2, 'id': 16, 'type': 'SINGLE_LINE_TEXT', 'projectId': 10302, 'required': False}}], 'jiraVersionId': '10805', 'actualStartDate': '2021-01-27T08:44:03.000Z', 'id': 904},

{'estimatedTime': 7200000, 'executedBy': 'JIRAUSER10504', 'actualEndDate': '2021-01-27T02:50:23.000Z', 'executionDate': '2021-01-27T02:50:23.000Z', 'assignedTo': 'JIRAUSER10504', 'testScriptResults': [
{'sourceScriptType': 'STEP_BY_STEP', 'testData': 'bsub -Is verdi', 'expectedResult': 'passed', 'executionDate': '2021-01-27T02:50:23.000Z', 'index': 0, 'description': 'start verdiabc', 'id': 914, 'testResultStatusId': 90},
{'sourceScriptType': 'STEP_BY_STEP', 'testData': 'bsub -Is vcs', 'expectedResult': 'verified', 'executionDate': '2021-01-27T02:50:21.000Z', 'index': 1, 'description': 'start vcs456', 'id': 915, 'testResultStatusId': 90}, {'sourceScriptType': 'STEP_BY_STEP', 'testData': 'bsub -Is vc_static_lint', 'expectedResult': 'passed', 'executionDate': '2021-01-27T02:50:19.000Z', 'index': 2, 'description': 'start lint789', 'id': 916, 'testResultStatusId': 90},
{'sourceScriptType': 'STEP_BY_STEP', 'testData': 'bsub -Is vc_formal', 'expectedResult': 'passed', 'executionDate': '2021-01-27T02:50:18.000Z', 'index': 3, 'description': 'start test1357', 'id': 917, 'testResultStatusId': 90}], 'userKey': 'JIRAUSER10504', 'testResultStatusId': 90, 'sprintId': 142, 'automated': False,
'customFieldValues': [{'stringValue': '2021-01-27 10:50:25', 'id': 1871, 'customField': {'archived': False, 'name': 'eman-StartTime', 'index': 1, 'id': 14, 'type': 'SINGLE_LINE_TEXT', 'projectId': 10302, 'required': False}}, {'stringValue': '2345', 'id': 1872, 'customField': {'archived': False, 'name': 'eman-RTime', 'index': 2, 'id': 16, 'type': 'SINGLE_LINE_TEXT', 'projectId': 10302, 'required': False}}, {'stringValue': 'session_e0001772_20210127_105125', 'id': 1873, 'customField': {'archived': False, 'name': 'eman-Session', 'index': 0, 'id': 15, 'type': 'SINGLE_LINE_TEXT', 'projectId': 10302, 'required': False}}], 'jiraVersionId': '10805', 'actualStartDate': '2021-01-27T02:50:10.000Z', 'id': 903}, {'estimatedTime': 7200000, 'executedBy': 'JIRAUSER10504', 'actualEndDate': '2021-01-26T06:32:09.000Z', 'executionDate': '2021-01-26T06:32:09.000Z', 'assignedTo': 'JIRAUSER10504', 'testScriptResults': [{'sourceScriptType': 'STEP_BY_STEP', 'testData': 'bsub -Is verdi', 'expectedResult': 'passed', 'index': 0, 'description': 'start verdiabc', 'id': 897, 'testResultStatusId': 88}, {'sourceScriptType': 'STEP_BY_STEP', 'testData': 'bsub -Is vcs', 'expectedResult': 'verified', 'index': 1, 'description': 'start vcs456', 'id': 898, 'testResultStatusId': 88}, {'sourceScriptType': 'STEP_BY_STEP', 'testData': 'bsub -Is vc_static_lint', 'expectedResult': 'passed', 'index': 2, 'description': 'start lint789', 'id': 899, 'testResultStatusId': 88}], 'userKey': 'JIRAUSER10504', 'testResultStatusId': 189, 'sprintId': 139, 'automated': False, 'customFieldValues': [{'stringValue': 'session_e0001772_222', 'id': 1861, 'customField': {'archived': False, 'name': 'eman-Session', 'index': 0, 'id': 15, 'type': 'SINGLE_LINE_TEXT', 'projectId': 10302, 'required': False}}, {'stringValue': '11:13', 'id': 1862, 'customField': {'archived': False, 'name': 'eman-StartTime', 'index': 1, 'id': 14, 'type': 'SINGLE_LINE_TEXT', 'projectId': 10302, 'required': False}}], 'jiraVersionId': '10805', 'actualStartDate': '2021-01-26T06:32:09.000Z', 'id': 890}, {'estimatedTime': 7200000, 'executedBy': 'JIRAUSER10504', 'actualEndDate': '2021-01-25T08:49:00.000Z', 'executionDate': '2021-01-25T08:49:00.000Z', 'assignedTo': 'JIRAUSER10504', 'testScriptResults': [{'sourceScriptType': 'STEP_BY_STEP', 'testData': 'bsub -Is verdi', 'expectedResult': 'passed', 'executionDate': '2021-01-25T08:48:57.000Z', 'index': 0, 'description': 'start verdiabc', 'id': 785, 'testResultStatusId': 90}, {'sourceScriptType': 'STEP_BY_STEP', 'testData': 'bsub -Is vcs', 'expectedResult': 'verified', 'executionDate': '2021-01-25T08:48:59.000Z', 'index': 1, 'description': 'start vcs456', 'id': 786, 'testResultStatusId': 90}, {'sourceScriptType': 'STEP_BY_STEP', 'testData': 'bsub -Is vc_static_lint', 'expectedResult': 'passed', 'executionDate': '2021-01-25T08:49:00.000Z', 'index': 2, 'description': 'start lint789', 'id': 787, 'testResultStatusId': 90}], 'userKey': 'JIRAUSER10504', 'testResultStatusId': 90, 'sprintId': 139, 'automated': False, 'jiraVersionId': '10805', 'actualStartDate': '2021-01-25T08:48:54.000Z', 'id': 780}]

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 159,835评论 4 364
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 67,598评论 1 295
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 109,569评论 0 244
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 44,159评论 0 213
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 52,533评论 3 287
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,710评论 1 222
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,923评论 2 313
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,674评论 0 203
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,421评论 1 246
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,622评论 2 245
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 32,115评论 1 260
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,428评论 2 254
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 33,114评论 3 238
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,097评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,875评论 0 197
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,753评论 2 276
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,649评论 2 271

推荐阅读更多精彩内容