testnow 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/lib/testnow/firefox.rb +5 -2
- data/lib/testnow/version +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d45b2d1b919ac6c4e97e74ef0492a4a9930c728c
|
4
|
+
data.tar.gz: a184892f0bec6f63b088080e744bc7eaccd4561c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec503973ef3005797e6906136f40f1068acbfeb80dc637981d0e75ecfe569d1fd41b470034a23dcba186f01dd244b29af83ae6acc85a98ee7a1d84b823b4a663
|
7
|
+
data.tar.gz: b742ebfaca88a16752e19f3bfd36972d8074dcb6f85da6e5df2cb0e117d9c562bc48e58598477b72d3e235eed1acf96e7438e596bfb7ba44920efcda05fef24d
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# testnow
|
2
2
|
|
3
|
-
An instant WebDriver-Ruby-Cucumber or WebDriver-Ruby-RSpec framework which has ability to do cross browser testing on any of the popular browsers, Firefox, Chrome, Opera, Internet Explorer, Safari, Android Browser. It uses the selenium-webdriver to driver the browsers already installed on your box. This gem also makes your existing automation code compatible to the TestNow platform by adding 1
|
3
|
+
An instant WebDriver-Ruby-Cucumber or WebDriver-Ruby-RSpec framework which has ability to do cross browser testing on any of the popular browsers, Firefox, Chrome, Opera, Internet Explorer, Safari, Android Browser. It uses the selenium-webdriver to driver the browsers already installed on your box. This gem also makes your existing automation code compatible to the [TestNow platform](https://testnow.opexsoftware.com) by [Opex Software](https://opexsoftware.com) by adding just 1 line of code your existing setup(Before) method.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
You must have Ruby installed before you can install this gem.
|
@@ -19,7 +19,7 @@ gem 'testnow'
|
|
19
19
|
## Usage
|
20
20
|
|
21
21
|
### 1. Instant Cross Browser Configuration -- TestNow Platform Compatibility
|
22
|
-
When creating a Selenium-WebDriver automation suite, if one requires cross browser testing, the biggest headache is configuring all browsers mainly because configurations for every browser is done differently.
|
22
|
+
When creating a Selenium-WebDriver automation suite, if one requires cross browser testing, the biggest headache is configuring all browsers mainly because configurations for every browser is done differently. This is where TestNow gem jumps in as an Asprin to cure your headache by taking care of all browser configurations.
|
23
23
|
|
24
24
|
Unlike some very famous Ruby-WebDriver tools which wraps up the WebDriver object and provides its own set of commands, TestNow gem returns you the ```driver``` object as is but initialized with any browser of your choice.
|
25
25
|
|
@@ -59,10 +59,13 @@ testnow rspec_now
|
|
59
59
|
This will run a series of commands and create a WebDriver-Ruby-RSpec framework for you in a directory called __rspec_now__. It will towards the end also ask you for gem dependency installation and it is highly recommended to say Yes. It will also create a sample scenario with a spec and spec_helper file with all configuration. This scenario can be executed by simple command to see a live demo of the execution.
|
60
60
|
|
61
61
|
```
|
62
|
-
cd
|
62
|
+
cd rspec_now # Navigate into the created directory
|
63
63
|
|
64
64
|
rake rspec_now # Executes using cucumber rake task
|
65
65
|
```
|
66
66
|
|
67
67
|
Use any of the command to execute the sample spec. A beautiful report will be created by this execution to in the reports directory. It will be in html format, please double click or open in a browser to view it.
|
68
68
|
|
69
|
+
|
70
|
+
## Contributing
|
71
|
+
Ideas and suggestions are always always most welcome. Please fork this gem code and feel free to add any updates, suggestions etc and create a pull request.
|
data/lib/testnow/firefox.rb
CHANGED
@@ -5,9 +5,12 @@ module TestNow
|
|
5
5
|
ENV['IS_UPA'] = "false" if ENV['IS_UPA'].nil?
|
6
6
|
if ENV['IS_UPA']=="true"
|
7
7
|
ENV['HAR_DIR'] = get_tmp_dir if ENV['HAR_DIR'].nil?
|
8
|
+
puts "=>=>=> Your HAR (UPA) files will be created here : #{ENV['HAR_DIR']}"
|
9
|
+
firebug = File.absolute_path(File.dirname(__FILE__)+"/../../data/firebug-2.0.13.xpi")
|
10
|
+
net_export = File.absolute_path(File.dirname(__FILE__)+"/../../data/netExport-0.8.xpi")
|
8
11
|
profile = Selenium::WebDriver::Firefox::Profile.new
|
9
|
-
profile.add_extension(
|
10
|
-
profile.add_extension(
|
12
|
+
profile.add_extension(firebug)
|
13
|
+
profile.add_extension(net_export)
|
11
14
|
profile['extensions.firebug.currentVersion'] = "2.0.13"
|
12
15
|
profile['extensions.firebug.allPagesActivation'] = "on"
|
13
16
|
profile['extensions.firebug.defaultPanelName'] = "net"
|
data/lib/testnow/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.7
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testnow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kaushal Rupani
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|