Joomla Extensions Demo

Support

Do not submit a bug report if you need technical support or have questions.

Forums

Post your suggestions ask for help in the community forums

Wiki

Visit the Wiki extensive and up to date documentation at your fingertips.

Contact Me

Missing images/links, any comments, suggestions, need help? Contact me

Skype

Need desperately help?
Skype Me™! But dont abuse of it!

Record testcases with Selenium IDE

User Rating:  / 0
PoorBest 
open.qa.logo Selenium is a test tool for web applications. Selenium tests run directly in a browser, just like real users do. It runs in Internet Explorer, Mozilla and Firefox on Windows, Linux, and Macintosh, Safari on the Mac.  They have plans to target Safari on the iPhone in some months. The tool is free and available under Apache 2.0.


  • Install the firefox plugin, note the latest version work only in Firefox 2.0 not in 3.0Beta!
  • Install also XPather another Firefox extension, very helpful to get the elements  XAPTH in pages.
  • Of course restart Firefox
  • Open either the sidebar (go to menu View, Sidebar, Selenium IDE) or the floating windows
    (go to menu Tools - Selenium IDE)
  • Go to the page where you wan to test something
  • Put the right Base URL (A) and press button (B) when ready
    doYourFirstSeleniumTest
  • You can now act like any user, enter data, change values, click on links
  • When You wan to add a check, you can at any time right click on a HTML element
    (a text, a cell, a button...) to see what selenium is proposing you.
    doYourFirstSeleniumTest.2
  • Not all possibility are proposed...so this is where knowing the element XPATH is helping...
    for more complex check, you can right click on any element and get the XPATH
    doYourFirstSeleniumTest.3 doYourFirstSeleniumTest.4
    now just cut and paste and feed the command (I choose verifytextPresent)
    doYourFirstSeleniumTest.5
  • Don't forget to stop the engine when you are finished or the script may be huge.
  • Into C, You can now cut and paste one or many lines, insert new commands (add more assert)
  • And replay seleniumSecurityImages2 till the  bar is green

 

Attention:

  • Do not abuse XPATH expression as it somehow hard code the previous position of the element in the page.
  • Try to make each test run on its own, do not expect that the test before is successful (so login. test functionality 1, logout)
  • Keep unit test small,
  • Keep all test in a repository (CVS or SVN) or many backup.

Read also:

You might also like:
Latest JetBRAINS Teamcity 5 plugin for the Tux Droid
701 days ago
Latest JetBRAINS Teamcity 5 plugin for the Tux Droid
I did refresh the tuxdroid teamcity plugin project a bit on request to Jasper Moltke Nygaard (Danm
Running Selenium Grid and a set of Remote control as NT serv
720 days ago
Running Selenium Grid and a set of Remote control as NT serv
Selenium has various projects that can be combined with each other to create a robust testing env
Install Atlassian Confluence in 15 minutes
839 days ago
Install Atlassian Confluence in 15 minutes
In this small post, you will learn how to install Atlassian Confluence in no more than 15 minutes.
TeamCity 5.0 now available
900 days ago
TeamCity 5.0 now available
Amazon EC2 and Virtual Agents Take avdantage of cloud computing with TeamCity by putting Build
Update JetBrains TeamCity in one click
1027 days ago
Update JetBrains TeamCity in one click
  A small script developed to upgrade TeamCity with no or less effort! a very simple script, ea
Adding Google analytics to Atlassian Bamboo
1115 days ago
Adding Google analytics to Atlassian Bamboo
As I found no better tutorial on Internet, here is a very very short how to add Google analytics
Continuous integration server Bamboo up and running
1118 days ago
Continuous integration server Bamboo up and running
My Bamboo continuous integration server is now fully functional and available at  http://bambo
TeamCity 4.5 up and running
1121 days ago
TeamCity 4.5 up and running
Today JetBrains announces the public availability of TeamCity 4.5, it's award-winning distribu
blog comments powered by Disqus
Parent Category: Java

Donations

Thank You for supporting my work
Subscribe to me on YouTube

Latest Articles

  • In this series of post I will outline some common techniques to help Joomla extensions development. As you know Jooml... ...
  • CedTag  has been updated to version 2.5.3 and correct a lot of bugs and contains some nice features. CedTag is t... ...
  • CedThumbnails has been updated to version 2.5.5 and contains 1 new features for both Joomla 1.7 and Joomla 2.5. For ex... ...
  • CedSmugmug  has been updated to version 2.5.2 and correct some bugs and contains some nice features. CedSmugmug&... ...
  • If you want an extra gigabyte of storage on your Dropbox account, the online cloud service invites you to compete in i... ...

Subscribe

Latest Comments

Popular Posts

rockettheme advertisement

dropbox logo

Help Us & Leave Feedback!

  • Do you have an excellent article idea you would like to read about here? Share it!
  • Do you have some interesting tips how we could improve our site?
  • Something missing here? Help us make this blog a better place, leave feedback!
We would love to hear from you! Be active! Write us now!