Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
277 commits
Select commit Hold shift + click to select a range
c13c3a3
Merge branch 'master' into upgradeYcb
Apr 4, 2014
7fb88d9
Made the table render
ogennadi Apr 4, 2014
61444e9
Add test descriptor param for overriding window size.
Mar 25, 2014
5ec163c
Pass test params to driver navigate function.
Apr 3, 2014
1c13995
Set window position after resizing.
Apr 3, 2014
02a91ac
Make locator maximize window like default controller.
Apr 3, 2014
de4f155
Remove debug log.
Apr 3, 2014
051fc7b
Merge pull request #205 from ryanashcraft/master
pranavparikh Apr 4, 2014
1c4566b
Logging to a file after every 1000 lines
Apr 5, 2014
23b9a55
Reverting changes for log
Apr 5, 2014
ae02d3f
Using writeStream for proxy log
Apr 6, 2014
7d5096b
Setting startProxy flag
Apr 6, 2014
3c2831c
Changing method to end
Apr 6, 2014
d4c3af2
Adding debug statement
Apr 6, 2014
38e33e1
Fix for proxy logs
Apr 7, 2014
561149e
Fixing error msg
Apr 7, 2014
97baf67
Refactoring
Apr 7, 2014
f02969f
Merge remote-tracking branch 'upstream/master'
Apr 7, 2014
42e2a02
Fixing merge conflicts
Apr 7, 2014
8a1f9a3
Cleanup
Apr 7, 2014
dfd8d36
Fixing call for getProxyLogFilename
Apr 7, 2014
9768134
Merge branch 'master' into upgradeYcb
Apr 7, 2014
18764c5
Reverting to 2 secs
Apr 7, 2014
3b7cba0
Handling uncaught exceptions
Apr 7, 2014
9914e4e
Merge branch 'master' into upgradeYcb
Apr 7, 2014
0f72709
Fixes for proxy log
Apr 7, 2014
e8d6751
Reverting changes, using appendSync
Apr 7, 2014
1648f37
Cleanup
Apr 7, 2014
6c58386
Cleanup
Apr 7, 2014
907e3fe
Cleanup
Apr 7, 2014
7453068
Merge pull request #219 from proverma/master
pranavparikh Apr 8, 2014
c1a13f2
Merge branch 'master' into httpsDefaultAppSeed
Apr 8, 2014
52d5ea3
Upgrading to yui 3.15, using cdnjs link
Apr 8, 2014
2fe7034
Adding documentation for window resize
Apr 8, 2014
97cec84
Merge pull request #218 from pranavparikh/master
proverma Apr 8, 2014
8409639
Merge pull request #214 from ogennadi/patch-2
pranavparikh Apr 8, 2014
852fae4
Preparing for v0.5.1
Apr 9, 2014
8f9392e
Initial commit for data driven descriptors
Apr 12, 2014
a12a19a
Merge branch 'master' into upgradeYcb
Apr 12, 2014
2c85444
Upgrading ycb to 1.1.1
Apr 12, 2014
8653cfc
Commenting unwanted tests after ycb upgrade
Apr 13, 2014
add1632
Test cleanup
Apr 14, 2014
cc74447
Reverting ycb upgrade
Apr 15, 2014
0d1c8ab
Merge branch 'master' into httpsDefaultAppSeed
Apr 15, 2014
e9b50b5
Adding support for passing JSON blob as capabilities
Apr 15, 2014
c8b0904
Refactoring capabilitymanager, adding tests
Apr 15, 2014
5b03871
Merging user defined capabilities with default capabilities
Apr 16, 2014
7d50016
Cleanup
Apr 16, 2014
d892607
Cleanup
Apr 16, 2014
0937cbc
Merge pull request #227 from pranavparikh/master
proverma Apr 16, 2014
4a05758
Using yui as peer dependency
Apr 16, 2014
c4e7aec
Merge branch 'master' into httpsDefaultAppSeed
Apr 16, 2014
aa3f637
Merge remote-tracking branch 'upstream/master'
Apr 16, 2014
2c4a353
Adding capabilities file for documentation
Apr 16, 2014
a54642c
Merge pull request #228 from pranavparikh/master
proverma Apr 16, 2014
76dba47
Fixing readAndValidateJSON()
Apr 17, 2014
724d108
Adding invalid json for tests
Apr 17, 2014
29dd563
Adding comments
Apr 17, 2014
591fc21
Merge remote-tracking branch 'upstream/master'
Apr 17, 2014
78c2898
Merge branch 'master' into dataDrivenDescriptor
Apr 17, 2014
b511a08
Reverting to use clone module for cloning
Apr 18, 2014
c602742
Adding tests
Apr 18, 2014
e9a3f0c
Merge branch 'master' into dataDrivenDescriptor
Apr 18, 2014
2941a73
Adding support for config array as data driven
Apr 18, 2014
57c091f
Refactoring descriptor validation
Apr 18, 2014
ed7bab5
Removing unused method
Apr 18, 2014
f5a5758
Removing unused method
Apr 18, 2014
d370e5e
Better error messaging
Apr 18, 2014
c569a73
Merge pull request #230 from pranavparikh/master
pranavparikh Apr 18, 2014
84c739e
Cleanup, adding test for demo
Apr 18, 2014
d311066
Cleanup
Apr 18, 2014
4930a1f
Error handling for empty config
Apr 19, 2014
9dbcec7
Preparing for v0.5.2
Apr 21, 2014
c3c0670
Fixing relativePath declaration
Apr 21, 2014
fdaf446
Refactoring extends, adding test
Apr 21, 2014
4958483
Cleanup
Apr 22, 2014
afd7f52
Merge branch 'master' into dataDrivenDescriptor
Apr 22, 2014
184a5a5
Adding support for specifying comments in descriptors
Apr 24, 2014
8a06eed
Passing logLevel to node child process
Apr 24, 2014
e814da6
Reverting comments
Apr 24, 2014
a53b119
Adding demo for comments in scenarios
Apr 24, 2014
4f640af
Merge branch 'master' of https://github.com/pranavparikh/arrow
Apr 24, 2014
527331c
Refactoring ycb read to a separate method, jslint fixes
Apr 25, 2014
bd4083f
Merge pull request #232 from pranavparikh/master
pranavparikh Apr 25, 2014
a26c99d
Refactoring, cleanup
Apr 26, 2014
756a400
Fix A space after a comma in the 'commonLib' string in 'test-descript…
Apr 28, 2014
594bd12
Locking request dependency to 2.34.0 for yui
Apr 28, 2014
492845d
Merge branch 'master' into yuiPeerDep
Apr 28, 2014
91077a1
Fix for failure if lib string has space after a comma
Apr 28, 2014
52d3ed6
Merge pull request #233 from pranavparikh/master
proverma Apr 28, 2014
1497787
Preparing for v0.5.3
Apr 28, 2014
dc22ee2
Adding error handling for JSON parsing in webservice controller
Apr 28, 2014
b5d0b97
Merge branch 'master' into webControllerError
Apr 29, 2014
bbf3259
Fixing conflict
Apr 29, 2014
2e3a1de
Changing error message
Apr 29, 2014
6a511ad
Merge pull request #235 from pranavparikh/master
pranavparikh Apr 29, 2014
19ce0a1
Adding descriptorSharedParams feature
Apr 29, 2014
ab9550d
Renaming test file
Apr 30, 2014
d3b2d05
Refactoring demo test
Apr 30, 2014
428cba0
Moving datadriven demo tests to datadriven dir
Apr 30, 2014
3d4bc01
Demo test cleanup
Apr 30, 2014
5783e42
Merge branch 'dataDrivenDescriptor'
Apr 30, 2014
e69d0f0
Changing schema for data driven descriptor
May 1, 2014
98e25f9
Changing schema for data driven descriptor
May 1, 2014
faca847
Checking for duplicate keys in config data
May 1, 2014
3080433
Cleanup
May 1, 2014
25d142a
Cleanup
May 1, 2014
27b9b1e
Displaying descriptor name in error message for duplicate keys
May 1, 2014
0253001
Renaming extendDescriptor to processExtendDescriptor
May 1, 2014
056f2a3
Validating dimensions json file
May 1, 2014
1974e79
Showing consolidated report when more than 1 descriptor
May 1, 2014
9f65d06
Changing descriptorName to qualifiedDescriptorPath
May 1, 2014
325f934
Upgrading version to 0.6.0
May 1, 2014
0b159b0
Fixing failed descriptors message
May 2, 2014
77721df
Merge pull request #236 from pranavparikh/master
pranavparikh May 2, 2014
ef5cdf7
Preparing for 0.6.0
May 2, 2014
9e5ee20
Merge branch 'master' into yuiPeerDep
May 3, 2014
733648e
Setting peer dep to 3.8.0 for testing
May 3, 2014
6e634a1
Removing shrinwrap , updating yui peer dep to 3.x ( for testing )
May 3, 2014
6401444
Adding yui 3.8 as dev dependency
May 3, 2014
fed3050
Upgrading async version to 0.8.0, adding new shrinkwrap
May 3, 2014
9071945
Updating cdnjs yui link to 3.16
May 5, 2014
3d621da
Fix for exitCode
May 5, 2014
4689709
Adding exception handling for nested property
May 5, 2014
152b690
Reusing isFail logic from testSession, refactoring into sessionUtil c…
May 5, 2014
e849cb2
Cleanup
May 5, 2014
b22ccde
Cleanup
May 5, 2014
f156133
Cleanup
May 5, 2014
25bac7b
Fixing condition for descriptorSharedParams
May 5, 2014
a673c9d
Merge pull request #238 from pranavparikh/master
pranavparikh May 6, 2014
4ed63bd
Syncing with master
May 6, 2014
b12fc89
Intializing reportObj
May 6, 2014
4dead85
Merge branch 'master' of https://github.com/pranavparikh/arrow
May 7, 2014
7b767ff
Merge branch 'master' into yuiPeerDep
May 7, 2014
e2ced1c
Merge pull request #239 from pranavparikh/master
proverma May 7, 2014
758ff40
Fixing debug statement
May 7, 2014
e807e5b
Fixing debug statement
May 7, 2014
24d7c98
Adding test for invalid driver
May 7, 2014
b225a28
Restarting phantomjs before retry, if it crashed while test execution
May 8, 2014
79d280b
Preparing for v0.6.1
May 8, 2014
3ca37fe
Merge remote-tracking branch 'upstream/master'
May 8, 2014
6174b3c
Merge branch 'master' of https://github.com/pranavparikh/arrow
May 8, 2014
4d8a0a1
Merge branch 'master' into yuiPeerDep
May 8, 2014
aa040b2
Adding exception handling for YUI require
May 8, 2014
71a199e
Fixing error message
May 8, 2014
5533984
Using engineUtil for handling missing yui dependency
May 8, 2014
6bba367
Adding tests, cleanup
May 9, 2014
987d435
Fixing require issue
May 9, 2014
f1efa60
Fixing path for engineUtil
May 9, 2014
9fd90ac
Fixing engineUtil path
May 9, 2014
494a424
Fixing engineUtil path
May 9, 2014
bd44abe
Cleanup
May 9, 2014
8df4b32
Fixing path
May 9, 2014
f149851
Add additional checks
imbrianj May 10, 2014
5126084
Comment out check for unencoded &
imbrianj May 10, 2014
ea00327
Refactoring phantomJsSetup
May 11, 2014
9de40eb
Cleanup
May 11, 2014
dffbe5e
Merge pull request #244 from imbrianj/master
proverma May 12, 2014
7bedf27
Merge pull request #243 from pranavparikh/phantomjs_restart
proverma May 12, 2014
6a6766c
Preparing for v0.6.2
May 12, 2014
75444d9
Merge remote-tracking branch 'upstream/master'
May 13, 2014
50ad782
Reverting changes for yui peer dependency in master
May 13, 2014
3058fc0
Disabling timeout for safri
May 14, 2014
0094b90
Reverting changes for safari
May 14, 2014
9f13e5a
fix bugs about library loading for multiple descriptors import
May 15, 2014
e8f7eb1
Syncing npm-shrinkwrap
May 15, 2014
a561685
add unit tests and test data for multiple descriptor importing
May 16, 2014
9f4862e
add samples for multiple descriptor importing
May 16, 2014
62f9d42
Setting maxSockets to 200, removing agent=false
May 21, 2014
7677387
Properly formatted report log.
aljimenez May 28, 2014
de36e3d
Update reportmanager.js
aljimenez May 28, 2014
6f59430
Syncing shrinkwrap
May 29, 2014
bb6326e
Syncing with master
May 29, 2014
0a9482e
Syncing with master
May 29, 2014
ca17d83
Syncing with master
May 29, 2014
f480ceb
Merge branch 'master' into proxyMaxS
May 29, 2014
fc28a79
Merge pull request #250 from pranavparikh/proxyMaxS
proverma May 29, 2014
04429f0
Preparing for v0.6.3
May 29, 2014
fc16721
update multi descriptors importing demo to trigger main problem of cu…
May 30, 2014
5376344
fix an error while there is no commomLib, need to bypass resolvedComm…
May 30, 2014
4e927e6
Merge pull request #249 from aljimenez/patch-1
pranavparikh Jun 2, 2014
634506a
add a lib into test params which will cause lib path error
Jun 2, 2014
55e148f
don't lock down express 3.0.0
Jun 3, 2014
888b693
don't lock down mocha
Jun 3, 2014
09335ef
Merge pull request #252 from tonytamsf/master
pranavparikh Jun 5, 2014
76f4da3
Fix for supporting context with datadriven descriptors
Jun 6, 2014
c796c06
Renaming demo file
Jun 6, 2014
18eb735
update demo files for multiple descriptors import
Jun 9, 2014
abefc69
Fixing reporting issue for data driven
Jun 12, 2014
f2a90a2
Setting rejectUnauthorized to false for webservice controller
Jun 13, 2014
69f1941
Merge pull request #266 from pranavparikh/master
pranavparikh Jun 13, 2014
64e2d6c
Preparing for v0.6.4
Jun 13, 2014
a9778ad
Merge branch 'dataDriven'
Jun 13, 2014
b2a110a
Merge pull request #248 from kenyeah/master
pranavparikh Jun 13, 2014
7b34676
Fixing shrinkwrap
Jun 14, 2014
ed7f93e
Merge pull request #267 from pranavparikh/master
pranavparikh Jun 16, 2014
0dc07db
Preparing for v0.6.5
Jun 16, 2014
3ed263c
Fixing screenshot path
Jun 16, 2014
639e215
Fixing testName
Jun 16, 2014
90d92bf
Merge pull request #270 from pranavparikh/master
pranavparikh Jun 16, 2014
839b37d
Preparing for v0.6.6
Jun 16, 2014
bcba435
Add the capacity to record POST body and access it from proxy manager…
neversay Jun 17, 2014
d91636e
Add the setting for storing POST body.
neversay Jun 24, 2014
c010292
Change document.
neversay Jun 24, 2014
fb0e7a2
Merge pull request #271 from neversay/master
pranavparikh Jun 25, 2014
51a7089
First demo test for proxy with recording post body.
neversay Jun 25, 2014
a7778d6
Complete the test.
neversay Jun 25, 2014
c1b9f9e
Preparing for v 0.6.7
Jul 7, 2014
3757ea6
Merge pull request #273 from neversay/master
pranavparikh Jul 9, 2014
d11c708
Updating capabilities for iOS
Jul 18, 2014
05d8cc0
Merge pull request #275 from pranavparikh/master
pranavparikh Jul 18, 2014
db40e39
Preparing for v0.6.8
Jul 18, 2014
6be7e3d
Update README.md
pranavparikh Jul 21, 2014
4100dbc
Updating contributors
Oct 21, 2014
fbba2a6
Merge pull request #277 from pranavparikh/master
pranavparikh Oct 21, 2014
0128b8a
Adding support to show sauce labs report url in report
Nov 4, 2014
1cd8765
Upgrading version, adding changelog
Nov 6, 2014
800ea8b
Upgrading node version to 0.10.33 from 0.10.1 in travis.yml
Nov 7, 2014
cf97594
Merge pull request #278 from pranavparikh/saucelabs
pranavparikh Nov 7, 2014
ff52393
Updating sauce labs dashboard with test results
Nov 12, 2014
8df9c98
Adding tests
Dec 1, 2014
eee08a8
Adding tests, using common method for updating sauce results in testS…
Dec 2, 2014
3a9b8cf
Cleanup
Dec 2, 2014
3f973e7
Updating sauce labs dashboard with test results
Nov 12, 2014
1994d57
Merge branch 'saucela' of https://github.com/pranavparikh/arrow into …
Dec 2, 2014
cdaf9d2
Fixing require
Dec 2, 2014
a8612dc
Merge pull request #282 from pranavparikh/master
pranavparikh Dec 2, 2014
9f62bfb
Preparing for v 0.6.10
Dec 2, 2014
176fe50
Adding support for passing sauce username and accesskey in capabilities
Feb 8, 2015
0d94bb7
Merge pull request #284 from pranavparikh/master
pranavparikh Feb 9, 2015
a843b8f
Preparing for v0.6.11
Feb 9, 2015
e861d7e
Adding support for specifying sauce tunnel
Feb 26, 2015
305caf1
Merge pull request #285 from pranavparikh/saucetunnel
pranavparikh Feb 26, 2015
91cf192
Preparing for v0.6.12
Feb 26, 2015
d689e97
Merge pull request #286 from pranavparikh/master
pranavparikh Feb 26, 2015
0e6228d
Updating express to 4.x
Mar 4, 2015
5c58781
Merge pull request #287 from pranavparikh/master
pranavparikh Mar 4, 2015
1cf1622
Preparing for v0.6.13
pranavparikh Mar 4, 2015
524bbca
Preparing for v0.6.13
pranavparikh Mar 4, 2015
99a9f84
Updating shrinkwrap for express update
Mar 4, 2015
df9a070
Resolving conflicts
Mar 4, 2015
6e7dccf
Merge pull request #289 from pranavparikh/master
pranavparikh Mar 4, 2015
5d13b86
Update CHANGELOG.md
pranavparikh Mar 4, 2015
20cd66f
Adding body-parser and cookie-parser as separate dependencies
Mar 4, 2015
5963fea
Merge remote-tracking branch 'upstream/master'
Mar 4, 2015
d2520a2
Merge pull request #290 from pranavparikh/master
pranavparikh Mar 4, 2015
f48b9ef
Preparing for v0.6.15
Mar 4, 2015
c74116a
Fixing usage of cookieParser and bodyParser
Mar 5, 2015
67d6764
Merge pull request #291 from pranavparikh/master
pranavparikh Mar 5, 2015
fe28199
Preparing for v0.6.15
Mar 5, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- 0.8
- 0.10.1
- 0.10.33
before_install:
- npm conf set strict-ssl false
92 changes: 92 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,97 @@
# Change Log

# 0.6.16
* Fixing usage of cookie-parser and body-parser [PR](https://github.com/yahoo/arrow/pull/291)

# 0.6.15
* Adding cookie-parser and body-parser dependencies [PR](https://github.com/yahoo/arrow/pull/290)

# 0.6.14
* Updating shrinkwrap for Express update [PR](https://github.com/yahoo/arrow/pull/289)

# 0.6.13

* Updating Express to 4.x [PR](https://github.com/yahoo/arrow/pull/287)

# 0.6.12

* Adding support for passing sauce tunnel in capabilities [PR](https://github.com/yahoo/arrow/pull/285)

# 0.6.11

* Adding support for passing sauce username and accesskey in capabilities [PR](https://github.com/yahoo/arrow/pull/284)

# 0.6.10

* Update sauce labs dashboard with test results [PR](https://github.com/yahoo/arrow/pull/282)

# 0.6.9

* Adding support to show sauce labs report url in report [PR](https://github.com/yahoo/arrow/pull/278)

# 0.6.8

* Updating capabilities for iOS [PR](https://github.com/yahoo/arrow/pull/275)

# 0.6.7

* Add the capacity to record POST body and access it from proxy manager's record [PR](https://github.com/yahoo/arrow/pull/271)

# 0.6.6

* Fix for screenshots getting overwritten if there are multiple test failures in one descriptor [PR](https://github.com/yahoo/arrow/pull/270) [Issue](https://github.com/yahoo/arrow/issues/269)

# 0.6.5

* Fix for supporting context with datadriven descriptors and fixing shrinkwrap [PR](https://github.com/yahoo/arrow/pull/267)

# 0.6.4

* Setting rejectUnauthorized to false for webservice controller [PR](https://github.com/yahoo/arrow/pull/266)
* Setting express version to 3.x and Mocha to ~1.18.2 [PR](https://github.com/yahoo/arrow/pull/252)

# 0.6.3

* Fix to avoid ECONNRESET issue with Nodejs 10 [PR](https://github.com/yahoo/arrow/pull/250)

# 0.6.2

* Restarting phantomjs before retry, if it crashed while test execution [PR](https://github.com/yahoo/arrow/pull/243) [Issue](https://github.com/yahoo/arrow/issues/240)
* Add additional checks for markup-test.js [PR](https://github.com/yahoo/arrow/pull/244)

# 0.6.1

* Fix for exitCode not working for unit tests [PR](https://github.com/yahoo/arrow/pull/239)
* Fixing condition for descriptorSharedParams [PR](https://github.com/yahoo/arrow/pull/238)

# 0.6.0

* Adding support for data driven descriptors [PR](https://github.com/yahoo/arrow/pull/237) [Documentation](http://yahoo.github.io/arrow/arrow_FAQs.html#how-can-I-reuse-same-descriptor-with-different-sets-of-data)
* Adding support for sharing parameters from descriptors [PR](https://github.com/yahoo/arrow/pull/237) [Documentation](http://yahoo.github.io/arrow/arrow_FAQs.html#how-can-I-share-params-from-my-descriptor)
* Error handling for JSON parsing in webservice controller [PR](https://github.com/yahoo/arrow/pull/235)

# 0.5.3

* Adding support for specifying comments in descriptor [PR](https://github.com/yahoo/arrow/pull/232)
* Making nodejs tests honor logLevel [PR](https://github.com/yahoo/arrow/pull/232)
* Fixed the issue - space after a comma in the 'commonLib' string in 'test-descriptor.json' causes a fail [Issue](https://github.com/yahoo/arrow/issues/206) [PR](https://github.com/yahoo/arrow/pull/233)

# 0.5.2

* Using cdnjs link for yui [PR](https://github.com/yahoo/arrow/pull/228)
* Adding support to pass capabilities as JSON object, merging default capabilities with user defined capabilities [PR](https://github.com/yahoo/arrow/pull/227)

# 0.5.1

* Adding support for Android browser [PR](https://github.com/yahoo/arrow/pull/219)
* Adding support to resize the browser window [PR](https://github.com/yahoo/arrow/pull/205)
* Fixing the issue - Error: EMFILE, too many open files 'node/proxy.log [Issue](https://github.com/yahoo/arrow/issues/217) [PR](https://github.com/yahoo/arrow/pull/218)

# 0.5.0

* Adding feature to Import tests from other descriptors based test or group [ Details - https://github.com/yahoo/arrow/pull/200 ]
* Adding support for webdriver key object and improved error messaging [ Details - https://github.com/yahoo/arrow/pull/201 ]

# 0.4.3

* adding path method to return installed arrow directory [ Details - https://github.com/yahoo/arrow/pull/199 ]
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

***NOTE: This project is under maintenance mode and is not actively worked upon. We will only work on severe issues/bugs,if and when needed. Please feel free to fork it if you want to add a feature or make any enhancement.

#Arrow

[![Build Status](https://secure.travis-ci.org/yahoo/arrow.png?branch=master)](http://travis-ci.org/yahoo/arrow)[![NPM version](https://badge.fury.io/js/yahoo-arrow.png)](http://badge.fury.io/js/yahoo-arrow)
Expand Down Expand Up @@ -38,10 +41,12 @@ npm install -g yahoo-arrow
* **--seleniumHost** : (optional) override selenium host url (example: --seleniumHost=http://host.com:port/wd/hub)
* **--capabilities** : (optional) the name of a json file containing webdriver capabilities required by your project
* **--startProxyServer** : (optional) true/false. Starts a proxy server, intercepting all selenium browser calls
* **--routerProxyConfig** : (optional) filePath. Expects a Json file, allows users to modify host and headers for all calls being made by browser. Also supports recording of select url calls ( if you mark "record" : true)
* **--routerProxyConfig** : (optional) filePath. Expects a Json file, allows users to modify host and headers for all calls being made by browser. Also supports recording of select url calls ( if you mark "record" : true), and also supports recording the body of POST request (if you mark "storeBody": true), the default limit size of post body is 10240 bytes, you can change it by assigning "sizeLimit" : {integer in byte}.

Example Json :
{
"storeBody" : true,
"sizeLimit": 4096,
"router":{
"yahoo.com": {
"newHost": "x.x.x.x (your new host ip/name)",
Expand Down
8 changes: 5 additions & 3 deletions arrow_server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ var path = require("path");
var nopt = require("nopt");
var http = require("http");
var express = require("express");
var bodyParser = require("body-parser");
var cookieParser = require("cookie-parser");
var log4js = require("log4js");
var portchecker = require('../ext-lib/portchecker');

Expand Down Expand Up @@ -77,8 +79,8 @@ if (parsed["debug"]) {

var app = express();
app.use(log4js.connectLogger(logger));
app.use(express.cookieParser());
app.use(express.bodyParser());
app.use(cookieParser());
app.use(bodyParser.json());

var mimes = {
"css":"text/css",
Expand Down Expand Up @@ -360,7 +362,7 @@ app.get("/wd/hub/session/:sessionId", function (req, res) {
});

// Delete the session
app.del("/wd/hub/session/:sessionId", function (req, res) {
app.delete("/wd/hub/session/:sessionId", function (req, res) {
res.contentType("application/json");
res.send({status:9, value:"Delete session: Not Implemented"}, 501);
});
Expand Down
5 changes: 4 additions & 1 deletion config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ var config = {};
// User default config
config.seleniumHost = "";
config.phantomHost = "http://localhost:4445/wd/hub";
config.sauceLabsHost = "http://ondemand.saucelabs.com:80/wd/hub";
config.sauceUsername = "";
config.sauceAccesskey = "";
config.context = "";
config.defaultAppHost = "";
config.logLevel = "INFO";
Expand All @@ -20,7 +23,7 @@ config.baseUrl = "";
config.arrowModuleRoot = global.appRoot + "/";
config.dimensions = config.arrowModuleRoot + "config/dimensions.json";
config.defaultTestHost = config.arrowModuleRoot + "lib/client/testHost.html";
config.defaultAppSeed = "http://yui.yahooapis.com/3.8.0/build/yui/yui-min.js";
config.defaultAppSeed = "//cdnjs.cloudflare.com/ajax/libs/yui/3.15.0/yui-min.js";
config.autolib = config.arrowModuleRoot + "lib/common";

//for yui sandbox
Expand Down
5 changes: 5 additions & 0 deletions config/descriptor-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
"extends" : { "type" : "string"},
"startProxyServer" : { "type" : "boolean"},
"routerProxyConfig" : { "type" : "string"},
"comment" : { "type" : "string"},
"config" : {
"type" : "object"
},

"dataDriver":{"type": "string"},

"importDescriptor":{
"type":"array",
"items":[
Expand All @@ -36,7 +39,9 @@
"required":true,
"additionalProperties" : {
"type" : "object",

"properties" : {
"comment" : { "type" : "string"},
"enabled" : { "type" : "boolean | string" },
"controller" : { "type" : "string" },
"group" : { "type" : "string" },
Expand Down
25 changes: 25 additions & 0 deletions demo/mocha/importTests/finance-descriptor.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,35 @@
"test": "../test/test-quote-mocha.js",
"quote": "Yahoo! Inc. (YHOO)"

}
]
}
},

"Test AAPL Ticker" : {
"group" : "smoke",
"params" :{

"scenario": [
{
"page": "$$config.baseUrl$$"
},
{
"controller": "locator",
"params": {
"value": "#txtQuotes",
"text": "aapl\n"
}
},
{
"test": "../test/test-quote-mocha.js",
"quote": "Apple Inc. (AAPL)"

}
]
}
}

}
},
{
Expand Down
2 changes: 1 addition & 1 deletion demo/mocha/test/finance-controller-mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ FinanceCustomController.prototype.execute = function(callback) {

webdriver.waitForElementPresent(webdriver.By.css(".title")).then(function() {
self.driver.executeTest(self.testConfig, self.testParams, function(error, report) {
callback();
callback(error);
});

});
Expand Down
35 changes: 35 additions & 0 deletions demo/mocha/test/import-descriptor-all.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[
{
"settings": [ "master" ],

"name" : "import_test",

"config": {
"baseUrl": "http://finance.yahoo.com"
},

"importDescriptor":[
{
"path" : "../importTests/finance-descriptor.json"
}

],

"dataprovider" : {

"dummy_test" : {
"params" : {
"engine" : "mocha",
"engineConfig" : "./mocha-config.json",
"test" : "test-dummy-mocha.js",
"page" : "http://finance.yahoo.com"
},
"group" : "int"

}

}


}
]
2 changes: 1 addition & 1 deletion demo/mocha/test/import-descriptor-group.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"importDescriptor":[
{
"path" : "../importTests/finance-descriptor.json",
"group":"func"
"group":["func"]
}

]
Expand Down
21 changes: 19 additions & 2 deletions demo/mocha/test/import-descriptor-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,26 @@
"importDescriptor":[
{
"path" : "../importTests/finance-descriptor.json",
"importTest":["Test YHOO Ticker"]
"test":["Test YHOO Ticker"]
}

]
],

"dataprovider" : {

"dummy_test" : {
"params" : {
"engine" : "mocha",
"engineConfig" : "./mocha-config.json",
"test" : "test-dummy-mocha.js",
"page" : "http://finance.yahoo.com"
},
"group" : "int"

}

}


}
]
2 changes: 1 addition & 1 deletion demo/mocha/test/proxy-controller-record-mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ProxyCustomController.prototype.execute = function (callback) {
console.log(record);
self.testParams.proxyManagerRecord = record;
self.driver.executeTest(self.testConfig, self.testParams, function (error, report) {
callback();
callback(error);
});

});
Expand Down
32 changes: 32 additions & 0 deletions demo/mocha/test/test-dummy-mocha.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
var
Y,
chai;

describe('test-dummy-mocha', function(){
describe('test', function(){

before(function (done) {

// Initialize chai and YUI
if(typeof window == "undefined" && typeof chai == "undefined"){
chai = require('chai');
}
else{
chai = window.chai;
}

Y = YUI().use('node', function ()
{
done();
});

});

it('has dummy one', function(done){

chai.assert(1==1);
done();

});
});
});
11 changes: 11 additions & 0 deletions demo/test/capabilities.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"capabilities": {
"mac_chrome": {
"browserName": "chrome",
"platform": "MAC"
}
},
"common_capabilities": {
"javascriptEnabled": "true"
}
}
16 changes: 16 additions & 0 deletions demo/test/datadriven/configdata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"config": [
{
"finance": {
"baseUrl": "http://finance.yahoo.com",
"searchBtnId": "#mnp-search_box"
}
},
{
"yahoo": {
"baseUrl": "http://yahoo.com",
"searchBtnId": "#p_13838465-p"
}
}
]
}
Loading