Showing posts with label Testing. Show all posts
Showing posts with label Testing. Show all posts

Thursday, January 5, 2012

.NET interview questions: -Explain V-model and its working in testing?

If you are senior software professional this .NET interview questions may come across to check your skills on testing. If you new to this question then just go through it before the interview and if you are aware of it just revise it.

This type of model was developed by testers to emphasis the importance of early testing. In this model testers are involved from requirement stage itself. So below is the diagram which shows how for every stage some testing activity is done to ensure that the project is moving as planned.

For instance,

  • In requirement stage we have acceptance test documents created by the testers. Acceptance test document outlines that if these test pass then customer will accept the software.
  • In specification stage testers create the system test document. In the coming section system testing is explained in more elaborate fashion.
  • In design stage we have integration documents created by the testers. Integration test documents define testing steps of how the components should work when integrated. For instance you develop a customer class and product class. You have tested the customer class and the product class individually. But in practical scenario the customer class will interact with the product class. So you also need to test is the customer class interacting with product class properly.
  • In implement stage we have unit documents created by the programmers or testers.
Lets try to understand every of this testing phase in more detail.

Unit Testing
Starting from the bottom the first test level is "Unit Testing". It involves checking that each feature specified in the "Component Design" has been implemented in the component. In theory an independent tester should do this, but in practice the developer usually does it, as they are the only people who understand how a component works. The problem with a component is that it performs only a small part of the functionality of a system, and it relies on co-operating with other parts of the system, which may not have been built yet. To overcome this, the developer either builds, or uses special software to trick the component into believe it is working in a fully functional system.

Integration Testing
As the components are constructed and tested they are then linked together to check if they work with each other. It is a fact that two components that have passed all their tests, when connected to each other produce one new component full of faults. These tests can be done by specialists, or by the developers.

Integration Testing is not focused on what the components are doing but on how they communicate with each other, as specified in the "System Design". The "System Design" defines relationships between components.

The tests are organized to check all the interfaces, until all the components have been built and interfaced to each other producing the whole system.

System Testing
Once the entire system has been built then it has to be tested against the "System Specification" to check if it delivers the features required. It is still developer focused, although specialist developers known as systems testers are normally employed to do it.
In essence System Testing is not about checking the individual parts of the design, but about checking the system as a whole. In fact it is one giant component.
System testing can involve a number of specialist types of test to see if all the functional and non-functional requirements have been met. In addition to functional requirements these may include the following types of testing for the non-functional requirements:
  • Performance - Are the performance criteria met?
  • Volume - Can large volumes of information be handled?
  • Stress - Can peak volumes of information be handled?
  • Documentation - Is the documentation usable for the system?
  • Robustness - Does the system remain stable under adverse circumstances?
There are many others, the need for which is dictated by how the system is supposed to perform.

Acceptance Testing
Acceptance Testing checks the system against the "Requirements". It is similar to systems testing in that the whole system is checked but the important difference is the change in focus:
Systems testing checks that the system that was specified has been delivered. Acceptance Testing checks that the system will deliver what was requested.
The customer should always do acceptance testing and not the developer. The customer knows what is required from the system to achieve value in the business and is the only person qualified to make that judgment. This testing is more of getting the answer for whether is the software delivered as defined by the customer. It’s like getting a green flag from the customer that the software is up to the expectation and ready to be used.


Figure: - V model cycle flow

Also get a glance on the following video on Unit testing: -



Click for more learning stuffs on important Dotnet interview questions

Regards,

Click it for author’s more training stuffs on Most asked Dotnet interview question

Wednesday, October 19, 2011

Test yourself for Sharepoint 2010 interviews

This test will help you to check if u will ready for Sharepoint 2010 interviews,try to get 100% marks to ensure you are completely ready.

Best of luck


for more .net and c# interview questions videos click on .NET and c# interview questions

Monday, November 23, 2009

5 simple steps to execute unit testing using

5 simple steps to execute unit testing using NUNIT


Introduction and Goal

Unit testing is validation and verification
methodology where the developers test the individual units of source code. In
this tutorial we will try to understand how we can do unit testing using NUNIT
framework. This tutorial we will try to understand the 5 important steps to do
unit testing using NUNIT.
Please feel free to download by 400 .NET interview question free EBook from
http://www.questpond.com which
covers sections like basic .NET, Design patterns,3.5,SQL Server,UML and lot of
other sections.
The example which we will test Below is a simple class ‘clsInvoiceCalculation’
which calculates total cost by taking per product cost and number of products as
input.
public class clsInvoiceCalculation

{

public int CalculateCost(int intPerProductCost, int intNumberOfProducts)

{

return intPerProductCost * intNumberOfProducts;

}

}

Let’s say we want to execute the below test
case on the above class using NUNIT.














Per product cost

Number of products
Expected
output
10 20 200 ( test case passed)


The 5 basic steps to execute the unit test using NUNIT

Step 1:- The first step is to download
to the NUNIT software from
http://nunit.org/index.php?p=download

Step 2:- Create a new C# class project and add reference to “C:\Program
Files\NUnit 2.5.2\bin\net-2.0\framework\nunit.framework.dll”. We also need to
add reference to the class project which we are testing i.e. the invoice
project.



Step 3:- Add reference to the NUNIT and
your invoice project in your code.


using NUnit.Framework;
using Invoice;

Step 4 :- We need to create a simple
class with ‘TestFixture’ as attribute. We then to create a method attributed
with ‘Test’ which will have our test.


You can see in the above figure how the
‘TestInvoiceCalculation’ method creates an object of ‘clsInvoiceCalculation’ ,
passes the values and checks if the returned values have the expected results.
‘Assert’ command is used to check if the expected output and the results return
match.



Step 5:- Once we are finished with our
test case we need to compile the same to create a DLL. Once the DLL compilation
is done go to program files – nunit and click on nunit. Now the nunit user
interface will open. Click on file – open project and select your test DLL.
Once you select your DLL you will get a screen as shown below. On the right hand
side you can see your test class with test function which has the test case.
Check the test function and hit run. Now if the test case passes you will see a
full green color or else you will see a red color with details of why the test
case fails.



Screenshot when the test case fails.

Thursday, July 26, 2007

One more book to list Software testing interview questions

Software testing interview questions

Software Testing Basics

In which Software Life cycle phase does testing occur?
Can you explain PDCA cycle and where does testing fit?
What is the difference between white box, black box and gray box testing?
Define Defect?
What is the difference between Defect and Failure?
What are the broader categories of defects?
What is the difference between Verification and Validation?
How does testing affect risk?
Does Increase in testing always mean good to the project?
As a manager what process did you adopt to define testing policy?
Should testing be only after build and execution?
Are number of defects more in design phase or coding phase?
What kind of inputs do we need from the end user to start proper testing?
What is the difference between Latent and Masked Defect?
A defect which could have been removed during initial stage is removed in later stage how does it affect cost?
In testing can you explain the concept of work bench?
What’s the difference between Alpha and Beta testing?
Can you explain the concept of defect cascading?
Can you explain how one defect leads to other defects?
Can you explain what is Usability testing?
What are the different strategies of rollout to the end users?
Can you explain requirement traceability and its importance?
What is the difference between Pilot and Beta testing?
How will you do a risk analysis during software testing?
How do you conclude which section is most risky in your application?
What does entry and exit criteria mean in a project?
On what basis is the Acceptance plan prepared?
What’s the relation between environment reality and test phases?
What are different types of verifications?
What’s the difference between Inspections and Walkthroughs?
Can you explain regression testing and confirmation testing?
what do you mean by coverage and what are the different types of coverage techniques?
How does fundamentally a coverage tool work?
What is configuration management?
Can you explain the concept of baseline in software development?
What are the different test plan documents in project?
How do test documents in a project span across software development life cycle?
Can you explain inventories?
How do you do Analysis and design for testing projects?
Can you explain calibration?
Which test cases are first written white boxes or black box?
Can you explain Co-habiting software?
What different impact rating’s you have used in your project?
Can you explain what a test log is?
Explain SDLC (Software development Life Cycle) in detail?
Can you explain waterfall model?
Can you explain big-bang waterfall model?
Can you explain phased waterfall model?
Explain Iterative model, Incremental model, Spiral model, Evolutionary model and V-Model?
Explain Unit testing, Integration tests, System testing and Acceptance testing?
what’s the difference between system and acceptance testing?
Which is the best model?
What group of teams can do software testing?

Testing Techniques
Can you explain boundary value analysis?
What is BV in software testing?
Can you explain Equivalence partitioning?
Can you explain how state transition diagram can be helpful during testing?
Can you explain random testing?
Can you explain monkey testing?
What is negative and positive testing?
Can you explain exploratory testing?
What exactly are semi-random test cases?
Can you explain the concept of orthogonal array?
Can you explain pair-wise defect fundamental?
Can you explain the concept of decision tables?
How did you define severity ratings in your project?

CMMI
What is a Software process?
what are the different cost element involved in implementing process in an organization?
What is a model?
What is maturity level?
Can you explain the concept of process area in CMMI?
Can you explain the concept of tailoring?
What is CMMI and what's the advantage of implementing CMMI in an organization?
what’s the difference between implementation and Institutionalization?
what are different models in CMMI?
Can you explain staged and continuous models in CMMI?
Can you explain the different maturity levels in staged representation?
Can you explain capability levels in continuous representation?
which model should we use and under what scenarios?
How many process areas are present in CMMI and in what classification do they fall in?
What the difference between every level in CMMI?
what different sources are needed to verify authenticity for CMMI implementation?
Can you explain SCAMPI process?
How is appraisal done in CMMI?
which appraisal method class is the best?
Can you explain the importance of PII in SCAMPI?
Can you explain implementation of CMMI in one of the Key process areas?
Explanation of all process areas with goals and practices?
Can you explain the process areas?

Six Sigma
What is six sigma?
Can you explain the different methodology for execution and design process in SIX sigma?
What does executive leaders, champions, Master Black belt, green belts and black belts mean?
what are the different kinds of variations used in six sigma?
Can you explain the concept of standard deviation?
Can you explain QFD?
Can you explain FMEA?
Can you explain X bar charts?
Can you explain Flow charting and brain storming?
Can you explain the concept of fish bone/ Ishikawa diagram?

Metrics
What is meant by measure and metrics?
Can you explain Number of defects measure?
Can you explain number of production defects measure?
Can you explain defect seeding?
Can you explain DRE?
How do you measure test effectiveness?
Can you explain Defect age and Defect spoilage?

Automated Testing
What are good candidate for automation in testing?
which automation tool have you worked and can you explain them in brief?
Can you explain how does load testing conceptually work for websites?
Can you explain how did you perform load testing using tool?
Can you explain the concept of data-driven testing?
Can you explain table-driven testing?
How can you perform data-driven testing using Automated QA?

Testing Estimation
What are the different ways of doing black box testing?
Can you explain TPA analysis?
Can you explain in brief Function points?
Can you explain the concept Application boundary?
Can you explain the concept of elementary process?
Can you explain the concept of static and dynamic elementary process?
Can you explain concept of FTR, ILF, EIF, EI, EO , EQ and GSC ?
Can you explain on what basis does TPA actually work?
Can you explain step by step how did you do estimation for black box testing?
How did you estimate white box testing?
Is there a way to estimate acceptance test cases in a system?

Friday, June 22, 2007

I will not drink wine until......

On my new book Software Testing Interview questions. Complete around 150 pages.....For whatever reason feeling a bit tired. For past 3 days not penned down a single word.......
.
.
.
Shiv's Inner heart :- You need punishment shiv......You can not drink Wine until you do not finish this book.....

Shiv's Outer heart :- But i am tired...Shifting my house , now a days evening cooking is also on my list

Shiv's Inner heart :- Hmmmm Whats your Goal ?

Shiv's Outer Heart :- To become one of the biggest publications software company of the world....

Shiv's Inner heart :- Ok you can relax forget everything....and yes also forget your dreams.

Shiv's outer heart :- No No thats just not possible

Shiv's Inner heart:- Then take the punishment.

Shiv's outer heart :- Ok done.....But will this dream come true.

Shiv's Inner heart :- You can only do hard work....rest will follow....

Shiv's Outer Heart :- Done.....I will complete this book till this month end.

;-) Footprints on the sand are not done by sitting at the beach.

Booooooom....Following my dreams.....