22 require_once (
'fossologyTestCase.php');
23 require_once (
'TestEnvironment.php');
45 print
"Creating Code Coveragefolder\n";
46 $page = $this->mybrowser->get($URL);
50 function testuploadUnpack() {
55 print
"starting testuploadUnpack\n";
58 $uploadList = array(
'TestData/archives/eddyData.tar.bz2',
59 'TestData/archives/foss23D1F1L.tar.bz2',
60 'TestData/licenses/gplv2.1',
61 'TestData/licenses/Affero-v1.0');
62 $urlList = array(
'http://downloads.sourceforge.net/simpletest/simpletest_1.0.1.tar.gz',
63 'http://www.gnu.org/licenses/gpl-3.0.txt',
64 'http://www.gnu.org/licenses/agpl-3.0.txt',
65 'http://osrb-1.fc.hp.com/~fosstester/fossology_1.1.1~20100622_all.deb');
67 print
"Starting file uploads\n";
68 foreach($uploadList as $upload) {
69 $description =
"File $upload uploaded by Upload Test Data Test";
70 $this->
uploadFile(
'Testing', $upload, $description,
null, NULL);
78 $this->webProxy = $PROXY;
80 print
"Starting Url uploads\n";
81 foreach($urlList as $url)
83 $this->
uploadUrl($rootFolder, $url,
null,
null, NULL);
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()