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