Selenium in real-world projects: Automated testing for web applications

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.

2 comments

Comments 1 - 2 of 2 previous next Post a comment

  • + guest6d387 guest6d387 9 months ago
    Problem is the selenium has a memory leak. therefore it is hard to detect leaks with it. Selenium keeps record of all the commands it runs. And that is stored in memory, therefore the longer and more tests you run the more memory it will consume.

    This is a big problem for my testing. Unfortunately I do not see a way to turn off that idiotic feature.
  • + andrew.macleod andrew.macleod 2 years ago
    Question on the last slide - how can Selenium be used to detect memory leaks?

    I am investigating this (by having Selenium Core make a URL request to a python web-server that runs a task manager), but am finding that Selenium itself leaks memory, making it difficult to measure the underlying application
Post a comment
Embed Video
Edit your comment Cancel

4 Favorites

Selenium in real-world projects: Automated testing for web applications - Presentation Transcript

  1. Selenium in real world projects Automated testing of web applications Martin Kleppmann Ept Computing | www.eptcomputing.com
  2. Deploying a new release http://flickr.com/photos/josa/124264708/ (creative commons)
  3. http://flickr.com/photos/dennissylvesterhurd/200001422/ (creative commons)
  4. Selenium
  5. Model-View-Controller Controller Unit testing Request Client Model DB Response View
  6. Build cycle Checkout latest version Run unit/model tests Migrate staging database 10 mins Deploy to staging server Fill database with example data Render lots of views: wget -r Run Selenium scripts Notify us of outcome
  7. Model-View-Controller Selenium testing Controller Unit testing Request Client Model DB Response View wget -r
  8. Functional stack Rendering on screen DOM (Document tree) Selenium HTML wget -r HTTP Web framework Model test Database
  9. Sample script # User is not logged in. Searches for auction and chooses it in the listing selenium.type \"search_query\", \"selenium\" selenium.click \"commit\" selenium.wait_for_page_to_load \"30000\" selenium.click \"link=Selenium test auction, single lot, normal+buy now\" selenium.wait_for_page_to_load \"30000\" # User places a bid of 12 pounds (below the reserve price) selenium.type \"bid_max_price_vatted\", \"12\" selenium.click \"bid_submit\" selenium.wait_for_page_to_load \"30000\" # User logs in as Adalbert selenium.type \"login\", \"adalbert\" selenium.type \"password\", \"asdf\" selenium.click \"commit\" selenium.wait_for_page_to_load \"30000\" # Bid confirmation page selenium.click \"bid_submit\" selenium.wait_for_page_to_load \"30000\" # Redirected to auction page - check Adalbert is losing assert selenium.is_text_present(\"You are losing your bid on this auction\") assert selenium.is_text_present(\"below the seller's reserve price\")
  10. Demo
  11. Selenium strong points • Simple and powerful DOM-level testing • Fairly stable – ok for continuous integration • Ajax-heavy apps (cross-browser issues) • Testing typical user flows • Good fit with Agile et al. • Open Source
  12. Selenium weak points • Fiddly setup, platform maintenance • Tedious error diagnosis • Valid UI changes may break test • Rendering tests limited • Interaction with Flash • Slow; concurrency problematic • Heavily dependent on state – generate data
  13. The future • “Selenium on demand” service – “rent a web browser”, large choice of platforms • Acceptance testing; testing impact of ads • Memory leak detection • Access to email in tests • etc...

+ martinkleppmannmartinkleppmann, 2 years ago

custom

2976 views, 4 favs, 2 embeds more stats

Selenium (http://selenium.openqa.org/) is a tool wh more

More info about this document

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

Go to text version

  • Total Views 2976
    • 2874 on SlideShare
    • 102 from embeds
  • Comments 2
  • Favorites 4
  • Downloads 233
Most viewed embeds
  • 101 views on http://www.yes-no-cancel.co.uk
  • 1 views on http://bit-asin91-win.pd.local

more

All embeds
  • 101 views on http://www.yes-no-cancel.co.uk
  • 1 views on http://bit-asin91-win.pd.local

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