What is the selenium ?
Selenium is a automation tool .it is used for web based application and it more useful for regression testing and functional testing.Selenium have four type projects :
- Selenium IDE
- Selenium Remote control
- Selenium Web Driver
- Selenium Grid
I used the selenium IDE and selenium RC for my industrial training because of that i discussed these tool how to used in web based application automation.
Selenium IDE .
- Download the selenium IDE from this link .it's used for the recording purpose.this is a add on for Mozilla Firefox browser. So you open your Mozilla browser and go to this link and click the download version it should be automatically install as a add on . after that browser prompt the restart message then you will restart your browser .Now you can show your selenium IDE .
2. Click the selenium IDE this window should be prompt .
3.Now you can insert your web URL(what do you want to automate) in Base URL text box on your selenium IDE .
when you click your selenium IDE it should be automatically get the what URL you be in your Mozilla browser. Because of that make sure the base URL .
Check the record button . it should be ON.
Then you can execute your test case OR you can execute one functional flow on your Mozilla browser, the selenium IDE should be record the what did your web application.i suggest you can execute one test case at time it should be more better.
After the recording you will click the record button then it should be stopped . if you want check your record was work properly just click the play button.It worked either correctly then green light display under test case or it should be a error red light display under test case.
If you just save the recorded script it should be save as a html file and do you want to execute next time you open your selenium IDE and click the open and you can open in your selenium IDE and you can play and see the test case be executed perfectly.
If an error occur when you run the script check your commands and target .There are lot of commands selenium had. and also check the values because some times data base be dropped.
Developers want to follow some guidelines it should be easy and get the perfect out put .
- Need to use unique ID for every inputs ( ex: text box, text-area ,etc)
- Need to use the title for every page it should be more helpful for enhance the script .
Automation Testers to follow some guidelines
- Record the each and every test case.
- Enhance the test cases after the recorded script .
- They use the xpath addon and firebug addon its easy for find the targets.
Reference :
http://seleniumhq.org/
Not everything that can be counted counts, and not everything that counts can be counted.-Albert Einstein
Not everything that can be counted counts, and not everything that counts can be counted.-Albert Einstein
Just shared my experiences, my next blog should be how to use the selenium RC server for junit test used this recorded script ...
0 comments:
Post a Comment