Test plan and Importance

0 comments

Like any other project, when we have plan in place, Chances are the project will go smoother.
During the STLC test planning should happen first. Test plan document is a living and breathing thing which should always to be up to date.
A test plan is software document that outlines what, when, how, who and much more about the testing project.
It includes the objective and scope of the tests to be run however test plan doesn’t include the tests (Test cases) themselves.
Why we need to Create Test Plan?
Test plan helps you and the rest of team get on the same page. It works as a framework and a guide to ensure testing project is successful and helps us to control the risks.
Test plan document serve as a means of communication across the software Team. Test plan can also help us to track changes to the test project overall.
The very fact of writing test plan helps us to think through things in ways that we may not think about normally.

For sample Test plan please click following Link.

My Test Plan

This particular test plan is not an official document it is created for my training purpose only.


Browser Navigation Commands in C#

0 comments

In order to access navigation method, Just type IWebDriver.navigate(). Or driver.navigate(). In visual studio you will see the list navigation commands as bellow picture.



Back Command
Let say you browsing some webpage and you decided to go back to previous page you simply click on back arrow button in your browser.
In automation you simply use following usage to perform the above task.
Driver.Navigate().Back();

Forward Command
It is exactly opposite to the above. If you want to move forward the page from previous page use the following usage in automation
Driver.Navigate().Forward();

GoToUrl Command
Following command will be used navigate to particular page
Driver.Navigate().GoToUrl(“https://software-testingnz.blogspot.co.nz/”)

Refresh Command
This command refreshes the page as when we press F5 to refresh the page
Driver.Navigate().Refresh();

Identifying Test Cases to be Automated

0 comments


Persistent application features:
Core functionality Test Cases of the System those are unlikely to change significantly over time.

Driving with Value:
At fundamental level, Automation value is driven by the coverage it provides contrasted against the time it takes to automate it versus the time saved by the automation.

Time and Effort Saving
Which test cases consume huge amount of manual effort, they should be getting automated.

Consistent and Accurate Test Execution

Where manual testing fail to provide accurate results and consistency in every run

Benefits of Automation

0 comments
Benefits of Automation

What Does Test Automation Mean?

0 comments



It Really means using tools to:
   - Manage Test Scheduling
   - Do repetitive testing tasks
   - Be able to accurately reproduce tests
   - Run more tests in less time
   - Build Regression test suites
   - Build tests to validate requirements/functionalty


Difference between webdriver.Dispose(), .Close() and .Quit()

0 comments


Difference between webdriver.Dispose(), .Close() and .Quit()



1   webdriver.Close() - method closes the browser instance which was opened by the WebDriver. Suppose, during execution Webdriver had opened multiple browser windows. When close() method is called, it will close only the browser instance opened by it.

2   webdriver.Quit() - It closes all the browser windows that opened by the webdriver i.e. destroy the WebDriver instance. Suppose, during execution Webdriver had opened multiple browser windows. When quit() method is called, it will close all the browser windows opened by Selenium WebDriver.

3    webdriver.close() - closes the browser window on which the focus is set.
If there are more than one Browser window opened by the Selenium Automation, then the close( ) command will only close the Browser window which is having focus at that time. It wont close the remaining Browser window

Switch Comands

0 comments


What is switch command?
Webdriver library contains a set of classes and methods that help us to communicate with the web browser. In most of testing scenarios we find element on the website and then click it in case of buttons or fill the text in case of text boxes. Often, it’s enough when you begin to automate your tests in the web browser.
However, at some point you may get stuck discovering that you’re not able to find the element on the page. The first thing that you should ask yourself is: Maybe my application opened a new popup window and the element that I’m trying to find is placed in this new window? If your answer is “YES” – remember one thing:
The new popup window (or new tab) shows another HTML page which opens in a new context, so you should switch context to the new window first and then you can communicate with the new window. This is exactly what switch command comes into play.
Selenium WebDriver in C#: Switch To new window or tab
//switch to new window.
driver.SwitchTo().Window(driver.WindowHandles.Last());

//if you want to switch back to your first window
driver.SwitchTo().Window(driver.WindowHandles.First());
Copyright © Learn software testing - Blogger Theme by BloggerThemes & newwpthemes - Sponsored by Internet Entrepreneur