hasTestCases()
1 | issue in hasTestCases() | 搜索与测试用例相关的要求 |
2 | issue in hasTestCases('issueKey1','issueKey2') | 搜索已指定相关测试用例的要求 |
3 | issue not in hasTestCases() and type = 'Requirement' | 搜索没有相关测试用例的需求 |
4 | issue in hasTestCases('project = <projectKey> AND component = "<Component Name">') 注意:外部引号应为单引号,否则将返回语法错误。 | 搜索具有一组相关测试用例的需求,这些测试用例由嵌套函数返回('project=<projectKey>AND component=“<component Name”>') |
requirementSuite()
1 | issue in requirementSuite() | 在任何需求套件中搜索需求 |
2 | issue in requirementSuite('Requirement Suite Name') | 在根需求套件中搜索需求 |
3 | issue in requirementSuite('Requirement Suite 1/Sub Requirement Suite') | 在特定需求套件(根需求套件内)中搜索需求 |
4 | issue in requirementSuite('Requirement Suite 1','Requirement Suite 1') | 在多个特定需求套件中搜索需求 |
5 | issue not in requirementSuite() | 搜索不在任何需求套件中的需求 |
requirementsFromBaseline()
1 | issue in requirementsFromBaseline("projectKey", "groupName", "baselineName") | 查询相关需求 · Project = projectKey · Baseline Group = groupName · Baseline = baselineName |
requirementsInBug()
1 | issue in requirementsInBug('issueKey') | 搜索报告给定缺陷问题密钥的汇总需求 |
2 | issue in requirementsInBug('issueKey','True') | 搜索报告给定缺陷问题密钥的汇总需求 |
3 | issue in requirementsInBug('issueKey','False') | 直接搜索报告给定缺陷问题密钥的要求 |
bugsInTestPlan()
1 | issue in bugsInTestPlan('issueKey') | 搜索从测试计划中创建的Bug |
2 | issue in bugsInTestPlan('issueKey1','issueKey2') | 搜索与给定的测试计划密钥issueKey1和issueKey2相关的Bug |
3 | issue in bugsInTestPlan('project = <projectKey> AND component = "<Component Name">') Note: The outer quote should be a single quote ' , otherwise it will return syntax error. | 搜索与一组测试计划关联的Bug,这些测试计划由嵌套函数返回('project=<projectKey>AND component=“<component Name”>') |
bugsInTestCase()
1 | issue in bugsInTestCase('issueKey') | 搜索与给定测试用例密钥issueKey相关的Bug |
2 | issue in bugsInTestCase('issueKey1','issueKey2') | 搜索与给定测试用例密钥issueKey1和issueKey2相关的Bug。 |
3 | issue not in bugsInTestCase("") and issuetype = Bug | 搜索与任何测试用例无关的Bug。 |
4 | issue in bugsInTestCase('project = <projectKey> AND component = "<Component Name">') Note: The outer quote should be a single quote ' , otherwise it will return syntax error. | 搜索与一组测试用例关联的Bug,这些测试用例由嵌套函数返回('project=<projectKey>AND component=“<component Name”>') |
bugsInCycle()
1 | issue in bugsInCycle('TestCycleName') | 搜索与给定测试周期名称关联的Bug。允许进行通配符搜索。 |
bugsInRequirement()
1 | issue in bugsInRequirement('issueKey') | 搜索与给定需求密钥issueKey相关的Bug |
2 | issue in bugsInRequirement('issueKey1','issueKey2') | 搜索与给定需求密钥issueKey1和issueKey2相关的Bug |
3 | issue in bugsInRequirement('project = <projectKey> AND component = "<Component Name">') Note: The outer quote should be a single quote ' , otherwise it will return syntax error. | 搜索与一组需求相关联的Bug,这些需求由嵌套函数返回('project=<projectKey>AND component=“<component Name”>') |
bugsInBuild()
1 | issue in bugsInBuild('BuildName') | 搜索与给定构建名称关联的Bug |
2 | issue in bugsInBuild('BuildName1','BuildName2') | 搜索与给定版本名关联的Bug |
bugsInEnvironment()
1 | issue in bugsInEnvironment('EnvName') | 搜索与给定环境名称关联的Bug。 |
2 | issue in bugsInEnvironment('EnvName1','EnvName2') | 搜索与给定环境名称关联的Bug |
hasActiveCycle()
1 | issue in hasActiveCycle() | 搜索所有具有活动测试周期的测试计划 |
hasCycleWithBugs()
1 | issue in hasCycleWithBugs() | 搜索所有包含Bug的测试周期的测试计划 |
testPlansWithoutTestCases()
1 | issue in testPlansWithoutTestCases() | 搜索所有未关联任何测试用例的测试计划 |
hasCycleWithUnresolvedBugs()
1 | issue in hasCycleWithUnresolvedBugs() | 搜索所有具有未解决Bug的测试周期的测试计划 |
hasCycleWithFailedTestCases()
1 | issue in hasCycleWithFailedTestCases() | 搜索所有具有失败测试用例的测试周期的测试计划 |
hasCycleWithBlockedTestCases()
1 | issue in hasCycleWithBlockedTestCases() | 搜索所有具有已阻止测试用例的测试周期的测试计划 |
hasCycleWithUntestedTestCases()
1 | issue in hasCycleWithUntestedTestCases() | 搜索所有具有未测试测试用例的测试周期的测试计划 |
hasCyclesOfDefectCount()
1 | issue in hasCyclesOfDefectCount("10") | 搜索缺陷计数等于10的测试周期的所有测试计划 |
2 | issue in hasCyclesOfDefectCount("<=","10") | 搜索缺陷计数小于或等于10的测试周期的所有测试计划 |
3 | issue in hasCyclesOfDefectCount(">=","10") | 搜索缺陷计数大于或等于10的测试周期的所有测试计划 |
testPlanMembers()
1 | issue in testPlanMembers("issueKey") | 搜索与给定测试计划密钥issueKey关联的测试用例 |
2 | issue in testPlanMembers("issueKey","Result") | 搜索与给定测试计划和给定执行结果关联的测试用例 |
3 | issue not in testPlanMembers("issueKey") | 搜索给定测试计划中不存在的测试用例。 |
4 | issue in testPlanMembers('project = <projectKey> AND component = "<Component Name">') Note: The outer quote should be a single quote ' , otherwise it will return syntax error. | 搜索与一组测试计划关联的测试用例,这些测试计划由嵌套函数返回('project=<projectKey>AND component=“<component Name”>') |
5 | issue in testPlanMembers('project = <projectKey> AND component = "<Component Name">','Result') Note: The outer quote should be a single quote ' , otherwise it will return syntax error. | 搜索与一组测试计划关联的测试用例,并使用给定的执行结果,这些测试计划由嵌套函数返回('project=<projectKey>and component=“<component Name”>') |
testPlanMembersWithLatestResult()
1 | issue in testPlanMembersWithLatestResult("testPlanKey","Result") | 从给定的测试计划中搜索具有等于指定“结果”(例如失败)的最新测试结果的测试用例 |
2 | issue in testPlanMembersWithLatestResult("testPlanKey","Result1","Result2") | 从给定的测试计划中搜索具有等于指定“结果1”或“结果2”(例如失败或阻止)的最新测试结果的测试用例 |
3 | issue in testPlanMembersWithLatestResult('project = <projectKey> AND component = "<Component Name">','Result') Note: The outer quote should be a single quote ' , otherwise it will return syntax error. | 从一组测试计划中搜索具有等于指定“结果”(例如失败)的最新测试结果的测试用例,这些测试计划由嵌套函数返回('project=<projectKey>AND component=“<component Name”>') |
4 | issue in testPlanMembersWithLatestResult('project = <projectKey> AND component = "<Component Name">','Result1','Result2') Note: The outer quote should be a single quote ' , otherwise it will return syntax error. | 从一组测试计划中搜索具有等于指定“Result1”或“Result2”(例如失败或阻止)的最新测试结果的测试用例,这些测试计划由嵌套函数返回('project=<projectKey>AND component=“<component Name”>') |
testCasesInBug()
1 | issue in testCasesInBug("bugKey") | 搜索与给定Bug Key issueKey关联的测试用例 |
2 | issue not in testCasesInBug("") and issuetype = "Test Case" | 搜索与任何Bug无关的测试用例 |
3 | issue in testCasesInBug('project = <projectKey> AND component = "<Component Name">') Note: The outer quote should be a single quote ' , otherwise it will return syntax error. | 搜索与一组Bug关联的测试用例,这些Bug由嵌套函数返回('project=<projectKey>AND component=“<component Name”>') |
executePeriod()
请注意,支持的日期格式为:yyyy-MM-dd
1 | issue in executePeriod("startDate","endDate") | 搜索在给定时间段内执行的测试用例 |
childrenOfParentRequirement()
1 | issue in childrenOfParentRequirement("issueKey") | 仅搜索具有给定需求密钥issueKey的直接子项。 |
2 | issue in childrenOfParentRequirement("issueKey","all") | 使用给定的需求密钥issueKey立即搜索各级学校及其孙子孙女。 |
3 | issue in childrenOfParentRequirement('project = <projectKey> AND component = "<Component Name">') Note: The outer quote should be a single quote ' , otherwise it will return syntax error. | 仅搜索一组需求中的直接子需求,这些需求由嵌套函数返回('project=<projectKey>AND component=“<component Name”>') |
4 | issue in childrenOfParentRequirement('project = <projectKey> AND component = "<Component Name">','all') Note: The outer quote should be a single quote ' , otherwise it will return syntax error. | 从一组需求中搜索所有级别的直接需求及其子需求,这些需求由嵌套函数返回('project=<projectKey>and component=“<component Name”>') |
parentRequirement()
.
1 | issue in parentRequirement() | 搜索所有链接了子需求的需求 |
2 | issue in parentRequirement("Root") | 搜索所有链接了子需求的顶级需求 |
3 | issue in parentRequirement("issueKey") | 使用给定的子需求密钥issueKey搜索直接父需求 |
4 | issue in parentRequirement("issueKey1","issueKey2") | 使用给定的子需求密钥issueKey1、issueKey2搜索直接父需求 |
5 | issue in parentRequirement('project = <projectKey> AND component = "<Component Name">') Note: The outer quote should be a single quote ' , otherwise it will return syntax error. | 从一组子需求中搜索直接父需求,这些子需求由嵌套函数返回('project=<projectKey>AND component=“<component Name”>') |
testPlansForTester()
1 | issue in testPlansForTester("username") | 搜索分配了测试人员(=用户名)的测试计划 |
testCycleMembers()
1 | issue in testCycleMembers('TestPlanissueKey','TestCycleName') | 搜索指定测试周期中的所有测试用例成员 |
2 | issue in testCycleMembers('TestPlanissueKey','TestCycleName','Not Tested') | 搜索指定测试周期中的所有“未测试”测试用例成员 |
3 | issue in testCycleMembers('TestPlanissueKey','TestCycleName','NA') | 搜索指定测试周期中的所有“NA”测试用例成员 |
4 | issue in testCycleMembers('TestPlanissueKey','TestCycleName','Passed') | 从指定的测试周期中搜索所有“通过”的测试用例成员 |
5 | issue in testCycleMembers('TestPlanissueKey','TestCycleName','Failed') | 从指定的测试周期中搜索所有“失败”的测试用例成员 |
6 | issue in testCycleMembers('TestPlanissueKey','TestCycleName','Blocked') | 从指定的测试周期中搜索所有“阻止”的测试用例成员 |
testersOfCycle
1 | testerOfCycle = <username> | 搜索分配给给定Jira用户的测试执行 |
2 | testersOfCycle = currentUser() | 搜索分配给当前Jira用户的测试执行 |
resultsOfCycle
1 | resultsOfCycle = <result> | 使用给定的测试结果搜索测试执行 |
2 | resultsOfCycle in ("Result1","Result2") | 使用给定的测试结果搜索测试执行 |
testersOfCycle()
1 | issue in testersOfCycle("username") | 搜索分配给给定Jira用户的测试执行 |
2 | issue in testersOfCycle("username1","username2") | 搜索分配给给定Jira用户的测试执行 |
resultsOfCycle()
1 | issue in resultsOfCycle("Result") | 使用给定的测试结果搜索测试执行 |
2 | issue in resultsOfCycle("Result1","Result2") | 使用给定的测试结果搜索测试执行 |
runAttributeOfCycle()
1 | issue in runAttributeOfCycle("runAttributeValue1") | 使用给定的run属性值搜索测试执行 |
2 | issue in runAttributeOfCycle("runAttributeValue1","runAttributeValue2") | 使用给定的run属性值搜索测试执行 |