Tuesday, 28 April 2015

Learn Selenium-WebDriver with Core Java. : Print the menu and submenu option of espncricinfo.com

Learn Selenium-WebDriver with Core Java. : Print the menu and submenu option of espncricinfo.com: Menu Name- "+mainMenuName);             String xpath = "//div[@id='mainNav']//td[contains(@



Scroll Function Without Using Actions Class

java code :

                     for(int i=0;i<10;i++)
                    {
                             driver.findElement(By.tagName("body")).sendKeys(Keys.DOWN);
}
Thanks,
Subbu

Friday, 26 September 2014

HOW TO SETUP A SELENIUM WEBDRIVER PROJECT IN ECLIPSE ?

Creating a Simple Selenium – Java project in Eclipse

This post will help the selenium users-Beginners to setup the selenium project and execute a simple WebDriver script


Steps To Create a Selenium Project in Eclipse


Step 1: Download Eclipse



Step 2: Creating a New Java Project in Eclipse IDE



Step 3: Enter a Project Name E.g:SampleDemo

Step 4: Creating a New Package
Right Click on the New Java Project created → New→ Package

Step 5: Type In a New Package Name E.g:com.selenium.example

Step 6: Creating a New Java Class file.
Right Click on the Newly created Package → New → Class

Step 7:Type In a Name for your Java Class file,
click on the check box for “public static void main (String args[])”
Click on Finish


Step 8: The Java class file is created and ready for Java Scripting.

Now, We need to add the Selenium Library files to our project
Step 9: Download the selenium server from the seleniumhq.org website.

Step 10: Click on Downloads Tab and then click on the link as highlighted in the screenshot

Step 11: Save the jar file in a specific Location E.g C:/Selenium

Step 12: Configuring Build Path.
Right Click on the package → Build Path → Configure Build Path

Step 13: Click on Libraries tab → Add External Jar’s

Step 14: The jar files should be loaded from the C:/Selenium folder (or where you have saved the downloaded Jar file from Seleniumhq website) to our Eclipse Workspace and should look as in the screenshot

Step 15:We can also verify by expanding the Referenced Libraries in the Project Explorer that, whether the Jar file is added properly

Step 16: Now, our Eclipse is ready for Selenium Scripting :-)
Web Driver object initialization as WebDriver driver=new FirefoxDriver();
As in the below Screenshot

You may see errors, but that’s not a problem here is how we resolve it.


Step 17: Mouse Hover near the WebDriver error line you will see an Auto suggest Option, you will find Import WebDriver.
Click on Import WebDriver –Now the error will be vanished.

Step 18: Now Mouse Hover near the Firefox Driver, and you will get an autosuggest option.
Click on the Import FirefoxDriver option the suggested list


You can also eliminate the steps 15,16,17 by manually adding the below Import statements
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

And, that’s it we are done with Selenium Project setup in Eclipse.
Hope this helps!!!

Thursday, 25 September 2014


Selenium WebDriver








How Much Java you need to learn for a good Selenium Scripting ?

As far as Selenium is concerned we have our SeleniumHQ Site with frequently updated documentation we can go through that to get the selenium concepts much strong also there are many blogs on selenium wherein you can get to learn from the basics even .when considering the Language based client drivers if you use Java then here are some Java topics that you need to know for a better understanding and good selenium scripting.
    OOP’s concept – Class, Objects Polymorphism, Inheritance and Encapsulation
    Java Programming essentials- Object Instances, method overloading/overriding concepts and packages
    Control Statements – While, do-While, Switch, If statements – This will help us in writing the scripts for a multiple scenario statements and decision making scenarios.
    Looping statements – This will help us in scenarios like, iterating through a large table to find a record that you want and Running the same test for multiple number of times.
    Arrays Concepts – This will help us in having some set of datas of same type in a static way.
    Threads and MultiThreading Concepts – This will help us in making run our scripts in different threads that will help us in achieving better performance.
    Java Collections Framework – ArrayLists and HashMaps – This will help us in maitaining a collection of data’s. Particularly useful for scenarios where you need to compare the data from Web app UI with the DB. [OR] From UI to another UI
    File Streams – This will be helpful in externalization of data through CSV, Excel or Java Properties file.

Sunday, 14 September 2014

     Top 100 Software Testing Blogs

  1. First Top 100 of Software Testing Blogs. For those who would like to read more on Software Testing and QA, I created a list with 100 of the best.
          Read above wonderful post by Steven.

Friday, 5 September 2014

Top 25 Most Dangerous Software Errors.

Here are few top security vulnerabilities discussed in detail in this article:

  •  Improper input validation
  •  Improper escaping of output or encoding
  •  SQL injection
  •  Cross-site scripting
  •  Race conditions
  •  Information leak in error messages
  •  Error while transmitting sensitive information
  •  Memory leak
  •  External control of critical data and file paths
  •  Improper initialization
  •  Improper authorization
  •  Client side security checks

Check out below article so that you can at least help developers for improving their code standards.

Top 25 Most Dangerous Software Errors

Wednesday, 27 August 2014

Indian Bloggers On Software Testing.

Bloggers:
This page contains the list of Indian bloggers on Software Testing. If you want to get your blog added here please e-mail me at Subbu.palla@hotmail.com & wait for my reply :)
  1. Pradeep Soundararajan – TesterTested
  2. Parimala Shankaraiah – CuriousTester
  3. Sharath Byregowda – TestToTester
  4. Ajay Balamurugadas – EnjoyTesting
  5. Manoj Nair – TestingRedefined
  6. Mohit Verma – TestingNook
  7. Santosh Shukla – ProudTester
  8. Vipul Kocher – Eternal Student
  9. Dhanasekar S – Pragmatist
  10. Nandagopal R – Testing My Way
  11. Madhukar Jain – A Rapid Tester
  12. Shrini Kulkarni – Thinking Tester
  13. Mandeep Singh – Testers Planet “A creative destruction”
  14. SaiPavan Gubba’s blog
  15. Krishnaveni - Passionate Tester
  16. Amit Kulkarni – Bug Teaser
  17. Deepthi J C’s Blog
  18. Bharath S – Ticket Number
  19. Jigar Patel – Quick Start for Beginner
  20. LN’s Testing Blog – TESTER by INSTINCT, not by CHANCE.
  21. Manjinder’s Blog
  22. Sudhamshu’s blog – A Sane Tester
  23. Shiva Mathivanan’s blog – A Sapient Tester
  24. Mansi Rao’s blog – Testing Summit
  25. Yagnesh Shah’s blog – A budding tester
  26. Sunil Kumar’s blog – Vivid Tester
  27. Malini Mohan Kumar’s blog - MaliTheNerd
  28. Prasanna Kumar Sabat’s Blog - PrasannaSabat
  29. Deepak Malladad’s Blog – Deepak Malladad
  30. Vipin Vinchurkar’s Blog – TestersJournal
Above great information taken from Santhosh Tuppad blog.

Thanks & Regards,
Subramanyam Palla.

Sunday, 24 August 2014

Vegetable Names(Telugu To English) By Subbu

  • Aratipandu---Banana
  • Beerakaya--Ridge Gourd
  • Potlakayya--Snake Gourd
  • Sorakaya--Bottle Gourd
  • Yendu mirapa kaaya -- Red Chilli
  • Chukka koora -- Red sorrel
  • Puttagodugulu -- Mushroom
  • Vellulli -- Garlic
  • Usirikaaya -- Goose Berry
  • pudina Akulu  -- Mint Leaves
  • Kobbari Kaaya  -- Coconut
  • Maamidi Kaaya  -- Raw Mango
  • Mokkajonna  -- Corn
  • Bhatani  -- Green Peas
  • Bangalore Mirchi --   Capsicum
  • Chikkudu Kaya  -- Broad beans
  • Beetroot  -- Beetroot
  • Cabage  -- Cabage
  • Califlower/Gobi  -- Califlower
  • Arati Kaaya  -- Raw banana
  • Tamata  -- Tomato
  • Chema Dumpa -- Colacasia
  • Pachi Mirapa Kaya --   Green Chilli
  • Boodidhi Gummadi kaaya -- Ash gourd
  • Kothimeera  -- Coriander
  • Menthi Kura  -- FenuGreek Leaves
  • Gongura  -- Sorrel
  • Karivepaku  -- Curry Leaves
  • Paalakura  -- Spinach
  • Bachalikura  -- Chinese spinach
  • Thotakura  -- Amaranthus
  • Mulakkaaya  -- Drumstick
  • Alavalugadda -- Sweet Potato
  • Panasa kaaya  -- Raw Jack fruit
  • Dosakaya   -- Cucumber
  • Mullangi  -- Radish
  • Bendakaya  -- lady's-finger, okra
  • Goru chikkudu  -- Cluster beans
  • Dondakaya  -- Tindoora(Gherkin)
  • Anapakaya/Sorakaya --   Bottle Gourd
  • Potlakaya  -- Snake Gourd
  • Kakarkaya  -- Bitter Gourd
  • Vankaya  -- Brinjal
  • Alugadda/Bangala dumpa -- Potato  
  • Puchakaya--Watermelon
  • Chintakaya--Tamarind
  • Elephant Foot Yam - Kanda gadda
Thanks & Regards,
Subramanyam Palla.