Monday, January 30, 2012

Running Selenium Webdriver 2.0 in Opera

Following are the steps I used to run selenium webdriver in Opera
(Windows, Mozilla Firefox, Opera, Eclipse, Java)

Selenium IDE with Mozilla Firefox
- Open your Mozilla Firefox browser and Selenium IDE add on
- Record a simple and short test case for your testing application through Firefox and IDE
- Replay it ensure that cases runs alright as you recorded
- Export Test Case as JUnit4(Webdriver) Script from IDE

Selenium Webdriver/ Selenium 2.0
- Run Eclipse
- Create an new project
- Create a Class for the project without Main()
- Add the downloaded webdriver .jar files to your project in Java Build path-> Library
- Download and add another additional jar for Opera, selenium-server-standalone-2.18.0.jar
- Paste the JUnit4 code exported from IDE
- Hit the play button and enjoy ;)

Opera Configaration
- Opera latest versions
- Replace the code in exported JUnit code
-" driver = new FirefoxDriver(); " replace it with " driver = new OperaDriver(); "
- import com.opera.core.systems.OperaDriver;

Sunday, January 29, 2012

Running Selenium Webdriver 2.0 in IE

Following are the steps I used to run selenium webdriver in IE
(Windows, Mozilla Firefox, IE, Eclipse, Java)

Selenium IDE with Mozilla Firefox
- Open your Mozilla Firefox browser and Selenium IDE add on
- Record a simple and short test case for your testing application through Firefox and IDE
- Replay it ensure that cases runs alright as you recorded
- Export Test Case as JUnit4(Webdriver) Script from IDE

Selenium Webdriver/ Selenium 2.0
- Run Eclipse
- Create an new project
- Create a Class for the project without Main()
- Add the downloaded webdriver .jar files to your project in Java Build path-> Library
- Paste the JUnit4 code exported from IDE
- Hit the play button and enjoy ;)

IE Configaration
- IE 6 or Higher versions
- Go to IE Settings -> Internet options -> Security tab -> Enable protected mode for all type of connections
- Replace the code in exported JUnit code
-" driver = new FirefoxDriver(); " replace it with " driver = new InternetExplorerDriver(); "
- import org.openqa.selenium.ie.InternetExplorerDriver;

Wednesday, January 25, 2012

Running test scripts in Selenium 2.0

Following are the steps I used to run selenium webdriver
(Windows, Mozilla Firefox, Eclipse, Java)

Selenium IDE
- Open your Mozilla Firefox browser and Selenium IDE add on
- Record a simple and short test case for your testing application through Firefox and IDE
- Replay it ensure that cases runs alright as you recorded
- Export Test Case as JUnit4(Webdriver) Script from IDE

Selenium Webdriver/ Selenium 2.0
- Run Eclipse
- Create an new project
- Create a Class for the project without Main()
- Add the downloaded webdriver .jar files to your project in Java Build path-> Library
- Paste the JUnit4 code exported from IDE
- Hit the play button and enjoy ;)

Selenium cont.

I am listing my steps I used to configure selenium in my windows machine, in two different parts

Selenium IDE
- Add it to your Mozilla Firefox browser

Selenium Webdriver
- Download and install Java Runtime Enviroment
- Download and install Frame work you gonna use, I am using Eclipse Classic
- Download all the listed .jar files for webdriver

Move to my next post to running automation in webdriver :)

Lets start automation

So many automation application is available today but 3 most popular is Selenium, Watir and Sahi. Lets start with Selenium as it is most popular, have a very strong community for support and many many tutorial is available over the web to start. Selenium many different parts for different type of functionality. I am gonna use Selenium IDE, Selenium RC and Selenium Webdriver or Selenium 2.0 and others I am ignoring at the moment.

Selenium IDE
- An add on for Mozilla Firefox
- Used for recording activity in browser in terms of web applications
- Can export automation script of variety range of programming language to use in RC/ Webdriver/ Selenium 2.0

Selenium RC/ Selenium Webdriver / Selenium 2.0 (Java)
- Selenim RC or Webdriver or 2.0 is actually is the same application
- RC is the older version with have limited functionality and Webdriver/ Selenium 2.0 is the latest with more functionality in terms of automation scripting
- Support programming languages, I am focusing only in Java
- Exported script of IDE can be Import here

So, lets roll on my next post ;)

Monday, January 2, 2012

So, where your mind is?

- Do not test when you don't want to
- Do not test when you don't understand the domain
- Do not test when your mind is fighting with your personal problems
- Do not test in extreme time limit pressure
- Do not test one day to fill up other days work time
- Do not test when you are not prepare for test
.
.
.
Well if you have to then make sure you test that part again and don't forget to keep your mind in testing not somewhere else :D Remember you are compromising with quality, heavy to bare ;)