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

Unified Diff: tools/chrome_proxy/webdriver/simple_smoke.py

Issue 2528483004: Adds skeleton of new integration test framework. (Closed)
Patch Set: Fix nits. Created 4 years, 1 month 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
Index: tools/chrome_proxy/webdriver/simple_smoke.py
diff --git a/tools/chrome_proxy/webdriver/simple_smoke.py b/tools/chrome_proxy/webdriver/simple_smoke.py
new file mode 100644
index 0000000000000000000000000000000000000000..40c619fb0d7a5696d5a46134b269ee41a6fd4cfe
--- /dev/null
+++ b/tools/chrome_proxy/webdriver/simple_smoke.py
@@ -0,0 +1,23 @@
+# Copyright 2016 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.
+
+import time
+
+from common import IntegrationTest
+from common import TestDriver
+
+
+class SimpleSmoke(IntegrationTest):
+
+ def TestCheckPageWithProxy(self):
+ with TestDriver() as t:
+ t.AddChromeArgs(['--enable-spdy-proxy-auth'])
+ t.SetURL('http://check.googlezip.net/test.html')
+ t.LoadPage()
+ print 'Document Title: ', t.ExecuteJavascript('document.title')
+ time.sleep(5)
RyanSturm 2016/11/29 19:31:46 Why is the sleep(5) necessary?
Robert Ogden 2016/11/29 22:39:36 Demonstration purposes only. Real tests won't have
+
+if __name__ == '__main__':
+ test = SimpleSmoke()
+ test.RunAllTests()
« tools/chrome_proxy/webdriver/common.py ('K') | « tools/chrome_proxy/webdriver/common.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698