Changeset 6611
- Timestamp:
- 14 Aug 2011, 20:54:31 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py
r6603 r6611 562 562 # We should be redirected to applicants form. 563 563 self.assertTrue(self.browser.url != self.login_path) 564 # Applicants see their Access Code in the contact form 565 self.browser.getLink("Contact").click() 566 self.assertTrue( 567 'Access Code:' in self.browser.contents) 564 568 return 565 569 -
main/waeup.sirp/trunk/src/waeup/sirp/browser/batchprocessing.txt
r6608 r6611 47 47 >>> browser.getControl(name='move').value = False 48 48 >>> browser.getControl(name='save').click() 49 50 Set non-usable datacenter path: 51 52 >>> browser.getLink('Edit settings').click() 53 >>> browser.getControl(name='newpath').value = '/' 54 >>> browser.getControl(name='save').click() 55 >>> 'Given storage path cannot be used.' in browser.contents 56 True 57 >>> browser.getControl('Cancel').click() 58 49 59 50 60 Batch processing faculties … … 549 559 >>> 'datacenter.log' in browser.contents 550 560 True 561 >>> browser.getControl('Show', index=1).click() 562 >>> '<input type="submit" name="back" value="Back" />' in browser.contents 563 True 564 >>> browser.getControl('Back', index=0).click() 565 >>> browser.getControl('Back to Data Center').click() 566 >>> 'Storage path:' in browser.contents 567 True 551 568 552 569 -
main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt
r6609 r6611 48 48 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... 49 49 ...Error: All fields must be filled... 50 ... 51 52 >>> browser.getControl(name='fullname').value = "Bob Tester" 53 >>> browser.getControl(name='email').value = "xx@yy.zz" 54 >>> browser.getControl(name='descr').value = "test message" 55 >>> browser.getControl('Submit').click() 56 >>> print browser.contents 57 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... 58 ...<li class="message">Your message has been sent.</li> 50 59 ... 51 60 … … 222 231 add-form to add new faculties:: 223 232 224 >>> browser.open('http://localhost/myuniversity/faculties/add') 233 >>> browser.open('http://localhost/myuniversity/faculties/manage') 234 >>> browser.getControl('Add faculty').click() 225 235 >>> print browser.contents 226 236 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... … … 228 238 ...<span>Name of faculty</span>: 229 239 ... 230 240 >>> browser.getControl('Cancel').click() 241 >>> browser.open('http://localhost/myuniversity/faculties/add') 242 231 243 We fill in a new name for our new faculty:: 232 244 … … 262 274 ...<h2>Faculty of TestFac (TF)</h2>... 263 275 ... 276 277 If we add the same faculty twice, an error message will occur: 278 279 >>> browser.open('http://localhost/myuniversity/faculties/add') 280 >>> ctrl = browser.getControl(name='form.title') 281 >>> ctrl.value = 'TestFac' 282 >>> browser.getControl(name='form.code').value = 'TF' 283 >>> browser.getControl('Add faculty').click() 284 >>> 'The faculty code chosen already exists.' in browser.contents 285 True 264 286 265 287 Modifying faculties … … 372 394 ...<span>Name of department</span>: 373 395 ... 396 >>> browser.getControl('Cancel').click() 397 >>> browser.open('http://localhost/myuniversity/faculties/TF/add') 374 398 375 399 We fill in a new name for our new department:
Note: See TracChangeset for help on using the changeset viewer.