| OLD | NEW |
| (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. Specified builds are sorted before installation |
| 10 begins, meaning lowest version of Chrome gets installed first and then Chrome |
| 11 is updated using the next, higher version of Chrome. The setUp method creates |
| 12 a ChromeDriver instance, which can be used to run UI tests. Upon completion of |
| 13 the testcase, ChromeDriver is shutdown. |
| 14 |
| 15 Example: |
| 16 $ python sample_updater.py --url=<URL> --builds=19.0.1069.0,19.0.1070.0 |
| 17 """ |
| 18 |
| 19 import os |
| 20 import sys |
| 21 import unittest |
| 22 |
| 23 from install_test import InstallTest |
| 24 from install_test import Main |
| 25 |
| 26 |
| 27 class SampleUpdater(InstallTest): |
| 28 """Update tests for Protector.""" |
| 29 |
| 30 def testCanOpenGoogle(self): |
| 31 """Simple Navigation.""" |
| 32 self._driver.get('http://www.google.com/') |
| 33 self.UpdateBuild() |
| 34 self._driver.get('http://www.google.org/') |
| 35 |
| 36 |
| 37 if __name__ == '__main__': |
| 38 Main() |
| OLD | NEW |