Skip to main content

Posts

Customer Expects SIT in full swing!

Recent posts

TestNG - Installation Guide

Firstly we need to download the TestNG framework to start using it in Eclipse. It is very Simple process. Again as I mention all ways, we need to have everything ready like Eclipse, JVM etc. Steps to configure: STEP 1: Open Eclipse , On the Menu options click on Help -> Install New Software STEP 2: An Installation window will be shown as below,

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...

Selenium Web driver - Introduction

Selenium is a Web Browser automation tool, which basically means you can use it to surf web programmatically on real web browsers. But mostly selenium is used for testing web applications. It has packages for most programming languages. The major challenge in executing a Selenium script would be finding the element for the page, there are many in build functions which are used the items are listed below: find_element_by_id find_element_by_name find_element_by_tag_name find_element_by_xpath find_element_by_link_text find_element_by_partial_link_text find_element_by_class_name find_element_by_css_selector Actions Commands and Operations

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 func...

Selenium Tutorials

Introduction: Selenium Webdriver Is open source software testing tool which supports many different browsers. It Is also supporting many different software programming languages like Python, Ruby, C#, Java, PHP and Perl so that you can create your test cases using your preferred language. Current days, Most popular language Is Java to prepare your software application automation test cases with selenium webdriver. To get a deep stretch to Selenium concepts I have splited the concepts based on the slow process approach In this tutorial we are going to see what is Selenium Automation testing is all about! before we deep dive into the concepts we will have few Introduction about "Automation Testing" the difference between Test case and Test scripts and different tools in Market. Automation Testing: It is a process of converting manual Test cases to Automated Test scripts by using an Automation Tool is called Automation Testing. Difference between Test Cas...