Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: install_test/sample_updater.py

Issue 10384104: Chrome updater test framework (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/test/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « install_test/install_test.py ('k') | pyautolib/fetch_prebuilt_pyauto.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:executable
+ *
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 """Runs sample updater test using two Chrome builds.
7
8 Test requires two arguments: build url and chrome versions to be used, rest of
9 the arguments are optional. Builds must be specified in ascending order, with
10 the lower version first and the higher version last, each separated by commas.
11 The setUp method creates a ChromeDriver instance, which can be used to run
12 tests. ChromeDriver is shutdown, upon completion of the testcase.
13
14 Example:
15 $ python sample_updater.py --url=<URL> --builds=19.0.1069.0,19.0.1070.0
16 """
17
18 import os
19 import sys
20 import unittest
21
22 from install_test import InstallTest
23 from install_test import Main
24
25
26 class SampleUpdater(InstallTest):
27 """Sample update tests."""
28
29 def testCanOpenGoogle(self):
30 """Simple Navigation."""
31 self._driver.get('http://www.google.com/')
32 self.UpdateBuild()
33 self._driver.get('http://www.google.org/')
34
35
36 if __name__ == '__main__':
37 Main()
OLDNEW
« no previous file with comments | « install_test/install_test.py ('k') | pyautolib/fetch_prebuilt_pyauto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698