@@ -595,10 +595,40 @@ def assignRequirements(self):
595595 b) requirements with ID 6735 and 6737 of requirement spec 6733
596596 """
597597
598+ # /**
599+ # * Gets attachments for specified test case VERSION.
600+ # * The attachment file content is Base64 encoded. To save the file to disk in client,
601+ # * Base64 decode the content and write file in binary mode.
602+ # *
603+ # * @param struct $args
604+ # * @param string $args["devKey"]
605+ # * Developer key
606+ # * @param int $args["testcaseid"]:
607+ # * optional, if does not is present
608+ # * testcaseexternalid must be present
609+ # *
610+ # * @param int $args["version"]:
611+ # * optional, if not present, the latest version will be used
612+ # *
613+ # * @param int $args["testcaseexternalid"]:
614+ # * optional, if does not is present
615+ # * testcaseid must be present
616+ # *
617+ # * @return mixed $resultInfo
618+ # */
619+ # public function getTestCaseAttachments($args) {
620+
598621 @decoApiCallAddDevKey
599- @decoMakerApiCallWithArgs ([], ['testcaseid' , 'testcaseexternalid' ])
622+ @decoMakerApiCallWithArgs ([], ['testcaseid' , 'version' ,
623+ 'testcaseexternalid' ])
600624 def getTestCaseAttachments (self ):
601625 """ Gets attachments for specified test case.
626+
627+ args variations: testcaseid - testcaseexternalid
628+
629+ version - optional, if not present, the latest test case version
630+ will be used
631+
602632 The attachment file content is Base64 encoded. To save the file to disk
603633 in client, Base64 decode the content and write file in binary mode. """
604634
@@ -808,14 +838,44 @@ def uploadTestSuiteAttachment(self):
808838 ATTACHMENTFILE, but user could overwrite it, if user want to store the
809839 attachment with a different name
810840 """
841+ # /**
842+ # * Uploads an attachment for a Test Case.
843+ # *
844+ # * The attachment content must be Base64 encoded by the client before sending it.
845+ # *
846+ # * @param struct $args
847+ # * @param string $args["devKey"]
848+ # * Developer key
849+ # * @param int $args["testcaseid"]
850+ # * Test Case INTERNAL ID
851+ # * @param int $args["version"]
852+ # * version number
853+ # *
854+ # * @param string $args["title"]
855+ # * (Optional) The title of the Attachment
856+ # * @param string $args["description"]
857+ # * (Optional) The description of the Attachment
858+ # * @param string $args["filename"]
859+ # * The file name of the Attachment(e.g.:notes.txt)
860+ # * @param string $args["filetype"]
861+ # * The file type of the Attachment(e.g.: text/plain)
862+ # * @param string $args["content"]
863+ # * The content(Base64 encoded) of the Attachment
864+ # *
865+ # * @return mixed $resultInfo an array containing the fk_id, fk_table, title,
866+ # * description, file_name, file_size and file_type. If any errors occur it
867+ # * returns the erros map.
868+ # */
869+ # public function uploadTestCaseAttachment($args) {
811870
812871 @decoApiCallAddAttachment
813- @decoMakerApiCallWithArgs (['testcaseid' ],
872+ @decoMakerApiCallWithArgs (['testcaseid' , 'version' ],
814873 ['title' , 'description' , 'filename' , 'filetype' , 'content' ])
815874 def uploadTestCaseAttachment (self ):
816875 """ Uploads an attachment for a Test Case.
817876
818877 testcaseid - Test Case INTERNAL ID
878+ version - Test Case version number
819879
820880 mandatory non api args: attachmentfile
821881 - python file descriptor pointing to the file
0 commit comments