~ubuntu-branches/ubuntu/vivid/software-center/vivid

« back to all changes in this revision

Viewing changes to contrib/USC-start-stop-times.py

  • Committer: Package Import Robot
  • Author(s): Michael Vogt, kiwinote, Paolo Rotolo, Gary Lasker, Michael Vogt, Dave Morley
  • Date: 2012-03-26 19:02:24 UTC
  • Revision ID: package-import@ubuntu.com-20120326190224-qhmxquqfyfvuosbr
Tags: 5.1.13.2
[ kiwinote ]
* looks like the latest gtk causes us to receive less style-updated
  signals, call init_sc_css_provider explicitly so we don't loose our
  custom theming (LP: #961102)

[ Paolo Rotolo ]
* data/ui/gtk3/SoftwareCenter.ui:
   - fix string from "Terms of Service" to "Terms of Use" (LP: #963309).

[ Gary Lasker ]
* lp:~gary-lasker/software-center/tos-urls-lp961538:
  - use a different url for the inline ToS dialog (LP: #961538)
* lp:~gary-lasker/software-center/fix-crash-lp960742:
  - do not crash if file can not be unlinked (LP: #960742)
* lp:~gary-lasker/software-center/tos_buy_button_fix_lp961216:
  - This branch fixes bug LP: #961216, where the "Buy" button on the
    details page and listview stays insensitive after declining the
    ToS dialog
* lp:~gary-lasker/software-center/fix-crash-lp961198:
  - make recommendations menu available once the available pane is
    ready (LP: #961198)

[ Michael Vogt ]
* lp:~mvo/software-center/builder_get_cleanup:
  - cleaner way to get menuitems
* lp:~mvo/software-center/lp-955346:
  - draw stars with 1px border to get crisper stars (LP: #955346)
* lp:~mvo/software-center/fix-purchase-accept-crash:
  - fixes crash when accepting tos on system without s-c config file
* lp:~mvo/software-center/lp962927:
  - fix race condition on creating cache dir (LP: #962927)
* lp:~mvo/software-center/lp964918:
  - do not raise an exception in the case of multiple origins,
    instead log a warning and do the right thing in the UI
    (LP: #964918)

[ Dave Morley ]
* lp:~davmor2/software-center/lp965222:
  - add ldtp based statup time helper

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
import ldtp
 
4
import time
 
5
import unittest
 
6
 
 
7
start_time = time.time()
 
8
 
 
9
 
 
10
class TestCaseUSCStartStop(unittest.TestCase):
 
11
 
 
12
    def setUp(self):
 
13
        ldtp.launchapp('software-center')
 
14
        assert ldtp.waittillguiexist('frmUbuntuSoftwareCent*')
 
15
        print sorted(ldtp.getapplist())
 
16
        print ldtp.getmemorystat('xchat')
 
17
        self.msgs = []
 
18
        a = "Time taken for the frame to open is " + str(
 
19
            time.time() - start_time)
 
20
        self.msgs.append(a)
 
21
 
 
22
    def tearDown(self):
 
23
        ldtp.selectmenuitem('frmUbuntuSoftwareCent*', 'mnuClose')
 
24
        assert ldtp.waittillguinotexist('frmUbuntuSoftwareCent*')
 
25
        c = "This test took a total of " + str(time.time() - start_time)
 
26
        self.msgs.append(c)
 
27
        print '\n'.join(self.msgs)
 
28
 
 
29
    def test_1(self):
 
30
        ldtp.waittillguiexist('frmUbuntuSoftwareCent*', 'btnAccessories')
 
31
        assert ldtp.objectexist('frmUbuntuSoftwareCent*', 'btnAccessories')
 
32
        b = "Time taken from start to find the Accessories button " + str(
 
33
            time.time() - start_time)
 
34
        self.msgs.append(b)
 
35
 
 
36
 
 
37
if __name__ == "__main__":
 
38
    unittest.main()