Manual And Automation Testing : Testing is a process, in which all the phases of STLC (SOFTWARE TESTING LIFE CYCLE) like Test planning, Test development, Test execution, Result analysis, Bug tracking and Reporting are accomplished successfully and manually with Human efforts.
Any graduate who is creative can do testing.
Testing is a process in which defects are identified, isolated, subjected for rectification and ensure that the product is defect free,
in order to produce the quality product.
Software Development Life Cycle (SDLC) :
- Initial (or) Requirements phase — Interacting with customer and gathering the requirements
- Analysis phase — Feasibility study, Tentative planning, Technology selection and Environment confirmation, Requirement analysis
- Design phase — High level designing, Low level designing
- Coding phase — Programming (or) Coding
- Testing phase — Testing of an application
- Delivery and Maintenance phase — Hand over the Application to the client and provide knowledge transfer to operate team for further maintainance
Testing methodology (Testing Techniques) :
- Black Box Testing
- White Box Testing
One more derived method is Grey Box Testing
BLACK BOX TESTING :
It is method of testing in which one will perform testing only on the function part of the application without having the knowledge of structural part.
Usually the Black Box Test engineers will perform.
WHITE BOX (or) GLASS BOX (or) CLEAR BOX TESTING :
It is a method of testing in which one will perform testing on the structural part of the application.
Usually the White Box Tester’s or Developer’s will perform.
GREY BOX TESTING :
It is method of testing in which one will perform testing on both the functional part as well as structural part of on application.
Usually the Test engineer’s who has the knowledge of structural part will perform.
MAIN TYPES OF TESTINGS :
1) BUILD ACCEPTANCE TEST/BUILD VERIFICATION TEST/SANITY TESTING
2) REGRESSION TESTING
3) RETESTING
BUILD ACCEPTANCE TEST/BUILD VERIFICATION TEST/SANITY TESTING:
It is type of testing In which one will perform overall testing on the released build, in order to confirm whether it is proper for conducting detailed testing or not.
Usually during this type of testing they check the following:
– Whether the build is properly installed or not
– Whether one can navigate to all the pages of application or not
– Whether all the important functionality are available or not
– Whether all the required connections are properly established or not
Some companies even called this as SMOKE TESTING, but some companies will say that before releasing the build to the testing department, the developers will check whether the build is proper or not that is known as Smoke Testing and once the build is released what ever the test engineers is checking is known as Sanity Testing.
REGRESSION TESTING :
It is type of testing in which one will perform testing on the already tested functionality again and again.
Usually we do this in 2 scenarios :
When ever the tester’s identify the defects raise to the developers, next build is released then the test engineers will check defect functionality as well as the related functionality once again.
When ever some new features are added, the next build is released to testing department team. Then the test engineers will check all the related features of those new features once again this is known as Regression Testing.
RETESTING :
It is type of testing in which one will perform testing on the same functionality again and again with deferent sets of values,
in order to confirm whether it is working fine or not.
SOFTWARE TESTING LIFE CYCLE (STLC) :
- Test Planning
- Test Development
- Test Execution
- Result Analysis
- Bug Tracking
- Report
WAYS OF TESTING
- MANUAL TESTING
- AUTOMATION TESTING
MANUAL TESTING :
Manual Testing is a process, in which all the phases of STLC (Software Testing Life Cycle) like Test planning, Test development, Test execution, Result analysis, Bug tracking and Reporting are accomplished successfully and manually with Human efforts.
Drawbacks :
– More no of human resources are required.
– Time consuming.
– Less accuracy.
AUTOMATION TESTING :
Automation Testing is a process, in which all the drawbacks of Manual Testing are addressed properly and provides speed and accuracy to the existing testing process.
Drawbacks :
– Automated tools are expensive.
– All the areas of the application can’t be tested successfully with the automated tools.
– Lack of automation Testing experts.
Web Driver
It is a framework that allow us to execute cross browser test and this is used for web application testing and verifying our application.
- WebDriver is a interface.
- It includes below methods.
1) get() :-
It is used for passing the URL.
It is used to hold the browser till page loaded properly.
Syntax :- dr.get(“Passing the url”);
Example :- dr.get(“www.facebook.com”);
2) getPageSource() :-
It is used to retrive source code of html page.
Return type of this method is String.
Syntax :-
String page=dr.getPageSource();
3) getTitle() :-
It is used of fetch the title of web page.
Return type of this method is String.
Syntax :-
String title=dr.getTitle();
4) getCurrentUrl() :-
It is used to fetch the URL of web page and return type of this method is String.
Syntax:-
String current=dr.getCurrentUrl();
5) getFindElement():-
It is used to search element of webpage.
Return type of this method is WebElement.
Syntax :-
WebElement wb=dr.findElement(By.Id(“Passing the locators”));
6) getFindElements() :-
It is used to locate number of elements in same locator on webpage then we will use findelements.
Return type of this method is List.
Syntax :-
List l=dr.FindElements(By.Id(“Passing the locators));
7) manage() :-
It is used to control our browser.
Syntax :-
dr.Manage().Window().Maximize();
8) navigate() :-
It is used to navigate backword or forward direction.
It is also used for passing the url.
Syntax :-
dr.Navigate().back();
dr.Navigate().Forward();
9) swithTo() :-
It is used to switching our browser.
Syntax :-
dr.SwitchTo().frame();
10) getWindowHandle() :-
It is used to get information of window key.
Used for multiple window handling.
Return type of this method is String.
Syntax :-
String wh=dr.getWindowHandle();
11) getWindowHandles() :-
It is used to retrive key related window then we will use get window handles method.
Return type of this method is Set.
Syntax :-
Set s=dr.getWindowHandles();
12) close() :-
It is used to closing the current browser for web page.
Syntax :-
dr.close();
13) quite() :-
It is used to closing all the browseralong with child browser.
Syntax :-
dr.quite();
Selenium
Selenium is a open source tools for web application testing.
Advantage of selenium :–
- It is open source.
- It support different different programming language.
- It support differet different operating system.
- Easy to implement.
- code reusability.
Component of selenium :-
1. Selenium IDE (Integrated Development Environment).
2. Selenium RC (Remote Control).
3. Selenium Grid.
4. Selenium WedDriver.
1. Selenium IDE :-
a) It is a tools for recording and running our programme.
b) It provide existence firefox and chrome to generate test quickly.
c) In selenium IDE we no need to read any scripting language.
2. Selenium RC :-
a) In selenium RC we have to good knowledge of programming language this tool allow us to develop responsive design test in any scripting language.
b) In selenium RC there are two component
1.server.
2.client.
3. Selenium Grid :-
a) It is a inhance version of Rc and It introduce for resolving issue of selenium Rc problem.
b) It support multiple programming language and easy to find elements.
4. Selenium WebDriver :-
a) It is a framework that allow us to execute cross browser test and this is used for web application for testing and verifying our application.