Presentation is loading. Please wait.

Presentation is loading. Please wait.

.Net Application Testing By Sam Nasr August 24, 2004.

Similar presentations


Presentation on theme: ".Net Application Testing By Sam Nasr August 24, 2004."— Presentation transcript:

1 .Net Application Testing By Sam Nasr August 24, 2004

2 Types Of Testing Functionality Testing Functionality Testing 1. Unit 2. System Integration 3. Regression 4. Performance 5. Customer Acceptance Security Testing Security Testing

3 Why Test? credibility, credibility, credibility credibility, credibility, credibility For every 1,000 lines of code, 8 bugs go undetected. For every 1,000 lines of code, 8 bugs go undetected. Improve customer relations. Improve customer relations.

4 Why Test? Phase Cost of Error Removal Definition$1 High Level Design $2 Low Level Design $5 Code$10 Unit Test $15 Integration Test $22 System Test $50 Post-Delivery$100+

5 Black Box Testing The concept of testing where the tester knows nothing about the process being tested. The concept of testing where the tester knows nothing about the process being tested.

6 Unit Testing Performed by the developer, prior to delivering code to testers. Performed by the developer, prior to delivering code to testers. Using unit test cases targeting the new code. Using unit test cases targeting the new code.

7 System Integration Testing Used to determine how well code interfaces with other code in a given system. Used to determine how well code interfaces with other code in a given system. Performed by testers, after unit testing. Performed by testers, after unit testing.

8 Regression Testing Ensuring new code didnt break existing functionality. Ensuring new code didnt break existing functionality. Performed by testers, after unit testing. Performed by testers, after unit testing.

9 Performance Testing Testing for adequate reponse time under heavy traffic. Testing for adequate reponse time under heavy traffic. All system limitations must be defined. All system limitations must be defined. Performed by testers, after unit testing. Performed by testers, after unit testing.

10 Customer Acceptance Testing Performed as a formal turnover to a customer. Performed as a formal turnover to a customer. Can also be considered as post- implementation testing. Can also be considered as post- implementation testing.

11 Security Testing Ensuring data cannot be maliciously manipulated. Ensuring data cannot be maliciously manipulated. Ensuring user cannot bypass critical sections of the application. Ensuring user cannot bypass critical sections of the application. Test for parameter checking with browser JAVA Script enabled AND disabled. Test for parameter checking with browser JAVA Script enabled AND disabled. Test for safeguards against hacker attacks (i.e. SQL Injection, XSS, One-Click, etc.) Test for safeguards against hacker attacks (i.e. SQL Injection, XSS, One-Click, etc.) Utilize services such as HackerSafe.com Utilize services such as HackerSafe.comHackerSafe.com

12 Creating Test Plans Use Functional Requirements as a guide. Use Functional Requirements as a guide. Test for all types of data: numeric, alpha, and alpha-numeric Test for all types of data: numeric, alpha, and alpha-numeric Test for all ranges: 0-9, negative, decimals, etc. Test for all ranges: 0-9, negative, decimals, etc. If using date/time stamp, test for mid- night/time-zone cross over. If using date/time stamp, test for mid- night/time-zone cross over. Take nothing for granted! Take nothing for granted!

13 Testing Environment Testing Environment should be identical to the production environment in every way. –Hardware (memory, CPU(s), etc.); CPUs are especially important when testing a threaded process. – Software (OS, SPs, drivers, IE/IIS versions). –Application (copy of production DB, data files, etc.)

14 Testing Tips Define Testing turnover procedures (turnover schedule, file structure, registry layout, etc.) Define Testing turnover procedures (turnover schedule, file structure, registry layout, etc.) Define parties responsibe for approving different types of testing. Define parties responsibe for approving different types of testing. Test for memory cleanup when process is completed or aborted. Test for memory cleanup when process is completed or aborted.

15 Testing Tips Always test processes after implemented in production to ensure all files and settings are implemented correctly. Always test processes after implemented in production to ensure all files and settings are implemented correctly. Create dummy data that will test the process end- end, but not interfere with production data. Create dummy data that will test the process end- end, but not interfere with production data. Identify invalid part numbers, invoice numbers, etc and use them for testing. Identify invalid part numbers, invoice numbers, etc and use them for testing.

16 Testing Tips Are error messages meaningful to a developer and non-developer? Are error messages meaningful to a developer and non-developer? Are log files meaningful to a developer and non-developer? Are log files meaningful to a developer and non-developer? Test for broken network connections, DB disconnects, and File Not Found conditions Test for broken network connections, DB disconnects, and File Not Found conditions

17 Automated Test Tools Mercury (http://www.mercury.com) Mercury (http://www.mercury.com)http://www.mercury.com Empirix (http://www.empirix.com) Empirix (http://www.empirix.com)http://www.empirix.com Segue Software (http://www.segue.com) Segue Software (http://www.segue.com)http://www.segue.com

18 Automated Test Tools N-Unit N-Unit Microsoft Application Center Test (ACT) Microsoft Application Center Test (ACT) Custom Made Testing Tools Custom Made Testing Tools

19 More Info… Effective Software Testing Effective Software Testing by Elfriede Dustin How to Break Software How to Break Software by James Whittaker Northern Ohio Software Quality Assusrance Association (www.nosqaa.org) Northern Ohio Software Quality Assusrance Association (www.nosqaa.org)


Download ppt ".Net Application Testing By Sam Nasr August 24, 2004."

Similar presentations


Ads by Google