16 $this->useProxy(
'http://web-proxy.fc.hp.com:8088',
'web-proxy',
'');
17 $this->assertTrue($this->
get(
'http://repo.fossology.org/'));
18 $this->assertAuthentication(
'Basic');
19 $this->authenticate(
'fossology',
'xxxxxxxx');
20 $this->assertText(
'Software Repository Viewer');
25 function testMenuAbout(){
26 $this->useProxy(
'http://web-proxy.fc.hp.com:8088',
'web-proxy',
'');
27 $this->assertTrue($this->
get(
'http://repo.fossology.org/'));
28 $this->assertAuthentication(
'Basic');
29 $this->authenticate(
'fossology',
'xxxxxxx');
30 $this->assertText(
'Software Repository');
32 $this->click(
'About');
33 $this->assertText(
'FOSSology');
43 function testMenuTools(){
44 $this->assertTrue($this->
get(
'http://osrb-1.fc.hp.com/~markd/ui-md/'));
47 $this->assertText(
'Software Repository');
49 $this->click(
'Tools');
50 $this->clicklink(
'Folders (refresh)', 0);
56 function testFolderCreate(){
57 $this->assertTrue($this->
get(
'http://osrb-1.fc.hp.com/~markd/ui-md/'));
60 $this->assertText(
'Software Repository');
62 $this->click(
'Organize');
63 $this->click(
'Folders');
64 $this->click(
'Create');
65 $this->assertText(
'Create a new');
66 $this->assertField(
'parentid',
'1');
72 function testFolderMove(){
73 $this->assertTrue($this->
get(
'http://osrb-1.fc.hp.com/~markd/ui-md/'));
76 $this->assertText(
'Software Repository');
78 $this->click(
'Organize');
79 $this->click(
'Folders');
81 $this->assertText(
'Move Folder');
84 function createfolder($name) {
86 $this->assertTrue($this->
get(
'http://osrb-1.fc.hp.com/~markd/ui-md/'));
89 $this->assertText(
'Software Repository');
91 $this->click(
'Organize');
92 $this->click(
'Folders');
93 $this->setField(
'parentid',
'Software Repository');
94 $this->setField(
'newname',
'$name');
95 $this->setField(
'description',
'edit properties Test folder');
96 $this->clickSubmit(
'Create!');
99 function testEditProperties(){
101 $this->assertTrue($this->
get(
'http://osrb-1.fc.hp.com/~markd/ui-md/'));
104 $this->assertText(
'Software Repository');
106 $this->click(
'Organize');
107 $this->click(
'Folders');
108 $this->click(
'Edit Properties');
109 $this->assertText(
'Edit Folder Properties');
112 $this->setField(
'parentid',
'Software Repository');
113 $this->createfolder(
'epTfolder');
114 $this->setField(
'parentid',
'epTfolder');
115 $this->setField(
'newname',
'EditPropTest');
116 $this->clickSubmit(
'Edit!');
119 $this->setField(
'parentid',
'EditPropTest');
120 $this->setField(
'description',
'Changed description for EditPropTest');
121 $this->clickSubmit(
'Edit!');
125 $this->setField(
'parentid',
'Software Repository');
126 $this->setField(
'description',
'Should see Please Select... in red');
127 $this->clickSubmit(
'Edit!');
130 $this->setField(
'parentid',
'Software Repository');
137 function testFuncCreateFolder(){
138 $this->assertTrue($this->
get(
'http://osrb-1.fc.hp.com/~markd/ui-md/'));
141 $this->assertText(
'Software Repository');
143 $this->click(
'Organize');
144 $this->click(
'Folders');
145 $this->click(
'Create');
146 $this->assertTrue($this->setField(
'parentid',
'Software Repository'));
149 $tail = random_int(0, getrandmax());
150 $folder_name =
'TestFolder' .
"$tail";
151 $this->setField(
'newname', $folder_name);
152 $this->clickSubmit(
'Create!');
158 $this->click(
'Organize');
159 $this->click(
'Folders');
160 $this->click(
'Create');
161 echo
"folder name:$folder_name\n";
162 $this->setField(
'parentid', $folder_name);