Changeset 7930


Ignore:
Timestamp:
20 Mar 2012, 17:57:00 (13 years ago)
Author:
Henrik Bettermann
Message:

One more test. Unfortunately, we can't test more UI components with the demo portals of Interswitch and eTranzact.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.custom/trunk/src/waeup/custom/interswitch/tests.py

    r7929 r7930  
    7878        self.assertMatches('...Valid callback received...',
    7979                          self.browser.contents)
     80
     81    def test_webservice(self):
     82
     83        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
     84        self.browser.open(self.payments_student_path)
     85        IWorkflowState(self.student).setState('cleared')
     86        self.browser.open(self.payments_student_path + '/addop')
     87        self.browser.getControl("Create ticket").click()
     88        self.assertMatches('...ticket created...',
     89                           self.browser.contents)
     90        ctrl = self.browser.getControl(name='val_id')
     91        value = ctrl.options[0]
     92        self.browser.getLink(value).click()
     93        self.assertMatches('...Amount Authorized...',
     94                           self.browser.contents)
     95        payment_url = self.browser.url
     96
     97        self.browser.open(payment_url + '/request_webservice')
     98        self.assertMatches('...Unsuccessful callback...',
     99                          self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.