This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Copyright (c) 2009 Jason R. Huggins | |
| Permission is hereby granted, free of charge, to any person | |
| obtaining a copy of this software and associated documentation | |
| files (the "Software"), to deal in the Software without | |
| restriction, including without limitation the rights to use, | |
| copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the | |
| Software is furnished to do so, subject to the following | |
| conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows XP | |
| [09:46] ~ $java -version | |
| java version "1.6.0_17" | |
| Java(TM) SE Runtime Environment (build 1.6.0_17-b04) | |
| Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing) | |
| [09:59] ~ $ruby --version | |
| ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] | |
| [09:59] ~ $python --version | |
| Python 2.6.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| C:\projects\selenium-miki\build\lib>python webdriver\ie_tests\api_examples.py | |
| ...................F......E.EE. | |
| ====================================================================== | |
| ERROR: testScreenshot (webdriver.common_tests.api_examples.ApiExampleTest) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "C:\projects\selenium-miki\build\lib\webdriver\common_tests\api_examples.py", line 45, in tes | |
| tMethod | |
| return func(self) | |
| File "C:\projects\selenium-miki\build\lib\webdriver\common_tests\api_examples.py", line 277, in te |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| C:\projects\selenium-miki2>set PYTHONPATH=c:\projects\selenium-miki2\build\lib | |
| C:\projects\selenium-miki2>cd build\lib | |
| C:\projects\selenium-miki2\build\lib>ls | |
| webdriver | |
| C:\projects\selenium-miki2\build\lib>python webdriver\chrome_tests\api_examples.py | |
| Traceback (most recent call last): | |
| File "webdriver\chrome_tests\api_examples.py", line 24, in <module> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 1) Install Firebug | |
| // 2) In a new browser window, open this URL: | |
| // chrome://global/content/commonDialog.xul | |
| // (It doesn't matter the particular .xul file you open, as long as it is a valid XUL file.) | |
| // 3) Launch JavaScript Shell in Firebug | |
| // 4) In the new shell window, type the following commands: | |
| var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] | |
| .getService(Components.interfaces.nsIWindowMediator); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Selenium IDE - Test Execution Workflow: | |
| *) Launch Selenium IDE | |
| *) Load/open a test case file. (Left as an excercise for the reader.) | |
| *) Press the green play button. Tool-tip reads "Play current test case". Under the hood, its id is 'play-button'. | |
| *) Which calls "cmd_selenium_play" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I, Jason Huggins, the author of the work "CoffeeScript Web Server" (2010), irrevocably renounce | |
| all current and future legal rights to the work in any medium whatsoever. | |
| I stand behind the merit of the work, but disclaim all liability for it under law. | |
| I encourage you, the audience, to share, copy, distribute, perform, remix, mash up, interpret, | |
| excerpt, translate, and otherwise enjoy and use the work as you will. | |
| I request that you acknowledge my authorship. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CoffeeScript + Node = Highly Caffeinated Web Server Scripting | |
| # Code: http://gist.github.com/304374#file_webserver.coffee | |
| # | |
| # Measured on a MacBook Pro (OS X 10.5.8, 3.06 GHz Intel Core 2 Duo, 4 GB 1067 MHz DDR3) | |
| hugs:~ hugs$ ab -n 1000 -c 10 http://127.0.0.1:8000/ | |
| This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
| Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
| Licensed to The Apache Software Foundation, http://www.apache.org/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install virtualenv | |
| sudo pip install virtualenv | |
| # Create the virtual environment | |
| virtualenv sandbox | |
| # Play around with Python inside the new 'sandbox' | |
| cd sandbox | |
| ./bin/python | |
| cd .. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Get recent updates | |
| $ sudo apt-get update upgrade | |
| $ sudo apt-get upgrade | |
| # Install some decent tools :-) | |
| $ sudo apt-get install vim ack-grep | |
| # Install pre-reqs | |
| $ sudo apt-get install sun-java6-jdk ruby rake subversion python-pip python2.6-dev | |
| $ sudo pip install distribute py |