33 require_once (
'fossologyTestCase.php');
34 require_once (
'TestEnvironment.php');
56 print
"Creating Testing folder\n";
57 $page = $this->mybrowser->get($URL);
60 print
"Creating Copyright folder\n";
64 function testuploadTestDataTest() {
69 print
"starting testUploadTestData\n";
72 $uploadList = array(
'TestData/archives/fossI16L335U29.tar.bz2',
73 'TestData/archives/foss23D1F1L.tar.bz2',
74 'TestData/licenses/gplv2.1',
75 'TestData/licenses/Affero-v1.0',
76 'nomos/testdata/zend-license',
77 'nomos/testdata/RedHat.tar.gz');
79 $urlList = array(
'http://downloads.sourceforge.net/simpletest/simpletest_1.0.1.tar.gz',
80 'http://www.gnu.org/licenses/gpl-3.0.txt',
81 'http://www.gnu.org/licenses/agpl-3.0.txt',
82 'http://fossology.org/testing/testFiles/fossDirsOnly.tar.bz2');
94 print
"Starting file uploads\n";
95 foreach($uploadList as $upload) {
96 $description =
"File $upload uploaded by Upload Test Data Test";
97 $this->
uploadFile(
'Testing', $upload, $description, null,
'1,2,3,4');
105 $this->webProxy = $PROXY;
107 print
"Starting Url uploads\n";
108 echo
"Using Proxy:$this->webProxy\n";
109 foreach($urlList as $url)
111 $this->
uploadUrl($rootFolder, $url, null, null,
'1,2,4,5');
createFolder($parent=null, $name, $description=null)
uploadFile($parentFolder, $uploadFile, $description=null, $uploadName=null, $agents=null)
testCreateTestingFolder()
uploadUrl($parentFolder=1, $url, $description=null, $uploadName=null, $agents=null)
Login($User=NULL, $Password=NULL)