Merge lp:~davmor2/software-center/lp965222 into lp:software-center

Proposed by Dave Morley
Status: Merged
Merged at revision: 2914
Proposed branch: lp:~davmor2/software-center/lp965222
Merge into: lp:software-center
Diff against target: 40 lines (+36/-0)
1 file modified
contrib/USC-start-stop-times.py (+36/-0)
To merge this branch: bzr merge lp:~davmor2/software-center/lp965222
Reviewer Review Type Date Requested Status
software-store-developers Pending
Review via email: mp+99315@code.launchpad.net

Description of the change

Add my ldtp script to time frame open, application now usable and shutdown times to contrib.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'contrib/USC-start-stop-times.py'
--- contrib/USC-start-stop-times.py 1970-01-01 00:00:00 +0000
+++ contrib/USC-start-stop-times.py 2012-03-26 12:55:19 +0000
@@ -0,0 +1,36 @@
1#!/usr/bin/env python
2
3import os
4import sys
5import unittest
6import ldtp
7import time
8
9start_time = time.time()
10
11class ss_of_USC(unittest.TestCase):
12 def setUp(self):
13 ldtp.launchapp('software-center')
14 assert ldtp.waittillguiexist('frmUbuntuSoftwareCentre')
15 print sorted(ldtp.getapplist())
16 print ldtp.getmemorystat('xchat')
17 self.msgs = []
18 a = "Time taken for the frame to open is " + str(time.time() - start_time)
19 self.msgs.append(a)
20
21 def tearDown(self):
22 ldtp.selectmenuitem('frmUbuntuSoftwareCentre', 'mnuClose')
23 assert ldtp.waittillguinotexist('frmUbuntuSoftwareCentre')
24 c = "This test took a total of " + str(time.time() - start_time)
25 self.msgs.append(c)
26 print '\n'.join(self.msgs)
27
28 def test_1(self):
29 ldtp.waittillguiexist('frmUbuntuSoftwareCentre', 'btnAccessories')
30 assert ldtp.objectexist('frmUbuntuSoftwareCentre', 'btnAccessories')
31 b = "Time taken from start to find the Accessories button " + str(time.time() - start_time)
32 self.msgs.append(b)
33
34
35if __name__ == "__main__":
36 unittest.main()