Testing Notes and Question

Testing Notes and Question

Testing question & notes


https://www.facebook.com/groups/shashikantsingh.MRA/738373896217005/


https://www.facebook.com/groups/shashikantsingh.MRA/730198837034511/

Manual Testing

Q> What is Manual Testing??
   
It is the process of where we check functionality of any application module with out using any automation tools, just check manually.

Q> What is SDLC??

#SDLC :  Software D Life Cycle
It is step by step procedure to develop the software.

Q> What is Waterfall model??

*# Waterfall-model : It is traditional model, it is sequential design process in which the process is seen following steadily downwards like waterfall model.

through the different phases as shown in the figure,



#> Requirement collection :- Done by business analyst   
   
Q> Who is business analyst??
   
Business analyst is a person who gathers requirement from client and translate business language into software language.

#> Feasibility study :- done by software team consisting of project managers.

#> Design :- There are 2 types of design,
                                                1>HLD – High Level Design
                                                2>LLD – Low Level Design
HLD –  done by architects and senior developers
LLD – done by senior developers. 

Coding / Programming :-
- done by  developers like – seniors, juniors, freshers

Testing :-
 done by test engineers
- it is the process of checking &  rectifying all defect.

Installation :- done by installation engineers

Maintenance :- bug fixing takes place

Advantage :- Here requirement is freezing thats why we get a stable product, because there is no chnage in design and code.

Dis-advantage :-  there is need to change some design & coding but we can not change in requirement.

    Application of Waterfall model

   * Developing a simple applications.
   * It is used for short term project
   * It is used whenever the requirement can not change.

Q> What is spiral model??
       
In Spiral model, the software product is developed in small modules.



Spiral model

 Advantages of Spiral Model :-
1)  In this module requirement changes are easily allowed.
2)  Once we develop a feature or module of the product, then and only then we can go on to develop the next module of the product.

Now i am gona discuss about most of the important model

V &V Model - Verification & Validation Model
This model is come up in order to overcome the drawback of waterfall model.
Here testing starts the requirement stage itself.
There's diff phases are shown in this figure



in this module development & testing both are carried parallel.  

Advantage 
*Requirment changes can be easily handled.
*Testing happens each and every level at the end, we will get   quality software.

Dis-advantage
*It is complicated to implement.

Applications of V&V model
1)Basically this model use for long term projects

2)complex applications

Prototype Model
1>It is dummy application which functionality unstable.
2>It help us to communication between customer & developers.
3>It will give customer a feel how the application look like before its develope.
There's diff phases are shown in this figure



Drawback of Prototype model
1>There is delay in starting the real project.
2>To improve the communication,there is an investment needed in building the prototype model.

There are 2 types of prototype

1>Static Prototype:- Here we come up with images of application and then we describe that on the word document.
2>Dynamic Prototype:- Here we come up with web pages then we link this webpage
  none of this field in this webpage will be functionality stable.
  to develope the run page we can make use of tools like eclipse, visual studio etc.

Advantage

*Cost of rework is less.
*It improves the communication between customer & developers.

Dis-advantage

*There is delay in the actual development of the software.

*It is mandatory to use prototype model.

Hybrid Model

It combines two or more modules & modify as per business requirement.

hybrid model in the combination of two models like spiral model+Prototype model= hybrid model




We will you go with waterfall model, spiral model, prototype model & v model?

*We go waterfall model when ever we expect minimum requirement changes in the project.
*We go with spiral model when ever there is dependency in the development.
*When ever there is a communication gap is not able to understand the requirement
 clearly we go with prototype model.
*V model is suitable for long term project.


Q> What is Software Testing??

It is a process finding or identifying defect in software is           called sw/testing.
It is verifying the functionality of application(s/w) against       requirement specification.

There are 3 types of software testing.

1) White box testing (WBT) also known as unit testing or glass box testing or transparent testing.
2) Grey box testing

3) Black box testing(BB) also known as functional testing or behavioural testing.

WHITE BOX TESTING (WBT)

WBT is done by developers. It is the testing of each and every line of code in the program. When we do WBT must hava knowledge in programming.
Developers do WBT, sends the software to testing team. 
The testing team does black box testing and checks the software against requirements and finds any defects and sends it to the developer. 

The developer fixes the defect and does WBT and sends it to the testing team. Fixing defect means the defect is removed and the feature is working fine.

Black Box Testing
In this testing we just give input & check the output the expected result.we dont bother about the logic & coding behind this.

Types of Black Box Testing

1>Functional testing:- Testing the functionality of each & every level thoroughly & vigorously is an application against the requirement document is called functional testing.

In this picture you can understand better

Integration Testing

Testing the data flow between two features and modules in an application is called as integration testing.
Example:- We do first functional testing for username & passowrd & submit & cancel button then we do integration testing.
Scenario1
Login as 'A' and click on compose mail, we do all functional testing. Now we click on send also check for save draft
after we send mail to 'B' we should check in the sent items folder of 'A' to see if the sent mail is there, now we logout
as 'A' & login as 'B' go to inbox & check if the mail has arrival.


Scenario2
We also do integration testing for spam folder, if the particular contact has been marked as spam then any mail sent by
that user should go to spam folder & not to the inbox, we also do functional testing for each & every feature like inbox,sent items etc.

Types of Integration Testing

1>Incremental integration testing :- Here inclemently at the module and then we test the data flow between them.


Top down approach :-
Here add a module in the child of previous module & then we test the data flow happening parent module & child or not.

Bottom up approach:-
Here we incremently at the module such that to add module in the parent of previous module and then we check whether the data flow is happening from child to parent
or not.

Sandwich approach:-

It is the combination of two approaches like top down+bottom up approach.

2>Non Incremental Integration Testing or Big Bang Testing

Here we randamly pick up any two features then test the data flow between that.

System Testing:- 
End to end testing where testing at environment is similarly to production environment.
The system as a whole is start testing to uncover requirement errors.

Verifies that all system function and performance has been courage.

For example
i am doing testing on a web application of a on-line shopping & in this web application have many modules like Electronics Module, Sale product Module, Cellphone Module, Auto mobile Module, and Menswear Module and so on. Now you have to do System Testing on a web application of a on-line shopping, so your criteria for doing System Testing will be like that which is given below:

1. First you test the graphic user interface of all mentioned modules by checking that font size, alignment, display images should work properly on all the modules.

2. Checking functionality related issues by checking that the requirements of client have been m or not.


3. After checked functionality i can check whether the application is user friendly or not so here i start checking that properly messages should be displayed on  screen or not. In this Usability Testing you test the whole system  means app by keeping users in mind because if the app is not user friendly than your client will not accept for a long time, the app because in app apart from functionality user friendly is also most of the important part.


Smoke Testing

Testing the critical function or basic feature is an application before doing through testing or in depth testing is called as smoke testing.




let assume that developer give a software to testing team and the software have 5 links and we need to test this 5 times in 5 days.
let assume that we have starting in dept testing in that case, 1st day we are going to tset 1st link in detail manner.
2nd day we are going to tset 2nd link in detail manner, 3rd day we are going to tset 3rd link in detail manner,
4th day we are going to tset 4th link in detail manner and see link is not working properly. Now we communicate this defect to the developer, we could have avoid
this delay by starting the smoke testing, this smoke testing we test whether the critical or basic features are working properly or not. Before doing in depth testing
That is day1 it self is checking. All times are working or not in high level manner. this is help to identity critical defects at the early stage & communications to 
the same to that developer.
Developer will give dvelop have sufficient time to fix it and delays are avoided.

Note:- In smoke testing we perform only positive tesing, in positive testing we give only valid i/p and perform it.




In this above login link we perform smoke testing. we will give valid username & valid password and click on 'ok' if we are able lo login then smoke testing has pass.

Advantage
1>It will help us to find out the application testable.
2>It will help us to find out critical defects at early stage community.These defects to the develope sufficiant time & delay can avoid.

Interview Questions

Q* How much time it used to take your current project?
Ans* Approx 4 hours because the project is to long.
Q* Do you think smoke testing perform waste of time?
Ans* Never.
Q* As soon as you get the build what will you do?
Ans* Start with smoke testing.


ACCEPTANCE  TESTING
here few end users will start using software in real business for a particular of time find out does the software support all the business scenario or not.
Type1 :- here few end users will start using the software in a real business for a particular period of times find out does the spftware support all the business scenario or not.

Type2 :- Tester from development company will go to the clients location and they will test the software based on the scenario gathered from end users to find out does the software are support all the required business scenario.
Alpha Testing :- Performed at the organization before releasing the software.
Beta Testing :- Performed at customer place by the end user.

Exploratory Testing

When ever there is no requirement document or their is no time to need requirement document or requirement document is not under stable then we explore the application come up with scenario and test the application based on this scenario.

It is simultaneously process of testing when ever their is no requirement document or their is no time to read the documents or requirement document is not under stable.


consist of the following section
1* Aim
2* Testers
3* Start & End day
4* Build version
5* Exploratory notes
6* Exploratory discoveries
7* Estimated & actual destination

Adhoc Testing
Here we come up with creative scenario and then we test the application based on those scenario.
             OR
End-users use the application randomly and he may see a defect, but professional TE uses the application systematically so he may not find the same defect. In order to avoid this scenario, TE should go and then test the application randomly (i.e, behave like and end-user and test).



In the above figure, after we have tested the application for FT, IT and ST – if we click on some feature instead of going to homepage (or) sometimes datapage, if it goes to blank page then it will be a bug. In order to avoid these kind of scenarios, we do Ad-hoc testing.


                    

GLOBALIZATION TESTING 
When ever Developing the application for multiple languages be called that globalization and testing and the application which is developed for multiple languages be called that globalization testing. 




There are 2 types of globalization testing
Internationalization Testing ( I18N testing ) It has we check whether right content is displayed or not.It has website develop in Chinese language the whole content in Chinese.If there some other content it is defect.
Example, The whole website in Chinese then copyright information is in english.    
Localization Testing ( L10N testing ) Here we check all the fields in application is developed of based on local country standard or not.
Example, The date field in India DD/MM/YY  where as the date format in US should be MM/DD/YY where as Chinese YYYY/MM/DD.

Remember :-  In order to perform Globalization testing we make Google translater.

*Non-Functional Testing




Performance Testing
Testing the stability and response time of the application by applying load click on it is called as performance testing.

Response time
Time taken under request time taken to the processing+time taken to get the responsible back in response time.

Load testing
Total number of users accessing the application at given point of time known as load testing.

Stress Testing
It is a type of non-functional testing.
It have beyond normal operational capacity, having breaking point, in order to observe the results.
It is a form of software testing that is used to determine the stability of a given system.

Volume testing
here we transfer huge volume of data from one location to another location and then we check did this happen specifid amount of time.

Soak
Testing the stability and response time of application by application load which is less than or equal to desined number of user continuously for a particular period of time.

List of performance tools are
Appvance
NeoLoad
LoadUI
WAPT
LoadImpact
Rational Performance Tester
WebLOAD
Apache JMeter
LoadRunner
Loadster
OpenSTA
                                                          *Bug_Life_Cycle


New- After creating bug new issue by tester, the status of bug will be new.

Open- If created bug found genuine issue then program manager lead will open this issue for resolve.

Assign -After changing status from new to open that issue need to assign to appropriate/responsible developer, so after that developer start fixing this issue with changing code & all.

Fixed- Developer fixed the bug mentioning various resolation like- fixed in complete cannot to reproduce differed future future fix and all.

Re-test- So once dev fixed issue that issue again assign back to testing team or say that tester who reported this issue, so tester need to verify whether that issue is fixed in latest build.

Closed- After re-testing if issue is fixed and working fine as according to requirement then you can close the issue. otherwise re-open tha issue.So again it will follow status of bug life cycle.                                      


Selenium interview notes

Selenium

*Points To Remember

Developed by Selenium :- Jason Huggins in 2004 as an internal tool at ThoughtWorks.

Flavour of selenium
*SeleniumIDE
*SeleniumRC (Remote Control)
*Selenium webdriver Or Selenium2   
*SeleniumGrid
                                                          Stable release : 2.52.
                                                          Written in : Java
                                                          Operating system :Cross-platform
                                                          Type:  framework for web applications
                                                          Introduced By : Apache License 2.0
                                                          Website www.seleniumhq.org (Official site)


1.What is automation testing?
*It is systemic way to convert manual test case to automation test.
Automation testing involves use to a separate testing tool and doesn’t require any manual intervention.

2.What is selenium webdriver?
*Selenium webdriver is a collections of jar file.

3.What is jar file?
*Jar file is a collections of .class file.

4.What is webdriver?
*Webdriver is an interface.

5.Why we go for automation?

*For long term project having more regression cycle and application is stable, that's the reason behind we go for automation.

6.In interview, interviewer will ask to all of you, Draw selenium webdriver architecture?

*Architecture of selenium webdriver
Supported all programming language
                                                             
                                                             Supported all browsers

                                     
Supported almost all OS
 Show this types of eg, its more impressive

7.What are the different types of locators in Selenium?

*Xpath
*CSS Selector
*DOM
*TagName
*LinkText
*PartialLinkText
*ID
*ClassName

*Name

8.What is an Xpath?

XML stands for Extensible Markup Language and is used to store & organize  arbitrary data.Xpath is used to locate a web element based on its XML path.There are two types of xpath
*Absolute-path
*Relative-path

9.Which is the latest selenium tool?
*Webdriver 

10. why selenium?

*Selenium is free and open source
*Supported all browsers like, Firefox, chrome, Internet Explorer, Safari etc.
*Supports multiple programming languages like, Java, C#, Ruby, Python, Pearl etc.
*has fresh and regular repository developments & powerfull Xpath
*It have a great platform compatibility, Windows, Mac OS, Linux etc. 

11.Diffrence btw /- & //- ??
/- it is used to find immediate child with absolute path.

//- it is used to find the entire structure with relative path
 

#Common_Bugs_Of_WebApplication

 #Common_Bugs_Of_WebApplication
 *********************************************************
1.When screen is opened focus should be set on required field.

2.After displaying error message or information message, focus should be set on specific field.

3.Focus should be set on controls like Date control and Dropdown

4.Shortcut keys should be verified it should be working.

5.Field length should be fixed according to DB columns.

6.Validation should be applied on fields like Date, Password, Email etc.

7.Mandatory fields should be validated and make sure that mandatory fields are according to DB columns.

8.Error summary should be displayed properly; sometimes error summary triggers more than once in page life cycle.

9.Execute all page links; make sure that each link works fine, sometime we found that page path is not valid behind link so displays “alarming Crashing messages”.

10.Make sure that there should be no dead links on the pages.

11.If the screen is resizable, the page design (CSS+html) should be there to handle this feature. Sometimes if we resize the window, all page contents overlap each other and showing quite nasty look

12.If the window is resizable, horizontal and vertical scroll bar should be properly used.

By adding these points in your unit test check list, Development lead can reduce the bug count effectively.


No comments:

Post a Comment