awetestlib 0.1.12-x86-mingw32 → 0.1.13-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -7,37 +7,76 @@ After completing this guide you will be able to run tests locally from command l
7
7
 
8
8
  ------------
9
9
 
10
- ### Prerequisites
10
+ ## Prerequisites
11
11
 
12
12
  You need to have Ruby 1.8.7 installed. You can download Ruby 1.8.7
13
13
  [here](http://rubyinstaller.org/downloads/)
14
14
 
15
+ You can check your Ruby version using:
16
+
17
+ ruby -v
18
+
15
19
  Additionally, you will need to install DevKit to compile a few dependent gems. You can download DevKit
16
20
  [here](http://rubyinstaller.org/downloads/)
17
21
 
18
- ### Install
22
+ ## Install
23
+
24
+ In a terminal or command prompt, install the awetestlib gem
25
+
26
+ gem install awetestlib --no-ri --no-rdoc
27
+
28
+ Note: This could take up to 5 minutes for first time installs and you may need to use 'sudo'
29
+
30
+
31
+ ## Setup Regression Module
32
+
33
+ To setup the regression module, run the following command and verify the step
34
+
35
+ awetestlib regression_setup
36
+
37
+ ## Usage
19
38
 
20
- 1. In a terminal or command prompt, install the awetestlib gem
21
- - `gem install awetestlib --no-ri --no-rdoc`
39
+ Run the following command to see the different usages
22
40
 
41
+ awetestlib
23
42
 
24
- 2. To setup the regression module, run the following command and verify the step
25
- - `awetestlib regression_setup`
43
+ ## Setup Browsers
26
44
 
27
- ### Usage
45
+ ### Setup Safari (Mac OS X only)
28
46
 
29
- 1. Run the following command to see the different usages
30
- - `awetestlib`
47
+ To setup support for Safari browser, please follow the instructions at [SafariDriver](http://code.google.com/p/selenium/wiki/SafariDriver)
31
48
 
32
- 2. To setup the awetestlib gem with Netbeans or Rubymine, run either of the commands
33
- - `awetestlib rubymine_setup`
49
+ ### Setup Chrome
50
+ To setup support for Google Chrome browser, please download the latest Chromedriver version from [here](http://code.google.com/p/chromedriver/downloads/list)
34
51
 
35
- or
36
- - `awetestlib netbeans_setup`
52
+ Then move the executables in your PATH. To find your PATHs, type the command below in your terminal/command prompt
37
53
 
38
- You can now start your scripts within the IDE. Use the Run Configuration button.
54
+ For Mac OSX:
39
55
 
40
- For additional information on IDE setup, refer to the links below:
56
+ echo $PATH
57
+
58
+ For Windows:
59
+
60
+ PATH
61
+
62
+ ### Setup Internet Explorer
63
+ To setup support for Internet Explorer, please download the latest IEDriver version from [here](http://code.google.com/p/selenium/downloads/list)
64
+ and move the executable into your PATH.
65
+
66
+
67
+ ### Setup IDEs (Rubymine, Netbeans)
68
+
69
+ To setup the awetestlib gem with Rubymine use:
70
+
71
+ awetestlib rubymine_setup <ProjectName>
72
+
73
+ To setup awetestlib with Netbeans use:
74
+
75
+ awetestlib netbeans_setup <ProjectName>
76
+
77
+ You can now start your scripts within the IDE. Use the Run Configuration button.
78
+
79
+ For additional information on IDE setup, refer to the links below:
41
80
 
42
81
  - [Netbeans IDE setup](https://github.com/3qilabs/awetestlib/blob/develop/netbeans_setup.md)
43
82
 
@@ -58,12 +97,12 @@ The full list of parameters for the command line currently are:
58
97
  -x, --excel EXCEL_FILE Specify an excel file containing variables to be loaded
59
98
  -v, --version VERSION Specify a browser version
60
99
 
61
- To get started writing your own script, refer to the [Getting Started Scripting](https://github.com/3qilabs/awetestlib/wiki/Getting-Started---Scripting) wiki
100
+ To start writing your own script, refer to the [Scripting Guide/Wiki](https://github.com/3qilabs/awetestlib/wiki/Getting-Started---Scripting) wiki
62
101
 
63
102
  ### Cucumber Support
64
103
 
65
104
  One of the technologies that the Awetest framework supports is [Cucumber](http://cukes.info/). To get setup with cucumber, you can run the following command: `awetestlib cucumber_setup` which will create your typical cucumber folder structure.
66
105
 
67
-
106
+ Visit our [wiki](https://github.com/3qilabs/awetestlib/wiki/Predefined-Cucumber-Web-Steps) to see the list of predefined steps provided by awetestlib
68
107
 
69
108
 
@@ -1,14 +1,20 @@
1
1
  def awetestlib_cucumber_setup
2
- @cucumber_dir = File.join(FileUtils.pwd, "sample_cucumber")
3
- @source_dir = File.join(File.dirname(__FILE__), '..', 'setup_samples', 'sample_cucumber')
2
+ if ARGV[1].nil?
3
+ @proj_dir = "sample_cucumber"
4
+ else
5
+ @proj_dir = ARGV[1]
6
+ end
7
+
8
+ @cucumber_dir = File.join(FileUtils.pwd, @proj_dir)
9
+ @source_dir = File.join(File.dirname(__FILE__), '..', 'setup_samples', @proj_dir)
4
10
 
5
11
  if File.exists?(@cucumber_dir)
6
- puts "Sample Cucumber features directory already exists."
12
+ puts "Cucumber project directory already exists."
7
13
  exit 1
8
14
  end
9
15
 
10
16
  msg("Question") do
11
- puts "I'm about to create a sample cucumber feature in this directory"
17
+ puts "I'm about to create a cucumber project named #{@proj_dir} in this directory"
12
18
  puts "Please hit return to confirm that's what you want."
13
19
  puts "NOTE: You may need to run this command as an administrator."
14
20
  end
@@ -21,7 +21,7 @@ def print_usage
21
21
  awetestlib mobile_app_setup <project_name>
22
22
  setup a mobile app project
23
23
 
24
- awetestlib cucumber_setup
24
+ awetestlib cucumber_setup <project_name>
25
25
  setup cucumber regression and provide skeleton folder structure
26
26
 
27
27
  awetestlib <script_file> [parameters]
@@ -1,4 +1,4 @@
1
1
  module Awetestlib
2
- VERSION = "0.1.12"
3
- VERSION_DATE = "2012-09-10"
2
+ VERSION = "0.1.13"
3
+ VERSION_DATE = "2012-09-18"
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awetestlib
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 12
10
- version: 0.1.12
9
+ - 13
10
+ version: 0.1.13
11
11
  platform: x86-mingw32
12
12
  authors:
13
13
  - Anthony Woo
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-09-10 00:00:00 Z
19
+ date: 2012-09-18 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: watir-webdriver
@@ -398,3 +398,4 @@ specification_version: 3
398
398
  summary: Awetest DSL for automated testing of browser-based applications.
399
399
  test_files: []
400
400
 
401
+ has_rdoc: