本文整理汇总了Python中testlink.TestLinkHelper.createTestCaseSteps方法的典型用法代码示例。如果您正苦于以下问题:Python TestLinkHelper.createTestCaseSteps方法的具体用法?Python TestLinkHelper.createTestCaseSteps怎么用?Python TestLinkHelper.createTestCaseSteps使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类testlink.TestLinkHelper
的用法示例。
在下文中一共展示了TestLinkHelper.createTestCaseSteps方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: TestLinkAPIGenericOnlineTestCase
# 需要导入模块: from testlink import TestLinkHelper [as 别名]
# 或者: from testlink.TestLinkHelper import createTestCaseSteps [as 别名]
#.........这里部分代码省略.........
def test_reportTCResult_unknownID(self):
with self.assertRaisesRegex(TLResponseError, '5000.*40000711'):
self.client.reportTCResult(40000712, 'p', testcaseid=40000711,
buildname='build 40000713', notes='note 40000714' )
def test_uploadExecutionAttachment_unknownID(self):
attachemantFile = open(os.path.realpath(__file__), 'r')
with self.assertRaisesRegex(TLResponseError, '6004.*40000712'):
self.client.uploadExecutionAttachment(attachemantFile, 40000712,
title='title 40000713', description='descr. 40000714')
def test_createPlatform_unknownID(self):
with self.assertRaisesRegex(TLResponseError, '7011.*40000711'):
self.client.createPlatform('Project 40000711', 'Platform 40000712',
notes='note 40000713')
def test_addPlatformToTestPlan_unknownID(self):
with self.assertRaisesRegex(TLResponseError, '3000.*40000711'):
self.client.addPlatformToTestPlan(40000711, 'Platform 40000712')
def test_removePlatformFromTestPlan_unknownID(self):
with self.assertRaisesRegex(TLResponseError, '3000.*40000711'):
self.client.removePlatformFromTestPlan(40000711, 'Platform 40000712')
def test_addTestCaseToTestPlan_unknownID(self):
with self.assertRaisesRegex(TLResponseError, '7000.*40000711'):
self.client.addTestCaseToTestPlan(40000711, 40000712, 'N-40000713', 1)
def test_updateTestCase_unknownID(self):
with self.assertRaisesRegex(TLResponseError, '5040.*N-40000711'):
self.client.updateTestCase('N-40000711', version=1)
def test_createTestCaseSteps_unknownID(self):
steps = [{'actions' : "Step action 6 -b added by updateTestCase" ,
'expected_results' : "Step result 6 - b added",
'step_number' : 6, 'execution_type' : 1}]
with self.assertRaisesRegex(TLResponseError, '5040.*N-40000711'):
self.client.createTestCaseSteps('update', steps,
testcaseexternalid='N-40000711', version=1)
def test_deleteTestCaseSteps_unknownID(self):
steps = [2,8]
with self.assertRaisesRegex(TLResponseError, '5040.*N-40000711'):
self.client.deleteTestCaseSteps('N-40000711', steps, version=1)
def test_uploadRequirementSpecificationAttachment_unknownID(self):
attachemantFile = open(ATTACHMENT_EXAMPLE_TEXT, 'r')
with self.assertRaisesRegex(TLResponseError, '6004.*40000712'):
self.client.uploadRequirementSpecificationAttachment(attachemantFile, 40000712,
title='title 40000713', description='descr. 40000714')
def test_uploadRequirementAttachment_unknownID(self):
attachemantFile = open(ATTACHMENT_EXAMPLE_TEXT, 'r')
with self.assertRaisesRegex(TLResponseError, '6004.*40000712'):
self.client.uploadRequirementAttachment(attachemantFile, 40000712,
title='title 40000713', description='descr. 40000714')
def test_uploadTestProjectAttachment_unknownID(self):
attachemantFile = open(ATTACHMENT_EXAMPLE_TEXT, 'r')
with self.assertRaisesRegex(TLResponseError, '7000.*40000712'):
self.client.uploadTestProjectAttachment(attachemantFile, 40000712,
title='title 40000713', description='descr. 40000714')
def test_uploadTestSuiteAttachment_unknownID(self):
attachemantFile = open(ATTACHMENT_EXAMPLE_TEXT, 'r')
示例2: TestLinkAPIOnlineTestCase
# 需要导入模块: from testlink import TestLinkHelper [as 别名]
# 或者: from testlink.TestLinkHelper import createTestCaseSteps [as 别名]
#.........这里部分代码省略.........
def test_createTestCase_unknownID(self):
with self.assertRaisesRegexp(TLResponseError, '7000.*4713'):
self.client.createTestCase('case 4711', 4712, 4713,
'Big Bird', 'summary 4714')
def test_reportTCResult_unknownID(self):
with self.assertRaisesRegexp(TLResponseError, '5000.*4711'):
self.client.reportTCResult(4711, 4712, 'build 4713', 'p',
'note 4714')
def test_uploadExecutionAttachment_unknownID(self):
attachemantFile = open(os.path.realpath(__file__), 'r')
with self.assertRaisesRegexp(TLResponseError, '6004.*4712'):
self.client.uploadExecutionAttachment(attachemantFile, 4712,
'title 4713', 'descr. 4714')
def test_getProjectIDByName_unknownID(self):
response = self.client.getProjectIDByName('project 4711')
self.assertEqual(-1, response)
def test_createPlatform_unknownID(self):
with self.assertRaisesRegexp(TLResponseError, '7011.*4711'):
self.client.createPlatform('Project 4711', 'Platform 4712',
notes='note 4713')
def test_addTestCaseToTestPlan_unknownID(self):
with self.assertRaisesRegexp(TLResponseError, '7000.*4711'):
self.client.addTestCaseToTestPlan(4711, 4712, 'N-4713', 1)
def test_updateTestCase_unknownID(self):
with self.assertRaisesRegexp(TLResponseError, '5040.*N-4711'):
self.client.updateTestCase('N-4711', version=1)
def test_createTestCaseSteps_unknownID(self):
steps = [{'actions' : "Step action 6 -b added by updateTestCase" ,
'expected_results' : "Step result 6 - b added",
'step_number' : 6, 'execution_type' : 1}]
with self.assertRaisesRegexp(TLResponseError, '5040.*N-4711'):
self.client.createTestCaseSteps('update', steps,
testcaseexternalid='N-4711', version=1)
def test_deleteTestCaseSteps_unknownID(self):
steps = [2,8]
with self.assertRaisesRegexp(TLResponseError, '5040.*N-4711'):
self.client.deleteTestCaseSteps('N-4711', steps, version=1)
def test_uploadRequirementSpecificationAttachment_unknownID(self):
attachemantFile = open(os.path.realpath(__file__), 'r')
with self.assertRaisesRegexp(TLResponseError, '6004.*4712'):
self.client.uploadRequirementSpecificationAttachment(attachemantFile, 4712,
title='title 4713', description='descr. 4714')
def test_uploadRequirementAttachment_unknownID(self):
attachemantFile = open(os.path.realpath(__file__), 'r')
with self.assertRaisesRegexp(TLResponseError, '6004.*4712'):
self.client.uploadRequirementAttachment(attachemantFile, 4712,
title='title 4713', description='descr. 4714')
def test_uploadTestProjectAttachment_unknownID(self):
attachemantFile = open(os.path.realpath(__file__), 'r')
with self.assertRaisesRegexp(TLResponseError, '7000.*4712'):
self.client.uploadTestProjectAttachment(attachemantFile, 4712,
title='title 4713', description='descr. 4714')
def test_uploadTestSuiteAttachment_unknownID(self):
attachemantFile = open(os.path.realpath(__file__), 'r')
示例3: TestLinkAPIOnlineTestCase
# 需要导入模块: from testlink import TestLinkHelper [as 别名]
# 或者: from testlink.TestLinkHelper import createTestCaseSteps [as 别名]
#.........这里部分代码省略.........
def test_createTestSuite_unknownID(self):
with self.assertRaisesRegex(TLResponseError, "7000.*40000711"):
self.client.createTestSuite(40000711, "suite 40000712", "detail 40000713")
def test_createTestCase_unknownID(self):
with self.assertRaisesRegex(TLResponseError, "7000.*40000713"):
self.client.createTestCase("case 40000711", 40000712, 40000713, "Big Bird", "summary 40000714")
def test_reportTCResult_unknownID(self):
with self.assertRaisesRegex(TLResponseError, "5000.*40000711"):
self.client.reportTCResult(40000711, 40000712, "build 40000713", "p", "note 40000714")
def test_uploadExecutionAttachment_unknownID(self):
attachemantFile = open(os.path.realpath(__file__), "r")
with self.assertRaisesRegex(TLResponseError, "6004.*40000712"):
self.client.uploadExecutionAttachment(attachemantFile, 40000712, "title 40000713", "descr. 40000714")
def test_getProjectIDByName_unknownID(self):
response = self.client.getProjectIDByName("project 40000711")
self.assertEqual(-1, response)
def test_createPlatform_unknownID(self):
with self.assertRaisesRegex(TLResponseError, "7011.*40000711"):
self.client.createPlatform("Project 40000711", "Platform 40000712", notes="note 40000713")
def test_addTestCaseToTestPlan_unknownID(self):
with self.assertRaisesRegex(TLResponseError, "7000.*40000711"):
self.client.addTestCaseToTestPlan(40000711, 40000712, "N-40000713", 1)
def test_updateTestCase_unknownID(self):
with self.assertRaisesRegex(TLResponseError, "5040.*N-40000711"):
self.client.updateTestCase("N-40000711", version=1)
def test_createTestCaseSteps_unknownID(self):
steps = [
{
"actions": "Step action 6 -b added by updateTestCase",
"expected_results": "Step result 6 - b added",
"step_number": 6,
"execution_type": 1,
}
]
with self.assertRaisesRegex(TLResponseError, "5040.*N-40000711"):
self.client.createTestCaseSteps("update", steps, testcaseexternalid="N-40000711", version=1)
def test_deleteTestCaseSteps_unknownID(self):
steps = [2, 8]
with self.assertRaisesRegex(TLResponseError, "5040.*N-40000711"):
self.client.deleteTestCaseSteps("N-40000711", steps, version=1)
def test_uploadRequirementSpecificationAttachment_unknownID(self):
attachemantFile = open(ATTACHMENT_EXAMPLE_TEXT, "r")
with self.assertRaisesRegex(TLResponseError, "6004.*40000712"):
self.client.uploadRequirementSpecificationAttachment(
attachemantFile, 40000712, title="title 40000713", description="descr. 40000714"
)
def test_uploadRequirementAttachment_unknownID(self):
attachemantFile = open(ATTACHMENT_EXAMPLE_TEXT, "r")
with self.assertRaisesRegex(TLResponseError, "6004.*40000712"):
self.client.uploadRequirementAttachment(
attachemantFile, 40000712, title="title 40000713", description="descr. 40000714"
)
def test_uploadTestProjectAttachment_unknownID(self):
attachemantFile = open(ATTACHMENT_EXAMPLE_TEXT, "r")