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