autopilot 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/examples/examples.txt +55 -0
- data/examples/run_mac.rb +10 -10
- data/lib/auto_pilot/selenium_runner.rb +3 -0
- metadata +3 -2
@@ -0,0 +1,55 @@
|
|
1
|
+
# Running Seleium Runner:
|
2
|
+
#!/usr/bin/env ruby
|
3
|
+
|
4
|
+
require 'rubygems'
|
5
|
+
require 'auto_pilot'
|
6
|
+
|
7
|
+
runner = AutoPilot::SeleniumRunner.new(AutoPilot::FIREFOX)
|
8
|
+
runner.timeout = 1200
|
9
|
+
runner.clean = true
|
10
|
+
runner.dir = "results"
|
11
|
+
|
12
|
+
runner.suites << "http://<path-to-selenium>/core/TestRunner.html?test=../tests/laptops/SomeSuite.html"
|
13
|
+
runner.suites << "http://<path-to-selenium>/core/TestRunner.html?test=../tests/laptops/AnotherSuite.html"
|
14
|
+
runner.run
|
15
|
+
|
16
|
+
------------------------------
|
17
|
+
# Running SeleniumRunner in a block:
|
18
|
+
#!/usr/bin/env ruby
|
19
|
+
|
20
|
+
require 'rubygems'
|
21
|
+
require 'auto_pilot'
|
22
|
+
|
23
|
+
AutoPilot::SeleniumRunner.new(AutoPilot::FIREFOX) do |runner|
|
24
|
+
runner.timeout = 1200
|
25
|
+
runner.clean = true
|
26
|
+
runner.dir = "results"
|
27
|
+
|
28
|
+
runner.suites << "http://<path-to-selenium>/core/TestRunner.html?test=../tests/laptops/SomeSuite.html"
|
29
|
+
runner.suites << "http://<path-to-selenium>/core/TestRunner.html?test=../tests/laptops/AnotherSuite.html"
|
30
|
+
runner.run
|
31
|
+
end
|
32
|
+
|
33
|
+
------------------------------
|
34
|
+
# From the Command line:
|
35
|
+
aup
|
36
|
+
Usage: /opt/local/bin/aup [options] [args]
|
37
|
+
|
38
|
+
AutoPilot Options -----------------------
|
39
|
+
|
40
|
+
-s, --suite SUITE A test suite to execute. Multiple suites may
|
41
|
+
be specified, and are loaded in the given order.
|
42
|
+
-t, --timeout [TIMEOUT] The timeout value in seconds to run a suite before giving up
|
43
|
+
and moving on to the next suite.
|
44
|
+
-i, --interval [INTERVAL] The polling interval value in seconds to poll the server posted for results.
|
45
|
+
-c, --clean [CLEAN] Flag to clean previous results.
|
46
|
+
-b, --browser [BROWSER] Browser to use: FIREFOX (or FF, default), IE, SAFARI.
|
47
|
+
-d, --dir [DIR] Directory to store the results. Defaults to ./tmp.
|
48
|
+
-p, --port [PORT] Port on which to run the servlet server.
|
49
|
+
|
50
|
+
aup -c -d ./more_results \
|
51
|
+
-s http://<path-to-selenium>/core/TestRunner.html?test=../tests/laptops/SomeSuite.html \
|
52
|
+
-s http://<path-to-selenium>/core/TestRunner.html?test=../tests/laptops/AnotherSuite.html
|
53
|
+
-
|
54
|
+
|
55
|
+
|
data/examples/run_mac.rb
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
#$:.unshift File.dirname(__FILE__) + "/../lib"
|
4
3
|
|
5
4
|
require 'rubygems'
|
6
5
|
require 'auto_pilot'
|
7
6
|
#include AutoPilot
|
8
7
|
|
9
|
-
runner = AutoPilot::SeleniumRunner.new(AutoPilot::FIREFOX)
|
10
|
-
runner
|
11
|
-
runner.
|
12
|
-
runner.
|
13
|
-
|
14
|
-
#runner.suites << "http://localhost:8083/catalog/selenium/TestRunner.html?test=tests/mock/QuickSuite1.html"
|
15
|
-
#runner.suites << "http://localhost:8083/catalog/selenium/TestRunner.html?test=tests/mock/QuickSuite2.html"
|
16
|
-
runner.suites << "http://localhost:3000/javascripts/selenium-core-0.7.0/core/TestRunner.html?test=../tests/laptops/LaptopsSuite.html"
|
17
|
-
runner.run
|
8
|
+
# runner = AutoPilot::SeleniumRunner.new(AutoPilot::FIREFOX)
|
9
|
+
AutoPilot::SeleniumRunner.new(AutoPilot::FIREFOX) do |runner|
|
10
|
+
runner.timeout=1200
|
11
|
+
runner.clean = true
|
12
|
+
runner.dir = "results"
|
18
13
|
|
14
|
+
#runner.suites << "http://localhost:8083/catalog/selenium/TestRunner.html?test=tests/mock/QuickSuite1.html"
|
15
|
+
#runner.suites << "http://localhost:8083/catalog/selenium/TestRunner.html?test=tests/mock/QuickSuite2.html"
|
16
|
+
runner.suites << "http://localhost:3000/javascripts/selenium-core-0.7.0/core/TestRunner.html?test=../tests/laptops/LaptopsSuite.html"
|
17
|
+
runner.run
|
18
|
+
end
|
19
19
|
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: autopilot
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2006-06-
|
6
|
+
version: 0.0.4
|
7
|
+
date: 2006-06-27 00:00:00 -04:00
|
8
8
|
summary: AutoPilot is a Selenium Fitrunner launcher.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -28,6 +28,7 @@ cert_chain:
|
|
28
28
|
authors:
|
29
29
|
- Jamie Orchard-Hays
|
30
30
|
files:
|
31
|
+
- examples/examples.txt
|
31
32
|
- examples/run_mac.rb
|
32
33
|
- lib/auto_pilot
|
33
34
|
- lib/auto_pilot.rb
|