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

Unified Diff: chrome/test/install_test/sample_updater.py

Issue 11262040: Revert 164090 - Moved Main class to a new file called run_install_tests.py and modified it by addin… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/install_test/run_install_tests.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/install_test/sample_updater.py
===================================================================
--- chrome/test/install_test/sample_updater.py (revision 164108)
+++ chrome/test/install_test/sample_updater.py (working copy)
@@ -1,3 +1,4 @@
+#!/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.
@@ -2,4 +3,15 @@
-"""Tests that demonstrate use of install test framework."""
+"""Runs sample updater and install tests using one or more Chrome builds.
+Test requires two arguments: build url and chrome versions to be used, rest of
+the arguments are optional. Builds must be specified in ascending order, with
+the lower version first and the higher version last, each separated by commas.
+Separate arguments are required for install and update test scenarios. The
+setUp method creates a ChromeDriver instance, which can be used to run tests.
+ChromeDriver is shutdown upon completion of the testcase.
+
+Example:
+ $ python sample_updater.py --url=<URL> --builds=19.0.1069.0,19.0.1070.0
+"""
+
import os
@@ -9,6 +21,7 @@
import unittest
from install_test import InstallTest
+from install_test import Main
class SampleUpdater(InstallTest):
@@ -36,3 +49,7 @@
self.Install(self.GetInstallBuild())
self.StartChrome()
self._driver.get('http://www.google.org/')
+
+
+if __name__ == '__main__':
+ Main()
« no previous file with comments | « chrome/test/install_test/run_install_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698