@@ -429,6 +429,24 @@ def checkDevKey(self):
429
429
# * returns the error map.
430
430
# */
431
431
# public function uploadRequirementSpecificationAttachment($args)
432
+
433
+ @decoApiCallAddAttachment
434
+ @decoMakerApiCallWithArgs (['reqspecid' ],
435
+ ['title' , 'description' , 'filename' , 'filetype' , 'content' ])
436
+ def uploadRequirementSpecificationAttachment (self ):
437
+ """ Uploads an attachment for a Requirement Specification.
438
+
439
+ reqspecid - The Requirement Specification ID
440
+
441
+ mandatory non api args: attachmentfile
442
+ - python file descriptor pointing to the file
443
+ - !Attention - on WINDOWS use binary mode for none text file
444
+ see http://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files
445
+
446
+ default values for filename, filetype, content are determine from
447
+ ATTACHMENTFILE, but user could overwrite it, if user want to store the
448
+ attachment with a different name
449
+ """
432
450
433
451
# /**
434
452
# * Uploads an attachment for a Requirement.
@@ -451,6 +469,25 @@ def checkDevKey(self):
451
469
# */
452
470
# public function uploadRequirementAttachment($args)
453
471
472
+ @decoApiCallAddAttachment
473
+ @decoMakerApiCallWithArgs (['requirementid' ],
474
+ ['title' , 'description' , 'filename' , 'filetype' , 'content' ])
475
+ def uploadRequirementAttachment (self ):
476
+ """ Uploads an attachment for a Requirement.
477
+
478
+ requirementid - The Requirement ID
479
+
480
+ mandatory non api args: attachmentfile
481
+ - python file descriptor pointing to the file
482
+ - !Attention - on WINDOWS use binary mode for none text file
483
+ see http://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files
484
+
485
+ default values for filename, filetype, content are determine from
486
+ ATTACHMENTFILE, but user could overwrite it, if user want to store the
487
+ attachment with a different name
488
+ """
489
+
490
+
454
491
# /**
455
492
# * Uploads an attachment for a Test Project.
456
493
# *
@@ -472,6 +509,24 @@ def checkDevKey(self):
472
509
# */
473
510
# public function uploadTestProjectAttachment($args)
474
511
512
+ @decoApiCallAddAttachment
513
+ @decoMakerApiCallWithArgs (['testprojectid' ],
514
+ ['title' , 'description' , 'filename' , 'filetype' , 'content' ])
515
+ def uploadTestProjectAttachment (self ):
516
+ """ Uploads an attachment for a Test Project.
517
+
518
+ testprojectid - The Test Project ID
519
+
520
+ mandatory non api args: attachmentfile
521
+ - python file descriptor pointing to the file
522
+ - !Attention - on WINDOWS use binary mode for none text file
523
+ see http://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files
524
+
525
+ default values for filename, filetype, content are determine from
526
+ ATTACHMENTFILE, but user could overwrite it, if user want to store the
527
+ attachment with a different name
528
+ """
529
+
475
530
# /**
476
531
# * Uploads an attachment for a Test Suite.
477
532
# *
@@ -493,6 +548,24 @@ def checkDevKey(self):
493
548
# */
494
549
# public function uploadTestSuiteAttachment($args)
495
550
551
+ @decoApiCallAddAttachment
552
+ @decoMakerApiCallWithArgs (['testsuiteid' ],
553
+ ['title' , 'description' , 'filename' , 'filetype' , 'content' ])
554
+ def uploadTestSuiteAttachment (self ):
555
+ """ Uploads an attachment for a Test Suite.
556
+
557
+ testsuiteid - The Test Suite ID
558
+
559
+ mandatory non api args: attachmentfile
560
+ - python file descriptor pointing to the file
561
+ - !Attention - on WINDOWS use binary mode for none text file
562
+ see http://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files
563
+
564
+ default values for filename, filetype, content are determine from
565
+ ATTACHMENTFILE, but user could overwrite it, if user want to store the
566
+ attachment with a different name
567
+ """
568
+
496
569
# /**
497
570
# * Uploads an attachment for a Test Case.
498
571
# *
@@ -514,20 +587,39 @@ def checkDevKey(self):
514
587
# */
515
588
# public function uploadTestCaseAttachment($args)
516
589
590
+ @decoApiCallAddAttachment
591
+ @decoMakerApiCallWithArgs (['testcaseid' ],
592
+ ['title' , 'description' , 'filename' , 'filetype' , 'content' ])
593
+ def uploadTestCaseAttachment (self ):
594
+ """ Uploads an attachment for a Test Case.
595
+
596
+ testcaseid - Test Case INTERNAL ID
597
+
598
+ mandatory non api args: attachmentfile
599
+ - python file descriptor pointing to the file
600
+ - !Attention - on WINDOWS use binary mode for none text file
601
+ see http://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files
602
+
603
+ default values for filename, filetype, content are determine from
604
+ ATTACHMENTFILE, but user could overwrite it, if user want to store the
605
+ attachment with a different name
606
+ """
517
607
518
608
@decoApiCallAddAttachment
519
609
@decoMakerApiCallWithArgs (['executionid' ],
520
610
['title' , 'description' , 'filename' , 'filetype' , 'content' ])
521
611
def uploadExecutionAttachment (self ):
522
612
""" Uploads an attachment for an execution
523
- mandatory non api args: attachmentfile
524
613
525
- attachmentfile: python file descriptor pointing to the file
526
- !Attention - on WINDOWS use binary mode for none text file
527
- see http://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files
614
+ executionid - execution ID
615
+
616
+ mandatory non api args: attachmentfile
617
+ - python file descriptor pointing to the file
618
+ - !Attention - on WINDOWS use binary mode for none text file
619
+ see http://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files
528
620
529
621
default values for filename, filetype, content are determine from
530
- ATTACHMENTFILE, but user could overwrite it, if they want to store the
622
+ ATTACHMENTFILE, but user could overwrite it, if user want to store the
531
623
attachment with a different name
532
624
"""
533
625
@@ -556,6 +648,25 @@ def uploadExecutionAttachment(self):
556
648
# */
557
649
# public function uploadAttachment($args, $messagePrefix='', $setArgs=true)
558
650
651
+ @decoApiCallAddAttachment
652
+ @decoMakerApiCallWithArgs (['fkid' , 'fktable' ],
653
+ ['title' , 'description' , 'filename' , 'filetype' , 'content' ])
654
+ def uploadAttachment (self ):
655
+ """ Uploads an attachment for an execution
656
+
657
+ fkid - The Attachment Foreign Key ID
658
+ fktable - The Attachment Foreign Key Table
659
+
660
+ mandatory non api args: attachmentfile
661
+ - python file descriptor pointing to the file
662
+ - !Attention - on WINDOWS use binary mode for none text file
663
+ see http://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files
664
+
665
+ default values for filename, filetype, content are determine from
666
+ ATTACHMENTFILE, but user could overwrite it, if user want to store the
667
+ attachment with a different name
668
+ """
669
+
559
670
# /**
560
671
# * Gets value of a Custom Field for a entity in a given scope (e.g.: a custom
561
672
# * field for a test case in design scope).
0 commit comments