Testing Web Apps With Scripting Language - Mark Rees, Century Software

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

3 comments

Comments 1 - 3 of 3 previous next Post a comment

Post a comment
Embed Video
Edit your comment Cancel

1 Event

Testing Web Apps With Scripting Language - Mark Rees, Century Software - Presentation Transcript

  1. Testing Web Applications with Scripting Languages Mark Rees Century Software
  2. twill
    • Simple language for web browsing
    • Stress tester
    • Web site tester
    • http://code.google.com/p/twill
  3. twill-sh
    • Interactive shell
      • twill-sh
    • Scripted browsing
      • twill-sh -u http://localhost:8087
    • Record twill scripts with scotch
  4. twill-fork
    • Scripted stress testing
      • twill-fork -n 100 -p 5 test-wiki.twill
  5. twill - unit testing
    • twill-sh process directory of tests
    • twill master run script
    • Python unit test framework
  6. twill – other features
    • Supports authentication
    • Debug helpers
    • Extended with user defined commands
    • Handles “bad” html
    • “ in-process” wsgi support
  7. twill – the cons
    • Advanced usage requires python skills
    • It knows nothing about javascript
  8. selenium
    • Test web apps from within the browser
    • Linux, Mac OS X, Windows
      • ie6+, firefox 0.8-3.0, mozilla 1.6+, safari, opera 8+, chrome
    • http://www.openqa.org/selenium
  9. Selenium Core
    • Uses javascript & iframes to embed test engine
    • Core must be installed on webserver under test
  10. Selenium IDE
    • Firefox extension
    • Gets round core limitations
    • Saves tests as
      • html or ruby ide scripts
      • Selenium RC run scripts in
        • Java, C#, Perl, PHP, Python, Ruby
  11. Selenium Remote Control
    • Allows auto web ui testing with any language
    • 2 components
      • Selenium server, written in java
      • Drivers for languages including python and ruby
  12. Selenium: how it works
  13. Other options
    • Watir http://www.openqa.org/watir
    • Watij http://www.openqa.org/watij
    • Floyd http://www.openqa.org/floya
    • HttpUnit http://httpunit.sf.net
    • Sahi http://sahi.co.in/w/
    • WebDriver http://code.google.com/p/webdriver
  14. WebDriver
    • One day will be part of selenium 2.0
    • Drives the browser using best native method
    • Java & Python bindings
  15. Questions
  16. code:test-rst2html.twill go http://localhost:8081/rst2html formvalue 1 text hello submit find "hello" back follow "Home"
  17. code:test-rst2html-debug.twill debug http 1 go http://localhost:8081/rst2html formvalue 1 text hello submit find "hello" back follow "Home"

+ Harisfazillah JamelHarisfazillah Jamel, 5 months ago

custom

509 views, 0 favs, 0 embeds more stats

Testing Web Apps With Scripting Languages Mark Rees more

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 509
    • 509 on SlideShare
    • 0 from embeds
  • Comments 3
  • Favorites 0
  • Downloads 7
Most viewed embeds

more

All embeds

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories