SynapseRT JQL查询语句

SynapseRT NextGen提供以下与此插件相关的JQL查询功能:

  • testSuite()

  • hasRequirements()

  • hasTestCases()

  • bugsInTestPlan()

  • bugsInCycle()

  • bugsInTestCase()

  • bugsInRequirement()

  • bugsInBuild()

  • bugsInEnvironment()

  • hasActiveCycle()

  • hasCycleWithBugs()

  • hasCycleWithUnresolvedBugs()

  • hasCycleWithFailedTestCases()

  • hasCycleWithBlockedTestCases()

  • hasCycleWithUntestedTestCases()

  • hasCyclesOfDefectCount()

testSuite()

以下是testSuite() JQL功能的使用实例。

序号

用法

功能描述

1

issue in testSuite()

搜索项目中的所有测试用例。

2

issue in testSuite('Test Suite Name')

搜索某个特定根测试用例集中的测试用例。

3

issue in testSuite('Test Suite 1/Sub Test Suite')

搜索某个特定测试用例集中的测试用例(包含在根测试用例集下的子测试用例集)。

4

issue in testSuite('Test Suite 1','Test Suite 2')

搜索多个测试用例集中的测试用例。

5

issue not in testSuite()

搜素没有关联到任何测试用例集的测试用例。

hasRequirements()

以下是hasRequirements() JQL功能的使用实例。

序号

用法

功能描述

1

issue in hasRequirements()

搜索所有关联了需求的测试用例。

2

issue in hasRequirements('Issuekey1','Issuekey2')

搜索所有关联了指定需求的测试用例。

3

issue not in hasRequirements() and type = 'Test Case'

搜索所有没有关联任何需求的测试用例。

hasTestCases()

以下是hasTestCases() JQL功能的使用实例。

序号

用法

功能描述

1

issue in hasTestCases()

搜索所有关联了测试用例的需求。

2

issue in hasTestCases('Issuekey1','Issuekey2')

搜索所有关联了指定测试用例的需求。

3

issue not in hasTestCases() and type = 'Requirement'

搜索所有没有关联任何测试用例的需求。

bugsInTestPlan()

以下是bugsInTestPlan() JQL功能的使用实例。

序号

用法

功能描述

1

issue in bugsInTestPlan("Issuekey")

搜索关联到指定的一个测试计划中缺陷。

2

issue in bugsInTestPlan('Issuekey1','Issuekey2')

搜索关联到指定的多个测试计划中的缺陷。

bugsInCycle()

以下是bugsInCycle() JQL功能的使用实例。

序号

用法

功能描述

1

issue in bugsInCycle('TestCycleName')

搜索所有关联到指定测试周期的缺陷。

bugsInTestCase()

以下是bugsInTestCase() JQL功能的使用实例。

序号

用法

功能描述

1

issue in bugsInTestCase('issueKey')

搜索所有关联到指定测试用例的缺陷。

2

issue in bugsInTestCase('issueKey1','issueKey2')

搜索所有关联到多个指定的测试用例的缺陷。

bugsInRequirement()

以下是bugsInRequirement() JQL功能的使用实例。

序号

用法

功能描述

1

issue in bugsInRequirement('issueKey')

搜索所有关联到指定需求的缺陷。

2

issue in bugsInRequirement('issueKey1','issueKey2')

搜索所有关联到多个指定的需求的缺陷。

bugsInBuild()

以下是bugsInBuild() JQL功能的使用实例。

序号

用法

功能描述

1

issue in bugsInBuild('BuildName')

搜索所有从指定的测试版本中报告的缺陷。

2

issue in bugsInBuild('BuildName1','BuildName2')

搜索所有从指定的多个测试版本中报告的缺陷。

bugsInEnvironment()

以下是bugsInEnvironment() JQL功能的使用实例。

序号

用法

功能描述

1

issue in bugsInEnvironment('EnvName')

搜索所有从指定的“测试环境”中报告的缺陷。

2

issue in bugsInEnvironment('EnvName1','EnvName2')

搜索所有从指定的多个“测试环境”中报告的缺陷。

hasActiveCycle()

以下是hasActiveCycle() JQL功能的使用实例。

序号

用法

功能描述

1

issue in hasActiveCycle()

搜索所有包含处于“开始”状态测试周期的测试计划。

hasCycleWithBugs()

以下是hasCycleWithBugs() JQL功能的使用实例。

序号

用法

功能描述

1

issue in hasCycleWithBugs()

搜索所有包含了“测试周期中关联了缺陷”的测试计划。

hasCycleWithUnresolvedBugs()

以下是hasCycleWithUnresolvedBugs() JQL功能的使用实例。

序号

用法

功能描述

1

issue in hasCycleWithUnresolvedBugs()

搜索所有包含了“测试周期中存在’未解决‘状态缺陷”的测试计划。

hasCycleWithFailedTestCases()

以下是hasCycleWithFailedTestCases() JQL功能的使用实例。

序号

用法

功能描述

1

issue in hasCycleWithFailedTestCases()

搜索所有包含了“测试周期中存在’失败‘状态测试用例”的测试计划。

hasCycleWithBlockedTestCases()

以下是hasCycleWithBlockedTestCases() JQL功能的使用实例。

序号

用法

功能描述

1

issue in hasCycleWithBlockedTestCases()

搜索所有包含了“测试周期中存在’锁定‘状态测试用例”的测试计划。

hasCycleWithUntestedTestCases()

以下是hasCycleWithUntestedTestCases() JQL功能的使用实例。

序号

用法

功能描述

1

issue in hasCycleWithUntestedTestCases()

搜索所有包含了“测试周期中存在’未测试‘状态测试用例”的测试计划。

hasCyclesOfDefectCount()

以下是hasCyclesOfDefectCount() JQL功能的使用实例,支持的运算符是:“==”,“>=”和“<=”。

序号

用法

功能描述

1

issue in hasCyclesOfDefectCount("10")

搜索所有包含了“测试周期中关联了10个缺陷”的测试计划。

2

issue in hasCyclesOfDefectCount("<=","10")

搜索所有包含了“测试周期中关联了10个或者少于10个缺陷”的测试计划。

3

issue in hasCyclesOfDefectCount(">=","10")

搜索所有包含了“测试周期中关联了10个或者多于10个缺陷”的测试计划。

testPlanMembers()

以下是 testPlanMembers() JQL功能的使用实例。

ID

用法

功能描述

1

issue in testPlanMembers("issueKey")

搜索指定测试计划中的所有测试用例。

childrenOfParentRequirement()

以下是childrenOfParentRequirement()JQL功能的使用实例。

ID

用法

功能描述

1

issue in childrenOfParentRequirement("issueKey")

搜索指定需求中直接关联的子级需求。

2

issue in childrenOfParentRequirement("issueKey","all")

搜索指定需求中直接关联的子级需求以及间接关联的子级需求。

testPlansForTester()

以下是testPlansForTester()JQL功能的使用实例。

ID

用法

功能描述

1

issue in testPlansForTester("username")

搜索所有包含了指定测试者(=用户名)的测试计划。