Permalink
Browse files

Adding example

  • Loading branch information...
1 parent d8eea17 commit 6cc4cd2c79588bf82335a666dc204d98addc14c6 @admc committed Apr 29, 2011
Showing with 13 additions and 7 deletions.
  1. +3 −1 README.md
  2. +10 −0 jfrc-example
  3. +0 −6 lib/jellyproxy.js
View
@@ -87,6 +87,7 @@ browser.go("http://www.google.com")
## ~/.jfrc
+<pre>
{
"log": false //show me logs
, "firefox": "/path/to/binary" //binary path to firefox if you want to set it manually
@@ -97,4 +98,5 @@ browser.go("http://www.google.com")
, "accessKey": "apikey" //sauce labs apikey
, "browserName": "firefox" //sauce labs default browser
, "version": "4.0" // sauce labs default browser version
-}
+}
+</pre>
View
@@ -0,0 +1,10 @@
+{
+ "firefox": "/path/to/manual/firefox/binary"
+ , "chrome": "path/to/manual/chrome/binary"
+ , "safari": "path/to/manual/safari/binary"
+ , "interface": "Airport" // required for safari testing (proxy setting)
+ , "username": "username" //sauce labs username
+ , "accessKey": "apikey" //sauce labs apikey
+ , "browserName": "firefox" //sauce labs default browser
+ , "version": "4.0" // sauce labs default browser version
+}
View
@@ -17,12 +17,6 @@ exports.jellyproxy = function(_this) {
res.end();
};
- var log = function(one, two, three) {
- if (_this.config.log) {
- console.log(one, two, three);
- }
- }
-
var server = http.createServer(function (req, res) {
var ip = req.connection.remoteAddress;
var uri = url.parse(req.url, true);

0 comments on commit 6cc4cd2

Please sign in to comment.