Chromium Code Reviews| Index: install_test/sample_updater.py |
| =================================================================== |
| --- install_test/sample_updater.py (revision 0) |
| +++ install_test/sample_updater.py (revision 0) |
| @@ -0,0 +1,38 @@ |
| +#!/usr/bin/env python |
| +# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +"""Runs sample updater test using two Chrome builds. |
| + |
| +Test requires two arguments: build url and chrome versions to be used, rest of |
| +the arguments are optional. Specified builds are sorted before installation |
| +begins, meaning lowest version of Chrome gets installed first and then Chrome |
| +is updated using the next, higher version of Chrome. The setUp method creates |
| +a ChromeDriver instance, which can be used to run UI tests. Upon completion of |
| +the testcase, ChromeDriver is shutdown. |
| + |
| +Example: |
| + $ python sample_updater.py --url=<URL> --builds=19.0.1069.0,19.0.1070.0 |
| +""" |
| + |
| +import os |
| +import sys |
| +import unittest |
| + |
| +from install_test import InstallTest |
| +from install_test import Main |
| + |
| + |
| +class SampleUpdater(InstallTest): |
| + """Update tests for Protector.""" |
|
kkania
2012/10/02 17:05:16
Sample update tests.
nkang
2012/10/03 22:12:01
Done and done.
|
| + |
| + def testCanOpenGoogle(self): |
| + """Simple Navigation.""" |
| + self._driver.get('http://www.google.com/') |
| + self.UpdateBuild() |
| + self._driver.get('http://www.google.org/') |
| + |
| + |
| +if __name__ == '__main__': |
| + Main() |
| Property changes on: install_test\sample_updater.py |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |