22 require_once (
'fossologyTestCase.php');
23 require_once (
'TestEnvironment.php');
45 print
"Creating Testing folder\n";
46 $page = $this->mybrowser->get($URL);
49 print
"Creating Copyright folder\n";
53 function testuploadTestDataTest() {
58 print
"starting testUploadTestData\n";
61 $uploadList = array(
'TestData/archives/fossI16L335U29.tar.bz2',
62 'TestData/archives/foss23D1F1L.tar.bz2',
63 'TestData/licenses/gplv2.1',
64 'TestData/licenses/Affero-v1.0',
65 'nomos/testdata/zend-license',
66 'nomos/testdata/RedHat.tar.gz');
68 $urlList = array(
'http://downloads.sourceforge.net/simpletest/simpletest_1.0.1.tar.gz',
69 'http://www.gnu.org/licenses/gpl-3.0.txt',
70 'http://www.gnu.org/licenses/agpl-3.0.txt',
71 'http://fossology.org/testing/testFiles/fossDirsOnly.tar.bz2');
83 print
"Starting file uploads\n";
84 foreach($uploadList as $upload) {
85 $description =
"File $upload uploaded by Upload Test Data Test";
86 $this->
uploadFile(
'Testing', $upload, $description,
null,
'1,2,3,4');
94 $this->webProxy = $PROXY;
96 print
"Starting Url uploads\n";
97 echo
"Using Proxy:$this->webProxy\n";
98 foreach($urlList as $url)
100 $this->
uploadUrl($rootFolder, $url,
null,
null,
'1,2,4,5');
uploadUrl($parentFolder, $url, $description=null, $uploadName=null, $agents=null)
uploadFile($parentFolder, $uploadFile, $description=null, $uploadName=null, $agents=null)
createFolder($parent, $name, $description=null)
Login($User=NULL, $Password=NULL)
testCreateTestingFolder()