testlink|testlink python api的全部调用方法

('deleteTestPlan(, [devKey=])\n Delete a test plan and all related link to other items ', '\n')('getTestCaseCustomFieldExecutionValue(,,,,, [devKey=])\n Gets a Custom Field of a Test Case in Execution Scope. ', '\n')('createBuild(,,, [active=], [open=], [releasedate=], [copytestersfrombuild=], [devKey=])\n Creates a new build for a specific test plan \n \n active : 1 (default) = activ 0 = inactiv \n open : 1 (default) = open 0 = closed\n releasedate : YYYY-MM-DD\n copytestersfrombuild : valid buildid tester assignments will be copied.\n ', '\n')("getTestCaseCustomFieldDesignValue(,,,,, [devKey=])\n Gets value of a Custom Field with scope='design' for a given Test case\n \n details = changes output information\n null or 'value' => just value\n 'full' => a map with all custom field definition\n plus value and internal test case id\n 'simple' => value plus custom field name, label, and type (as code).\n \n attention - be careful with testcaseexternalid - it must include an '-'. \n otherwise TL (<=1.9.8) returns \n", '\n')('getTestCaseIDByName(, [testsuitename=], [testprojectname=], [testcasepathname=], [devKey=])\n getTestCaseIDByName : Find a test case by its name \n positional args: testcasename, \n optional args : testsuitename, testprojectname, testcasepathname\n \n testcasepathname : Full test case path name, \n starts with test project name , pieces separator -> :: \n \n server return can be a list or a dictionary \n - optional arg testprojectname seems to create a dictionary response \n \n this methods customize the generic behaviour and converts a dictionary \n response into a list, so methods return will be always a list ', '\n')('deleteTestProject(, [devKey=])\n Delete a test project and all related link to other items ', '\n')('uploadRequirementSpecificationAttachment(,, [title=], [description=], [filename=], [filetype=], [content=], [devKey=])\n Uploads an attachment for a Requirement Specification.\n \n reqspecid - The Requirement Specification ID\n \n mandatory non api args: attachmentfile\n - python file descriptor pointing to the file\n - or a valid file path\n \n default values for filename, filetype, content are determine from \n ATTACHMENTFILE, but user could overwrite it, if user want to store the\n attachment with a different name \n ', '\n')
('getTestSuitesForTestPlan(, [devKey=])\n List test suites within a test plan alphabetically\n\nreturns an empty list, if no suite is assigned ', '\n')
("createTestCaseSteps(, , [testcaseexternalid=], [testcaseid=], [version=], [devKey=])\n creates new test steps or updates existing test steps \n\naction - possible values: 'create','update','push'\ncreate: if step exist NOTHING WILL BE DONE\nupdate: if step DOES NOT EXIST will be created else will be updated.\npush: NOT IMPLEMENTED YET (TL 1.9.9)\nshift down all steps with step number >= step number provided\nand use provided data to create step number requested.\nsteps - each element is a hash with following keys\nstep_number,actions,expected_results,execution_type\nargs variations: testcaseid - testcaseexternalid\nversion - optional if not provided LAST ACTIVE version will be used\nif all versions are INACTIVE, then latest version will be used. \n", '\n')
("getTestCasesForTestSuite(, , , [getkeywords=], [devKey=])\n List test cases within a test suite alphabetically\n\ndetails - default is 'simple', \nuse 'full' if you want to get summary,steps & expected_results\nor 'only_id', if you just need an ID list\n\ndeep - True/False - default is True\nif True, return also test case of child suites\n\ngetkeywords - True/False - default is False\nif True AND details='full', dictionary includes for each test\ncase, which as assigned keywords, an additional key value pair \n'keywords'\n\nreturns an empty list, if no build is assigned ", '\n')
('getIssueTrackerSystem(, [devKey=])\n Get Issue Tracker System by name ', '\n')
('doesUserExist()\n Checks if user name exists \nreturns true if everything OK, otherwise error structure ', '\n')
('setTestCaseExecutionType(, , , , [devKey=])\n Update execution type for a test case version \n\npossible executiontype values\n1 = TESTCASE_EXECUTION_TYPE_MANUAL, 2 = TESTCASE_EXECUTION_TYPE_AUTO ', '\n')
('getProjects([devKey=])\n Gets a list of all projects\n\nreturns an empty list, if no test project exist ', '\n')
('getTestCaseCustomFieldTestPlanDesignValue(, , , , , [devKey=])\n Gets a Custom Field of a Test Case in Test Plan Design Scope.', '\n')
('getRequirements(, [testplanid=], [platformid=], [devKey=])\n Get requirements.\n\nmandatory arg: testprojectid - identifies the test project \n\noptional args: testplanid, platformid\n', '\n')
('getTestSuitesForTestSuite(, [devKey=])\n get list of TestSuites which are DIRECT children of a given TestSuite\n\nreturns an empty list, if no TestSuite is assigned ', '\n')
('getExecCountersByBuild(, [devKey=])\n Gets execution metrics information for a testplan ', '\n')
('updateTestCase(, [version=], [testcasename=], [summary=], [preconditions=], [steps=], [importance=], [executiontype=], [status=], [estimatedexecduration=], [user=], [devKey=])\n Update an existing test case\n\nstepsarray - each element is a hash with following keys\nstep_number,actions,expected_results,execution_type\nuserlogin name used as updater - optional\nif not provided will be set to user that request update\n\nNot all test case attributes will be able to be updated using this method\n ', '\n')
('getTestSuiteByID(, [devKey=])\n Return a TestSuite by ID ', '\n')
("removeTestCaseKeywords(, [devKey=])\n removes list of keywords from a set of test cases \n\nexpects as arg a dictionary with \nas a key and as value\n\nexample:\n{'TC-4711' : ['KeyWord02'], 'TC-4712' : ['KeyWord01', KeyWord03']}\n\nremoves from test case 'TC-4711' the keyword 'KeyWord02'\nremoves from test case 'TC-4712' the keywords 'KeyWord01' + KeyWord03'\n", '\n')
('getUserByID(, [devKey=])\nreturns user data for account with USERID in users table, column ID\n\n* if everything ok returns an array on just one element with following user data\n*\n* firstName,lastName,emailAddress,locale,isActive,defaultTestprojectID,\n* globalRoleID \n* globalRolearray with role info\n* tprojectRoles array\n* tplanRolesarray\n* login \n* dbID\n* loginRegExp\n*\n* ATTENTION: userApiKey will be set to NULL, because is worst that access to user password\n', '\n')
("getTestCase(, [testcaseexternalid=], [version=], [devKey=])\n get test case specification using external or internal id\n\nattention - be careful with testcaseexternalid - it must include an '-'. \notherwise TL (<=1.9.8) returns \n", '\n')
('getTestSuite(, , [devKey=])\n Returns list with all test suites named TESTUITENAME defined for\ntest project using PREFIX ', '\n')
('getTestProjectByName(, [devKey=])\n Gets info about target test project ', '\n')
("addTestCaseKeywords(, [devKey=])\n adds list of keywords to a set of test cases \n\nexpects as arg a dictionary with \nas a key and as value\n\nexample:\n{'TC-4711' : ['KeyWord02'], 'TC-4712' : ['KeyWord01', KeyWord03']}\n\nadds to test case 'TC-4711' the keyword 'KeyWord02'\nadds to test case 'TC-4712' the keywords 'KeyWord01' + KeyWord03'\n", '\n')
('getTestCaseKeywords([testcaseid=], [testcaseexternalid=], [devKey=])\n Gets a dictionary of keywords for a given Test case \n\nargs variations: testcaseid - testcaseexternalid(mandatoy!)\n\nreturns an empty dictionary, if no keywords are defined ', '\n')
('getRequirementCustomFieldDesignValue(, , , [devKey=])\n Gets a Custom Field of a Requirement Specification in Design Scope. ', '\n')
('getTestSuiteCustomFieldDesignValue(, , , [devKey=])\n Gets a Custom Field of a Test Suite in Design Scope.', '\n')
('sayHello()\n Lets you see if the server is up and running ', '\n')
('setTestCaseTestSuite(, , [devKey=])\n move a test case to a different Test Suite \n\nmandatory arg: \ntestcaseexternalid - identifies the test case \ntestsuiteid- identifies the test suite \n\n', '\n')
('createTestProject(, , [notes=], [active=], [public=], [options=], [itsname=], [itsenabled=], [devKey=])\n Create a test project\n\noptions : dictionary with keys\nrequirementsEnabled, testPriorityEnabled, \nautomationEnabled,inventoryEnabled\nand values 0 (false) and 1 (true)', '\n')
("getLastExecutionResult(, , [testcaseexternalid=], [platformid=], [platformname=], [buildid=], [buildname=], [options=], [devKey=])\n Gets the result of LAST EXECUTION for a particular testcase on a test plan.\nIf there are no filter criteria regarding platform and build,\nresult will be get WITHOUT checking for a particular platform and build. \n\nfollowing optional arguments could only used with \nTL version >= 1.9.9 \n- platformid, platformname, buildid, buildname\n\nTL version >= 1.9.11\n- options : dictionary with key value pair\n'getBugs' : True / False \n", '\n')
('uploadTestCaseAttachment(, , [title=], [description=], [filename=], [filetype=], [content=], [devKey=])\n Uploads an attachment for a Test Case.\n\ntestcaseid - Test Case INTERNAL ID\n\nmandatory non api args: attachmentfile\n- python file descriptor pointing to the file\n- or a valid file path\n\ndefault values for filename, filetype, content are determine from \nATTACHMENTFILE, but user could overwrite it, if user want to store the\nattachment with a different name \n', '\n')
('removePlatformFromTestPlan(, , [devKey=])\n Removes a platform from a test plan ', '\n')
('createTestCase(, , , , , [steps=], [preconditions=], [importance=], [executiontype=], [order=], [internalid=], [checkduplicatedname=], [actiononduplicatedname=], [status=], [estimatedexecduration=], [devKey=])\n createTestCase: Create a test case\npositional args: testcasename, testsuiteid, testprojectid, authorlogin,\nsummary\noptional args : steps, preconditions, importance, executiontype, order,\ninternalid, checkduplicatedname, actiononduplicatedname,\nstatus, estimatedexecduration\n\nargument \'steps\' will be set with values from .stepsList, \n- when argsOptional does not include a \'steps\' item\n- .stepsList can be filled before call via .initStep() and .appendStep()\n\notherwise, optional arg \'steps\' must be defined as a list with \ndictionaries , example\n[{\'step_number\' : 1, \'actions\' : "action A" , \n\'expected_results\' : "result A", \'execution_type\' : 0},\n{\'step_number\' : 2, \'actions\' : "action B" , \n\'expected_results\' : "result B", \'execution_type\' : 1},\n{\'step_number\' : 3, \'actions\' : "action C" , \n\'expected_results\' : "result C", \'execution_type\' : 0}]\n\n', '\n')
('getLatestBuildForTestPlan(, [devKey=])\n Gets the latest build by choosing the maximum build id for a specific test plan ', '\n')
('getTestCaseBugs(, [testcaseid=], [testcaseexternalid=], [buildid=], [buildname=], [platformid=], [platformname=], [devKey=])\n Returns all bugs linked to a particular testcase on a test plan.\nIf there are no filter criteria regarding platform and build, \nresult will be get WITHOUT checking for a particular platform and build.\n\n\ntestplanidtest plan id\n\nargs variations: testcaseid - testcaseexternalid(mandatory!)\nbuildid - buildname\nplatformid - platformname\ntest case information is general mandatory\n', '\n')
('uploadTestProjectAttachment(, , [title=], [description=], [filename=], [filetype=], [content=], [devKey=])\n Uploads an attachment for a Test Project.\n\ntestprojectid - The Test Project ID\n\nmandatory non api args: attachmentfile\n- python file descriptor pointing to the file\n- or a valid file path\n\ndefault values for filename, filetype, content are determine from \nATTACHMENTFILE, but user could overwrite it, if user want to store the\nattachment with a different name \n', '\n')
("getExecutionSet(, [testcaseid=], [testcaseexternalid=], [buildid=], [buildname=], [platformid=], [platformname=], [options=], [devKey=])\n Gets a set of EXECUTIONS for a particular testcase on a test plan.\nIf there are no filter criteria regarding platform and build, result\nwill be get WITHOUT checking for a particular platform and build.\n\nmandatory arg: testplanid - identifies the test plan \n\nmandatory args variations: testcaseid - testcaseexternalid\n- test case information is general mandatory\n\noptional args variations:buildid - buildname\nplatformid - platformname\n\noptions : dictionary with key 'getOrderDescending' and \nvalues 0 (false = default) or 1 (true)\n", '\n')
('addTestCaseToTestPlan(, , , , [platformid=], [executionorder=], [urgency=], [overwrite=], [devKey=])\n Add a test case version to a test plan ', '\n')
('repeat()\n Repeats a message back ', '\n')
('getReqCoverage(, , [devKey=])\n Get requirement coverage. \nRetrieve the test cases associated to a requirement\n\nmandatory arg: \ntestprojectid- identifies the test project \nrequirementdocid - identifies the requirement \n\n', '\n')
("assignRequirements(, , , [devKey=])\n Assign Requirements to a test case \nIt is possible to assign multiple requirements, belonging to different \nrequirement specifications. (the internal IDs must be known!)\n\nArgument REQUIREMENTS expects an array of dictionaries, example:\n.assignRequirements('GPROAPI4-2', 6652, \n[{'req_spec' : 6729, 'requirements' : [6731]},\n{'req_spec' : 6733, 'requirements' : [6735, 6737]}])\nThis would assign to testcase 'GPROAPI4-2' (in testproject with id 6652)\na) requirement with ID 6731 of requirement spec 6729 AND\nb) requirements with ID 6735 and 6737 of requirement spec 6733\n", '\n')
('getProjectPlatforms(, [devKey=])\n Gets a dictionary of platforms for a project\n\nreturns an empty dictionary, if no platform is assigned ', '\n')
('uploadAttachment(, , , [title=], [description=], [filename=], [filetype=], [content=], [devKey=])\n Uploads an attachment for an execution\n\nfkid- The Attachment Foreign Key ID\nfktable - The Attachment Foreign Key Table\n\nmandatory non api args: attachmentfile\n- python file descriptor pointing to the file\n- or a valid file path\n\ndefault values for filename, filetype, content are determine from \nATTACHMENTFILE, but user could overwrite it, if user want to store the\nattachment with a different name \n', '\n')
('getUserByLogin(, [devKey=])\nreturns user data for account with login name USER\n\nif everything ok returns an array on just one element with following user data\n*\n* firstName,lastName,emailAddress,locale,isActive,defaultTestprojectID,\n* globalRoleID \n* globalRolearray with role info\n* tprojectRoles array\n* tplanRolesarray\n* login \n* dbID\n* loginRegExp\n*\n* ATTENTION: userApiKey will be set to NULL, because is worst that access to user password ', '\n')
('getProjectKeywords(, [devKey=])\n Gets a dictionary of valid keywords for a project\n\nreturns an empty dictionary, if no keywords are defined ', '\n')
('getFirstLevelTestSuitesForTestProject(, [devKey=])\n get set of test suites AT TOP LEVEL of tree on a Test Project\n\nreturns an empty list, if no suite is assigned (api error 7008) \n- details see comments for decoMakerApiCallReplaceTLResponseError ', '\n')
('getTestSuiteAttachments(, [devKey=])\n Gets attachments for specified test suite.\nThe attachment file content is Base64 encoded. To save the file to disk \nin client, Base64 decode the content and write file in binary mode.', '\n')
('uploadRequirementAttachment(, , [title=], [description=], [filename=], [filetype=], [content=], [devKey=])\n Uploads an attachment for a Requirement.\n\nrequirementid - The Requirement ID\n\nmandatory non api args: attachmentfile\n- python file descriptor pointing to the file\n- or a valid file path\n\ndefault values for filename, filetype, content are determine from \nATTACHMENTFILE, but user could overwrite it, if user want to store the\nattachment with a different name \n', '\n')
('uploadTestSuiteAttachment(, , [title=], [description=], [filename=], [filetype=], [content=], [devKey=])\n Uploads an attachment for a Test Suite.\n\ntestsuiteid - The Test Suite ID\n\nmandatory non api args: attachmentfile\n- python file descriptor pointing to the file\n- or a valid file path\n\ndefault values for filename, filetype, content are determine from \nATTACHMENTFILE, but user could overwrite it, if user want to store the\nattachment with a different name \n', '\n')
('createPlatform(, , [notes=], [devKey=])\n Creates a platform for test project ', '\n')
('getReqSpecCustomFieldDesignValue(, , , [devKey=])\n Gets a Custom Field of a Requirement Specification in Design Scope. ', '\n')
('deleteExecution(, [devKey=])\n delete an execution \n\nDefault TL server configuration does not allow deletion of exections\nsee Installation & Configuration Manual Version 1.9\nchap. 5.8. Test execution settings \n$tlCfg->exec_cfg->can_delete_execution ', '\n')
('addPlatformToTestPlan(, , [devKey=])\n Adds a platform to a test plan ', '\n')
("getTestCasesForTestPlan(, [buildid=], [platformid=], [testcaseid=], [keywordid=], [keywords=], [executed=], [assignedto=], [executestatus=], [executiontype=], [getstepinfo=], [details=], [devKey=])\n List test cases linked to a test plan\n\ndetails - default is 'full', \n'simple', 'details' ??\n\nargs variations:keywordid - keywords \n\nreturns an empty list, if no build is assigned ", '\n')
("updateTestCaseCustomFieldDesignValue(, , , , [devKey=])\n Update value of Custom Field with scope='design' for a given Test case\n\ncustomfields : dictionary with customfields names + values\nVERY IMPORTANT: value must be formatted in the way it's written to db", '\n')
("updateTestSuiteCustomFieldDesignValue(, , , [devKey=])\n Update value of Custom Field with scope='design' for a given Test Suite\n\ncustomfields: dictionary with customfields names + values\nVERY IMPORTANT: value must be formatted in the way it's written to db\n", '\n')
("unassignTestCaseExecutionTask(, , [buildid=], [buildname=], [platformid=], [platformname=], [user=], [action=], [devKey=])\n assigns a user to a test case execution task\n\ntestplanidtest plan id\ntestcaseexternalidformat PREFIX-NUMBER\n\nargs variations:buildid - buildname \nplatformid - platformname\nuser (login name) - action ('unassignAll')\nbuild information is general mandatory\nplatform information is required, when test plan has assigned platforms\nif action=='unassignAll', user information is not needed\n- otherwise, TL itself will set action to 'unassignOne' and expects a\nvalid user information (login name => tester)\n\n", '\n')
('getTestPlanCustomFieldDesignValue(, , , [devKey=])\n Gets a Custom Field of a Test Plan in Design Scope. ', '\n')
('about()\n Gives basic information about the API ', '\n')
('createTestSuite(, , , [parentid=], [order=], [checkduplicatedname=], [actiononduplicatedname=], [devKey=])\n create a test suite ', '\n')
('getFullPath(, [devKey=])\n Gets full path from the given node till the top using nodes_hierarchy_table\n\nnodeid = can be just a single id or a list with ids \nATTENTION: id must be an integer. ', '\n')
('getTestPlanByName(, , [devKey=])\n Gets info about target test project ', '\n')
('deleteTestCaseSteps(, , [version=], [devKey=])\n deletes test cases steps\n\nsteps - each element is a step_number\nversion - optional if not provided LAST ACTIVE version will be used\n', '\n')
('reportTCResult(, , , , , [testcaseexternalid=], [buildid=], [platformid=], [platformname=], [guess=], [bugid=], [customfields=], [overwrite=], [user=], [execduration=], [timestamp=], [steps=], [devKey=])\n Reports a result for a single test case\n\nargs variations: testcaseid - testcaseexternalid\nbuildid - buildname\nplatformid - platformname\n\ncustomfields : dictionary with customfields names + values\nVERY IMPORTANT: value must be formatted in the way it\'s written to db\noverwrite: if present and true, then last execution for \n(testcase,testplan,build,platform) will be overwritten. \nuser : if present and user is a valid login (no other check will be done) \nit will be used when writing execution.\nexecduration : Exec (min) as float (2.5 = 2min 30sec)\ntimestamp: \'YYYY-MM-DD hh:mm[:ss]\'#\nsteps: [{\'step_number\' : 6, \'result\' : \'p\', \'notes" : \'a_note\'}, \n{\'step_number\' : 7, \'result\' : \'f\', \'notes" : \'blabla\'}] \n', '\n')
("updateBuildCustomFieldsValues(, , , , [devKey=])\n Update value of Custom Field with scope='design' for a given Build\n\ncustomfields: dictionary with customfields names + values\nVERY IMPORTANT: value must be formatted in the way it's written to db\n", '\n')
('getTotalsForTestPlan(, [devKey=])\n Gets the summarized results grouped by platform. ', '\n')
('uploadExecutionAttachment(, , , , [filename=], [filetype=], [content=], [devKey=])\n Uploads an attachment for an execution\n\nexecutionid - execution ID\n\nmandatory non api args: attachmentfile\n- python file descriptor pointing to the file\n- or a valid file path\n\ndefault values for filename, filetype, content are determine from \nATTACHMENTFILE, but user could overwrite it, if user want to store the\nattachment with a different name \n', '\n')
("createTestPlan(, [testprojectname=], [prefix=], [note=], [active=], [public=], [devKey=])\n create a test plan \n\nargs variations: testprojectname - prefix\n\nsupports also pre 1.9.14 arg definition, where 'testprojectname'\nwas mandatory ('prefix' comes as alternative with 1.9.14)\n\nexamples:\n- createTestPlan('aTPlanName', 'aTProjectName')\n- createTestPlan('aTPlanName', testprojectname='aTProjectName')\n- createTestPlan('aTPlanName', prefix='aTProjectPrefix')\n\n", '\n')
('getBuildsForTestPlan(, [devKey=])\n Gets a list of builds within a test plan \n\nreturns an empty list, if no build is assigned ', '\n')
("getAllExecutionsResults(, [testcaseid=], [testcaseexternalid=], [platformid=], [buildid=], [options=], [devKey=])\n Gets ALL EXECUTIONS for a particular testcase on a test plan.\nIf there are no filter criteria regarding platform and build,\nresult will be get WITHOUT checking for a particular platform and build.\n\nmandatory arg: testplanid - identifies the test plan \n\nmandatory args variations: testcaseid - testcaseexternalid\n- test case information is general mandatory\n\noptional args:buildid\nplatformid\n\noptions : dictionary with key 'getBugs' and \nvalues 0 (false = default) or 1 (true)\n", '\n')
('getTestPlanPlatforms(, [devKey=])\n Returns the list of platforms associated to a given test plan\n\nreturns an empty list, if no platform is assigned (api error 3041) \n- details see comments for decoMakerApiCallReplaceTLResponseError ', '\n')
('getTestCaseAttachments(, [testcaseexternalid=], [devKey=])\n Gets attachments for specified test case.\nThe attachment file content is Base64 encoded. To save the file to disk \nin client, Base64 decode the content and write file in binary mode.', '\n')
('getProjectTestPlans(, [devKey=])\n Gets a list of test plans within a project\n\nreturns an empty list, if no testplan is assigned ', '\n')
('assignTestCaseExecutionTask(, , , [buildid=], [buildname=], [platformid=], [platformname=], [devKey=])\n assigns a user to a test case execution task\n\nuserlogin name => tester\ntestplanidtest plan id\ntestcaseexternalidformat PREFIX-NUMBER\n\nargs variations:buildid - buildname \nplatformid - platformname\nbuild information is general mandatory\nplatform information is required, when test plan has assigned platforms\n', '\n')
('checkDevKey()\n check if Developer Key exists \nreturns true if everything OK, otherwise error structure ', '\n')
('getTestCaseAssignedTester(, , [buildid=], [buildname=], [platformid=], [platformname=], [devKey=])\n Gets the result of LAST EXECUTION for a particular testcase on a \ntest plan.\n\ntestplanidtest plan id\ntestcaseexternalidformat PREFIX-NUMBER\n\nargs variations:buildid - buildname \nplatformid - platformname\nbuild information is general mandatory\nplatform information is required, when test plan has assigned platforms\n', '\n')
('updateTestSuite(, [testprojectid=], [prefix=], [parentid=], [testsuitename=], [details=], [order=], [devKey=])\n update a test suite \n\nmandatory arg: testsuiteid - identifies the test suite to be change\n\nmandatory args variations: testprojectid or prefix \n- test project information is general mandatory\n\noptional args:\n- testsuitename - if defined, test suite name will be changed\n- details- if defined test suite details will be changed\n- order- if defined, order inside parent container is changed\n', '\n')
【testlink|testlink python api的全部调用方法】***Repl Closed***

    推荐阅读