18 require_once (
'fossologyTestCase.php');
19 require_once (
'TestEnvironment.php');
31 function testRmRFContent() {
33 print
"Removing the content of the root folder (Software Repository)\n";
34 $page = $this->mybrowser->get($URL);
35 $page = $this->mybrowser->clickLink(
'Delete Uploaded File');
36 $this->assertTrue($this->myassertText($page,
'/Select the uploaded file to delete/'),
37 "Could not select an uploaded file, (did not see the text)\n" .
38 "Make sure you are logged in a fossy\n");
41 if(empty($SRselect)) {
42 $this->pass(
'Nothing to remove');
45 foreach($SRselect as $uploadName => $uploadId){
46 print
"Removing $uploadName...\n";
47 $this->assertTrue($this->mybrowser->setField(
'upload', $uploadId));
48 $page = $this->mybrowser->clickSubmit(
'Delete!');
49 $this->assertTrue($page);
50 $this->assertTrue($this->myassertText($page,
"/Deletion added to job queue/"),
51 "delete Upload Failed!\nPhrase 'Deletion added to job queue' not found\n");
parseSelectStmnt($page, $selectName, $optionText=NULL)
Login($User=NULL, $Password=NULL)