Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Testing concepts ppt


Published on

Published in: Technology
  • D0WNL0AD FULL ▶ ▶ ▶ ▶ ◀ ◀ ◀ ◀
    Are you sure you want to  Yes  No
    Your message goes here
  • damn decent presentation
    Are you sure you want to  Yes  No
    Your message goes here

Testing concepts ppt

  1. 1. Testing
  2. 2. <ul><li>At 1 st Stage --- Testing is the process of executing a program with the intent of finding errors </li></ul><ul><li>At last Stage ---Testing is the process of demonstrating that errors are not present (after the completion of all bugs) </li></ul><ul><li>When you test a program, you want to add some value to it. Adding value through testing means raising the quality or reliability of the program. Raising the reliability of the program means finding and removing errors. </li></ul><ul><li>Therefore, don’t test a program to show that it works; rather, you should start with the assumption that the program contains errors (a valid assumption for almost any program) and then test the program to find as many of the errors as possible </li></ul>Introduction
  3. 3. Why Testing? <ul><li>To find and correct defects. </li></ul><ul><li>To check whether the Client/User needs are satisfied </li></ul><ul><li>To avoid user detecting problems </li></ul><ul><li>Also to provide Quality Product </li></ul>
  4. 4. Why does S/W have bugs? <ul><li>Miscommunication or No Communication (That we are not clear about what an application should do or shouldn’t do) </li></ul><ul><li>Time Pressure (Time scheduling) </li></ul><ul><li>Changing Requirements </li></ul><ul><li>Software Complexity (Without experience its bit tough to do the tough application) </li></ul><ul><li>Programming Mistakes </li></ul>
  5. 5. Testing Technique <ul><li>White Box Testing (Which was done by Developers) </li></ul><ul><li>Black Box Testing (Which was done by Testers) </li></ul>
  6. 6. Levels of Testing: <ul><li>Unit Testing(Done by Developers) </li></ul><ul><li>Integration Testing(Combining two or more modules ) </li></ul><ul><li>System Testing (Testing full application based on the requirements) </li></ul><ul><li>User Acceptance Testing (Based on the user needs and testing will be done in client place) </li></ul>
  7. 7. Points for Unit Testing: <ul><li>Functional </li></ul><ul><li>Does the piece of code functionally perform the task it is designed to do? </li></ul><ul><li>Boundaries </li></ul><ul><li>What are the minimum, maximum values for the function, will the function accept strange characters? What happens if they are not within these boundaries? </li></ul><ul><li>Termination </li></ul><ul><li>What happens in the normal termination of the function? What about an abnormal termination of the function? Will the application continue or will an error occur. Is the error trapped? </li></ul>
  8. 8. Points for Unit Testing: <ul><li>Outputs </li></ul><ul><li>What are the expected outputs of the function? Where do they go, what happens if the output is nothing? What happens if the output cannot be passed to the next function? i.e. The database was unavailable when attempting to write to it. </li></ul><ul><li>Inputs </li></ul><ul><li>What are the expected inputs to the function? What happens if they do not get passed in? What happens if they are the wrong type? i.e. an alpha instead of a numeric </li></ul><ul><li>Interaction </li></ul><ul><li>What other modules/functions does this interact with? Will those be effected by the change? </li></ul>
  9. 9. Tester vs Developers <ul><li>Developer always wants to see his code working properly. So he will test it to check if it’s working correctly. But you know how tester will test the application? To make it fail in any way, and tester surely will test how application is not working correctly. This is the main difference in developer testing and tester testing. </li></ul><ul><li>For success of any project there should be independent testing team validating your applications. After all it’s our (testers) responsibility to make the ’application’ smarter!! </li></ul>
  10. 10. Ways To Be Good Developer From Tester Point of View <ul><li>Do Your own acceptance tests In unit testing, developer have to do their own acceptance testing for all the part </li></ul><ul><li>Do not repeat bugs One bad thing that you may experience being a tester, is developer which  repeats the same errors. Comes up to the fact that the tester is able to predict how the error occurs in a functional change. This illustrates the carelessness of the programmer and a his lack of progress in learning this difficult skill. </li></ul>
  11. 11. Ways To Be Good Developer From Tester Point of View <ul><li>They do not want to hurt you Developers usually think that the main tester task is to demonstrate that the code writer is feeble by detecting as many bugs as it is possible. Developers often are afraid to give the code for testing but should rather seek the assistance in order to ensure doing good job. If the tester comes and says “You are poor because I detected 29 errors in Your code” – ask “And how many left?” :) Someone said, “The more errors we find the more is still there” – do not forget about it. </li></ul><ul><li>  Write comments and human readable code In times of auto comments available in Visual Studio but also in other development tools, developers forget to include something from inside. Something which usually proves to be very helpful in a crisis, and necessary for code review. In parallel, write code that explains a lot without reading the comments, function and variable names are no longer restrictions on the number of characters ! </li></ul>
  12. 12. Ways To Be Good Developer From Tester Point of View <ul><li>Provide descriptive error alerts. I think that one of the most arduous and time-consuming activities performed by the tester is looking for a path access to the bug. Submit error to bug tracker and get the response “Can not reproduce”, it usually ends with a call to developer for demo or send him screen cast. Through the provision of good error messages tester can provides ready information with a bug. </li></ul><ul><li>  Do not Test the Tester ! Even if you have very bad relations with the tester or the entire quality department, never code artificial bugs to demonstrate the poor quality of the tester! Fraud sooner or later comes to light. Testers also have a great ways to show your low skills, a fight between the persons/departments always ends with the customer’s critical exceptions. </li></ul>
  13. 13. <ul><li>Relation Ship Between PM/D/T </li></ul><ul><li>. </li></ul><ul><li>Project Manager (PM) </li></ul><ul><ul><ul><li>Helps you understand the target of the project </li></ul></ul></ul><ul><ul><ul><li>Give you schedules </li></ul></ul></ul><ul><ul><ul><li>Needs you to update him/her on the quality status of the project </li></ul></ul></ul>
  14. 14. <ul><li>Developers </li></ul><ul><li>Help you understand how the components work on the inside </li></ul><ul><li>Help you know about “joint” points of the product </li></ul><ul><li>Help you know about changes in the code </li></ul><ul><li>Let you know the schedule of coding </li></ul><ul><li>Let you know the status of bugs </li></ul><ul><li>Need from you information about problems </li></ul><ul><li>Need you to inform them on what will be tested and when </li></ul><ul><li>Testers </li></ul><ul><li>Help you understand product functionality </li></ul><ul><li>Tell you about known bugs </li></ul><ul><li>Tell you about tools that can help you </li></ul>
  15. 15. FINALLY <ul><ul><ul><li>Have a good interaction, </li></ul></ul></ul><ul><ul><ul><li>understand the tasks, </li></ul></ul></ul><ul><ul><ul><li>close the bugs, </li></ul></ul></ul><ul><ul><ul><li>and at last give the quality product, </li></ul></ul></ul><ul><ul><ul><li>it makes us to reach what we have aimed and also it will reach our company to the top level </li></ul></ul></ul>