27 $this->useProxy(
'http://web-proxy.fc.hp.com:8088',
'web-proxy',
'');
28 $this->assertTrue($this->
get(
'http://repo.fossology.org/'));
29 $this->assertAuthentication(
'Basic');
30 $this->authenticate(
'fossology',
'xxxxxxxx');
31 $this->assertText(
'Software Repository Viewer');
36 function testMenuAbout(){
37 $this->useProxy(
'http://web-proxy.fc.hp.com:8088',
'web-proxy',
'');
38 $this->assertTrue($this->
get(
'http://repo.fossology.org/'));
39 $this->assertAuthentication(
'Basic');
40 $this->authenticate(
'fossology',
'xxxxxxx');
41 $this->assertText(
'Software Repository');
43 $this->click(
'About');
44 $this->assertText(
'FOSSology');
54 function testMenuTools(){
55 $this->assertTrue($this->
get(
'http://osrb-1.fc.hp.com/~markd/ui-md/'));
58 $this->assertText(
'Software Repository');
60 $this->click(
'Tools');
61 $this->clicklink(
'Folders (refresh)', 0);
67 function testFolderCreate(){
68 $this->assertTrue($this->
get(
'http://osrb-1.fc.hp.com/~markd/ui-md/'));
71 $this->assertText(
'Software Repository');
73 $this->click(
'Organize');
74 $this->click(
'Folders');
75 $this->click(
'Create');
76 $this->assertText(
'Create a new');
77 $this->assertField(
'parentid',
'1');
83 function testFolderMove(){
84 $this->assertTrue($this->
get(
'http://osrb-1.fc.hp.com/~markd/ui-md/'));
87 $this->assertText(
'Software Repository');
89 $this->click(
'Organize');
90 $this->click(
'Folders');
92 $this->assertText(
'Move Folder');
95 function createfolder($name) {
97 $this->assertTrue($this->
get(
'http://osrb-1.fc.hp.com/~markd/ui-md/'));
100 $this->assertText(
'Software Repository');
102 $this->click(
'Organize');
103 $this->click(
'Folders');
104 $this->setField(
'parentid',
'Software Repository');
105 $this->setField(
'newname',
'$name');
106 $this->setField(
'description',
'edit properties Test folder');
107 $this->clickSubmit(
'Create!');
110 function testEditProperties(){
112 $this->assertTrue($this->
get(
'http://osrb-1.fc.hp.com/~markd/ui-md/'));
115 $this->assertText(
'Software Repository');
117 $this->click(
'Organize');
118 $this->click(
'Folders');
119 $this->click(
'Edit Properties');
120 $this->assertText(
'Edit Folder Properties');
123 $this->setField(
'parentid',
'Software Repository');
124 $this->createfolder(
'epTfolder');
125 $this->setField(
'parentid',
'epTfolder');
126 $this->setField(
'newname',
'EditPropTest');
127 $this->clickSubmit(
'Edit!');
130 $this->setField(
'parentid',
'EditPropTest');
131 $this->setField(
'description',
'Changed description for EditPropTest');
132 $this->clickSubmit(
'Edit!');
136 $this->setField(
'parentid',
'Software Repository');
137 $this->setField(
'description',
'Should see Please Select... in red');
138 $this->clickSubmit(
'Edit!');
141 $this->setField(
'parentid',
'Software Repository');
148 function testFuncCreateFolder(){
149 $this->assertTrue($this->
get(
'http://osrb-1.fc.hp.com/~markd/ui-md/'));
152 $this->assertText(
'Software Repository');
154 $this->click(
'Organize');
155 $this->click(
'Folders');
156 $this->click(
'Create');
157 $this->assertTrue($this->setField(
'parentid',
'Software Repository'));
161 $folder_name =
'TestFolder' .
"$tail";
162 $this->setField(
'newname', $folder_name);
163 $this->clickSubmit(
'Create!');
169 $this->click(
'Organize');
170 $this->click(
'Folders');
171 $this->click(
'Create');
172 echo
"folder name:$folder_name\n";
173 $this->setField(
'parentid', $folder_name);