blob: 01821fc3641271a81cde863c28edf6da2e8a8480 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# 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.
"""Tests that demonstrate use of install test framework."""
import os
import sys
import unittest
from install_test import InstallTest
class SampleUpdater(InstallTest):
"""Sample update tests."""
def testCanOpenGoogle(self):
"""Simple Navigation.
This test case illustrates how to run an update test. Update tests require
two or more builds.
"""
self.Install(self.GetUpdateBuilds()[0])
self.StartChrome()
self._driver.get('http://www.google.com/')
self.Install(self.GetUpdateBuilds()[1])
self.StartChrome()
self._driver.get('http://www.google.org/')
def testCanOpenGoogleOrg(self):
"""Simple Navigation.
This test case illustrates how to run a fresh install test. Simple install
tests, unlike update test, require only a single build.
"""
self.Install(self.GetInstallBuild())
self.StartChrome()
self._driver.get('http://www.google.org/')
def testCanOpenNewTab(self):
"""Sample of using the extended webdriver interface."""
self.Install(self.GetInstallBuild())
self.StartChrome()
self._driver.create_blank_tab()
|