Posts

Showing posts from 2019

How to learn Selenium Webdriver on your own online

Image
You can easily learn Selenium Webdriver yourself in just 1 month, yes you read it right!

If you want my above statement to work for you, then you would have to come up with a proper study plan and follow it with discipline. Discipline is the key here. Good news is, I am going to help you to make that study plan and also will share very useful blog posts links for the same, later in this post.

First important question is:
What all you need to learn to become expert in Selenium Webdriver?
Answer is simple, by learning everything in the below list:
First and foremost thing is Software Testing concepts: You can find Software Testing tutorial series here - Software Testing Tutorials SeriesCoding concepts - You have to learn coding concepts/skills in any one of the language which Selenium support i.e., Java, Pyhton, Ruby, C#, PHP. Currently java is ahead in the race. Refer this link to learn Java for Selenium - Java Tutorials SeriesFundamentals of HTML & CSS - You should have very basic kno…

What is the difference between Selenium IDE and Webdriver?

Image
First of all you should understand your automation needs and then only make a decision.
Let’s go through different variants of Selenium, this would make it easy for you to understand IDE and Webdriver.
Selenium IDE -It’s a record and play tool.Supports Firefox only: Comes as plugin with Firefox only, so not other browsers are supported.Coding is not required: if you want to automate using this tool. It will record your tests and generate html scripts for you.One can’t add coding logic in script: It can only be used for some very basic automation. As you cannot write your own logic or you won’t be able to put conditions or loops in your automation test script.No code re-usability: As we cannot create methods in ide scripts which are in html.Maintainabilityis quite high: Maintainence effort is quite high in IDE. If there are any changes in your application/software it would impact your automation scripts heavily.You can click on this link to see IDE sample script - Selenium IDE Sample S…

How to use TestNG annotations and their execution flow

Image
TestNG annotations are the most important part, they control the execution of test and other methods in the automation script. And in this post I am going to explain some of the important annoations. So, we will be covering following
@BeforeClass@AfterClass@BeforeMethod@AfterMethod@Test In below example, there are two methods f and g with @test annotation and every other annotation has one method each. Code example: package com.techlistic.selenium; importorg.testng.annotations.Test; importorg.testng.annotations.BeforeMethod; importorg.testng.annotations.AfterMethod; importorg.testng.annotations.BeforeClass; importorg.testng.annotations.AfterClass; publicclassTestNGAnnotations { @Testpublicvoidf() { System.out.println("f Test Case/Method"); } @Testpublicvoidg() { System.out.println("g Test Case/Method"); } @BeforeMethodpublicvoidbeforeMethod() { System.out.println("Before Method"); } @AfterMethodpublicvoidafterMethod() { …

How to use TestNG annotations with Selenium Webdriver

Image
In this you will learn the real use of TestNG annotations covered in previous post with Selenium Webdriver scripts.


Code example: package com.techlistic.selenium; importorg.openqa.selenium.WebDriver; importorg.openqa.selenium.chrome.ChromeDriver; importorg.testng.annotations.AfterMethod; importorg.testng.annotations.BeforeClass; importorg.testng.annotations.BeforeMethod; importorg.testng.annotations.Test; publicclassTestNGAnnotations2 { WebDriver driver; @BeforeClasspublicvoidsetupClass() { // Set Chrome driver property System.setProperty("webdriver.chrome.driver", "D:\\mydir\\chromedriver.exe"); // Launch chrome browser driver = new ChromeDriver(); // Opening Browser URL and maximize it driver.get("http://www.techlistic.com/"); driver.manage().window().maximize(); } @BeforeMethodpublicvoidsetupMethod() { // Webdriver Code for login } @Testpublicvoidtest_HomePage() { // Webdriver code to test some functionality on …

Which has a better career prospect - Selenium with Java or Python?

Image
Don’t ever rely on just one language, be proficient in multiple languages for successful career. Being from automation background and have worked with both java and python in combo with Selenium, so I try to give you a better idea. To start with you can go with any of the two languages you mentioned as both: Supports OOPSBoth are popular - Among world’s top 3 popular languages.Syntax - Easy to learn for both.Performance- Python is slower than java in various implementations.Cross Platform - Both supports cross platform.Applications - Both are used for Web, gaming and Machine learning applications.So, you can choose any one of the two on the basis of features. But there are some other reasons to consider before taking any decision. Other Reasons: As opportunities for Selenium with Java is higher in the market as compared to Selenium with Python.You can verify the fact by searching with keywords like ‘Selenium with Java’ and ‘Selenium with Python’ in any job portal.Large support is availab…

Some of the best computers to be used for hacking

Image
Well, this is one of Adrián Lamo‘s computers: Beautiful, isn’t it? He obviously owns this machine (to “own” something means you can fix it when it breaks, and the above has obviously been fixed many times). Here’s one of my own boxes: Yes, I’m using “box” literally… and yes, we actually installed LEDs inside the power supply (hint: there are two circuits inside, high voltage and low voltage; one of them can kill you and burn your house down, while the other will only burn your house down (which may or may not kill you)). It’s eco-friendly, too (the cardboard is biodegradable and the components are from the trash). TL;DR: The best computer for a hacker is one that they own. P.S. Also read Adrián Lamo's answer to How did Adrian Lamo learn to hack? Possibly the most important aspect of my early computer experience was finally having a computer system that was mine. I could experiment with it. I could break it and have to fix it. I could mess up the settings and have to learn how to …

How to Test a Website or Web Application?

Image
In this post you will learn the guidelines and checklist for testing a Web application.

1. Functionality:
1.1Links
Objective is to check for all the links in the website.
1.1.1          All Internal Links 1.1.2          All External Links 1.1.3          All mail to links 1.1.4          Check for orphan Pages 1.1.5          Check for Broken Links
1.2Forms       Test for the integrity of submission of all forms.
1.2.1          All Field Level Checks 1.2.2          All Field Level Validations. 1.2.3          Functionality of Create, Modify, Delete & View. 1.2.4          Handling of Wrong inputs (Both client & Server) 1.2.5          Default Values if any 1.2.6          Optional versus Mandatory fields.
1.3Cookies       Check for the cookies that has to be enabled and how it has to be expired. 1.4Web Indexing       Depending on how the site is designed using Meta tags, frames, HTML syntax,                      dynamically created pages, passwords or different languages, our site will be               …