Skip to main content

Customer Expects SIT in full swing!

Java Introduction

To run selenium scripts, we need to have a basic functional knowledge on Java. Everyone thinks (Beginners to programming Language) it is like Rocket Science and sending a Rocket to NASA! But not, this tutorial will help you to understand the basics of Java which not only helps you in the aspect of Selenium but also gives you the basic understanding of the structure of what programming language is all about.

So to start with we need to perform a basic installation steps to run a Java program on your machine. A Java program can be executed in two ways.

1) Using Command Line program (Preferred way - Best for beginners)
2) Using Editors like Eclipse etc.

I will outline you few concepts below which are the basic Java OOPS!!!! concepts. Here I mentioned OOPS its nothing but Object Oriented Programming System. In Java world we deal in depth and revolve by creating Objects, Objects are nothing the real world entities it can be you or me, or a bottle near you. You create your own function , you make it Run and you make it Sleep ;-)

To start with just have a review of each links below, I can understand your eagerness to learn everything quick and directly go to the last link here, Even I was like that. :-)

Want to share a small info, Mark Zukerberg (American computer programmer - Chairman - Facebook) said in a article that every human should know a programming language in the current era to make your life cool!

So lets do some coding and have Fun!!

Comments

Popular posts from this blog

Software Testing - Overview

Hi Friends, Welcome to a quick look up site, where you can know what is "T" "E" "S" "T" "I" "N" "G"! This site gives you the Overview as well the in-depth details of Software Testing, Approaches, Practices and additional tools which are required in Software testing practice. You could have imagined why this guy is speaking like a Professor. You as a reader knows right now a days people want's them to showcase and make things complicated. But I can assure reading this blog site you will enjoy learning in the same time not feel like in living in a 4th Dimensional world  (The Interstellar way ;-) ). Fun's apart! So lets start the story of Software Testing! Before I start I wan't to personally thank my English teacher for making me type a decent English and my Testing Guru Mr. Aravinth Kumar for giving me the complete knowledge of Software testing. To start with the story, we need to know about ab...

TestNG Tutorial

Introduction  TestNG is basically a Unit testing framework basically for Selenium webdriver Software automation for Test engineers. It is basically inspired or developed from JUnit (Tut's coming soon on JUnit) with additional functionalities or features. We use TestNG basically to annotate in the sense to make our code easily understandable to anyone. Its splits up the code in the form on Annotations like @Before , @After to showcase our code written in Selenium. Our section of TestNG here covers the below 1) Installation Guide 2) Execute a TestNG Webdriver Test 3) Testng Annotations with example To know more about TestNG features click on the link TestNG - Features or visit TestNG.org

Selenium - Basic Commands

Creating New Instance WebDriver driver = new FirefoxDriver() The above command is used to open a new instance of Firefox driver Command To Open URL In Browser driver.get("http://only-testing-blog.blogspot.com/2013/11/new-test.html"); This syntax will open specified URL of software web application in web browser. Clicking on any element or button of webpage driver.findElement(By.id("submitButton")).click(); Above given syntax will click on targeted element in webdriver. Store text of targeted element in variable String dropdown = driver.findElement(By.tagName("select")).getText(); This syntax will retrieve text from targeted element of software web application page and will store it in variable = dropdown. Typing text in text box or text area. driver.findElement(By.name("fname")).sendKeys("My First Name"); Above syntax will type specified text in targeted element. VIEW PRACTICAL EXAMPLE OF SendKeys Appl...