SOA-Test Accelerator) Instituto Superior T´Ecnico– Universidade De Lisboa

Total Page:16

File Type:pdf, Size:1020Kb

SOA-Test Accelerator) Instituto Superior T´Ecnico– Universidade De Lisboa Test Accelerator for Service Oriented Architectures (SOA-Test Accelerator) Instituto Superior T´ecnico{ Universidade de Lisboa Jo~aoFilipe Garrett Paix~aoFlor^encio [email protected] October 2015 Abstract This document describes the design and development of a tool, \SOA { Test Accelerator", created to automate intelligent test creation in service oriented architectures. The need for such a tool comes from the increasing difference between testing some independent services and testing their overall interaction. As the system architecture grows in number of services, manually creating test case scenarios becomes an heavy burden. SOA-TA's ultimate goal is to reduce the time spent on combining and orchestrating service calls to simulate a business process. The work presented here is based on five stages and their outcome depends on the exhaustiveness level chosen by the user. First, the automatic generation of test cases through process descriptions analysis, having business requirements in consideration. Second, the generation of the input set required to execute these test cases. Third, the production of specific service calls, by means of test scripts to be run on Apache JMeter. Fourth, the execution of these scripts and fifth, showing the results. SOA-TA will be useful for operations that rely on consecutive service calls, and need to ensure the overall system compliance with previously set requirements. Keywords:SOA testing,test case generation,test case execution,web services,service test- ing,coverage. 1 Introduction tegration of several individual software modules, in our case web services to be combined and tested as a We cannot solve our problems with the same thinking we used when we created them. group. In order for we to group all the components -Albert Einstein of a service based system we need to create test Nobody is perfect. Humans make mistakes all cases while focusing on the tasks those services will the time. While some of them are negligible, some preform. If the process of deriving test cases could are expensive or dangerous. We are used to as- be automated and provide requirements-based and sume that our work may have mistakes, even minor coverage-based test suites that satisfy the most ones, and it needs testing. Software testing in par- stringent standard dramatic time and cost savings ticular is now recognized as a key activity of large would be realized [12]. This is what we are aiming systems development. Companies have come to un- to do. derstand that, in order to achieve an higher qual- ity product, efforts on verification and validation, 1.1 Goals Motivation commonly known as V&V [1], save time and money. Service{Oriented Architectures (SOA) [2], as imple- In order to fill the gap between regular testing and mented by web services, present features that add modern service oriented architecture testing, arises much complexity to the testing burden. SOA, by the SOA-Test Accelerator. The main objective of its dynamic and always-on nature makes most test- our work was to create something that takes the re- ing techniques not directly applicable to it [8]. As sponsibility off the testers of coming up with intelli- Bartolini [10] states, \even if best practices are fol- gent and smart test paths or scenarios. Commercial lowed by the developer to test a service to ensure tools are mainly software applications where tests its quality, nothing guarantees that it will operate can be executed, and results can be seen and ex- smoothly as part of a dynamic distributed system tracted. In all of them, the tester has to specifically made of multiple orchestrated but autonomous ser- create the test cases, give the inputs, and come up vices." with a testing strategy suitable for the process. Our As service oriented systems are the pinnacle of goal was to create an on-line platform where the this loosely coupled kind of systems, we need to en- user could enter the BPMN [13] description of the sure more than just the functional integrity of its tasks to test and then our Test-Accelerator would units, we need to be sure all the components are do the rest. Which means creating the test cases well integrated. We are going to focus on the in- based on coverage standards, discover intelligently 1 the proper input data, run the tests, and ultimately testing. In unit testing the authors propose the re- provide the user an overview of the results. utilization of work already done in components test- The main improvement or innovation on SOA- ing and generate black box tests from the WSDL TA is the adaptation of concepts and ideas already document, and take advantage of commercial tools studied on graph analysis and satisfiability modulo potentials (like the ones mentioned on section 2.2) theories, and bringing them to improve automatic to generate test-cases. testing. Therefore the main goal was to create a Integration testing is also challenging mainly due system that would serve testers and their work, cre- to third party services dependencies and the pos- ating value for the company using it. sibility of services being missing in the moment of testing. The authors state that it has to be accepted that 2 Related Work for all but the simplest of services, it is very difficult to test exhaustively every input or output. Accord- Tying the work we have done with previous research ing to them, \Up to date there is no end-to-end is not an easy job due to the fact that we are join- automated system testing solution for SOA on the ing two different study areas, automatic test case market." [8] In Bartolini [10] is presented a solu- generation and service architectures testing plat- tion to go around a common trait existing test ap- forms. Hence, the following sections will be divided proaches share, which is they treat the web services in this two major categories, the academic (mostly as black boxes and focus on the external behaviour research work) and the commercial testing frame- ignoring internal structure, as our SOA-TA does. works. Their approach called Service Oriented Cover- age Testing (SOCT) relies on creating a governance framework testing at the orchestration level during 2.1 Academic validation. Using this method, it can monitor what Rayadurgam [12] worked on a method of automati- parts of actual source code are executed but it re- cally generate test-cases with model checkers, which quires services developers to instrument the code is a technique to exhaustively and automatically so as to enable target program entities execution check if a certain model meets a given specifica- monitoring. tion [14]. The authors suggest a formal framework This method of addressing SOA testing shows to describe both the system's model and its speci- good results, nevertheless the need to modify ser- fications, which is then used alongside the test cri- vices code to allow its instrumentation, cannot be teria to produce test-cases. The main algorithm disregarded. relies on generating a set of properties and then ask the model checker to verify them one by one. This method does not address the obstacle of state 2.2 Commercial Testing Frameworks space explosion. Also, creating a formal descrip- tion of simpler systems and models is a task that In this section we are going review some tools com- not everyone person could do, besides its neces- mercially available today claiming to address the sity might be obliterated when using a different ap- service based architectures testing. We are not aim- proach like ours, in which a simple process descrip- ing to provide an exhaustive list of every single soft- tion in BPMN is used. ware platform that has some testing capabilities, we have just selected a few of the biggest, most widely The approach chosen by Bai [15] relies on a used and most representative of the state-of-the-art. WSDL document analysis to figure out dependen- cies between operations. The service contract is parsed and test data is generated by examining 2.2.1 HP Unified Functional Testing (UFT) the message data types according to standard XML schema syntax. Input and output dependencies re- Hewlett-Packard has launched in 2012 a frame- veal which operations can be grouped in the same work which provides functional and regression test test case. Although they are indeed automatically automation for software applications and environ- generated and cover all the operations, this method ments [22] It has incorporated a previous web ser- tests each service independently and not all the ser- vices specific tool, HP Service test. It enables devel- vices use in a given process. Unless the whole sys- opers to test, from a single console, all three layers: tem at hand is a unique service, analysing its oper- the interface, the service and the database layer. ation set does not suit integration testing. As the other testing frameworks/tools presented in this section, it claims to automate testing. This 2.1.1 Testing SOA is, at some extent true since it uses a scripting lan- guage to make repetitive tasks automatic. However Ribarov et al [8] address testing in three major it only automates independent testing of services, functions, unit, integration and functional system not the whole architecture testing process. 2 2.3 Related Work Critical Analysis 2.3 Related Work Critical Analysis 2.2.2 Oracle Testing Accelerators for Web number of test scenarios and automatic providing Services with proper input. As stated in the beginning, the SOA-TA final stage is the script generation. This Oracle has launched in 2011 the 12c version of script would have to be executed in one of the test- its framework, Enterprise Manager, which includes ing tools mentioned in this section.
Recommended publications
  • Core Elements of Continuous Testing
    WHITE PAPER CORE ELEMENTS OF CONTINUOUS TESTING Today’s modern development disciplines -- whether Agile, Continuous Integration (CI) or Continuous Delivery (CD) -- have completely transformed how teams develop and deliver applications. Companies that need to compete in today’s fast-paced digital economy must also transform how they test. Successful teams know the secret sauce to delivering high quality digital experiences fast is continuous testing. This paper will define continuous testing, explain what it is, why it’s important, and the core elements and tactical changes development and QA teams need to make in order to succeed at this emerging practice. TABLE OF CONTENTS 3 What is Continuous Testing? 6 Tactical Engineering Considerations 3 Why Continuous Testing? 7 Benefits of Continuous Testing 4 Core Elements of Continuous Testing WHAT IS CONTINUOUS TESTING? Continuous testing is the practice of executing automated tests throughout the software development cycle. It’s more than just automated testing; it’s applying the right level of automation at each stage in the development process. Unlike legacy testing methods that occur at the end of the development cycle, continuous testing occurs at multiple stages, including development, integration, pre-release, and in production. Continuous testing ensures that bugs are caught and fixed far earlier in the development process, improving overall quality while saving significant time and money. WHY CONTINUOUS TESTING? Continuous testing is a critical requirement for organizations that are shifting left towards CI or CD, both modern development practices that ensure faster time to market. When automated testing is coupled with a CI server, tests can instantly be kicked off with every build, and alerts with passing or failing test results can be delivered directly to the development team in real time.
    [Show full text]
  • Types of Software Testing
    Types of Software Testing We would be glad to have feedback from you. Drop us a line, whether it is a comment, a question, a work proposition or just a hello. You can use either the form below or the contact details on the rightt. Contact details [email protected] +91 811 386 5000 1 Software testing is the way of assessing a software product to distinguish contrasts between given information and expected result. Additionally, to evaluate the characteristic of a product. The testing process evaluates the quality of the software. You know what testing does. No need to explain further. But, are you aware of types of testing. It’s indeed a sea. But before we get to the types, let’s have a look at the standards that needs to be maintained. Standards of Testing The entire test should meet the user prerequisites. Exhaustive testing isn’t conceivable. As we require the ideal quantity of testing in view of the risk evaluation of the application. The entire test to be directed ought to be arranged before executing it. It follows 80/20 rule which expresses that 80% of defects originates from 20% of program parts. Start testing with little parts and extend it to broad components. Software testers know about the different sorts of Software Testing. In this article, we have incorporated majorly all types of software testing which testers, developers, and QA reams more often use in their everyday testing life. Let’s understand them!!! Black box Testing The black box testing is a category of strategy that disregards the interior component of the framework and spotlights on the output created against any input and performance of the system.
    [Show full text]
  • Smoke Testing What Is Smoke Testing?
    Smoke Testing What is Smoke Testing? Smoke testing is the initial testing process exercised to check whether the software under test is ready/stable for further testing. The term ‘Smoke Testing’ is came from the hardware testing, in the hardware testing initial pass is done to check if it did not catch the fire or smoked in the initial switch on.Prior to start Smoke testing few test cases need to created once to use for smoke testing. These test cases are executed prior to start actual testing to checkcritical functionalities of the program is working fine. This set of test cases written such a way that all functionality is verified but not in deep. The objective is not to perform exhaustive testing, the tester need check the navigation’s & adding simple things, tester needs to ask simple questions “Can tester able to access software application?”, “Does user navigates from one window to other?”, “Check that the GUI is responsive” etc. Here are graphical representation of Smoke testing & Sanity testing in software testing: Smoke Sanity Testing Diagram The test cases can be executed manually or automated; this depends upon the project requirements. In this types of testing mainly focus on the important functionality of application, tester do not care about detailed testing of each software component, this can be cover in the further testing of application. The Smoke testing is typically executed by testers after every build is received for checking the build is in testable condition. This type of testing is applicable in the Integration Testing, System Testing and Acceptance Testing levels.
    [Show full text]
  • Parasoft Static Application Security Testing (SAST) for .Net - C/C++ - Java Platform
    Parasoft Static Application Security Testing (SAST) for .Net - C/C++ - Java Platform Parasoft® dotTEST™ /Jtest (for Java) / C/C++test is an integrated Development Testing solution for automating a broad range of testing best practices proven to improve development team productivity and software quality. dotTEST / Java Test / C/C++ Test also seamlessly integrates with Parasoft SOAtest as an option, which enables end-to-end functional and load testing for complex distributed applications and transactions. Capabilities Overview STATIC ANALYSIS ● Broad support for languages and standards: Security | C/C++ | Java | .NET | FDA | Safety-critical ● Static analysis tool industry leader since 1994 ● Simple out-of-the-box integration into your SDLC ● Prevent and expose defects via multiple analysis techniques ● Find and fix issues rapidly, with minimal disruption ● Integrated with Parasoft's suite of development testing capabilities, including unit testing, code coverage analysis, and code review CODE COVERAGE ANALYSIS ● Track coverage during unit test execution and the data merge with coverage captured during functional and manual testing in Parasoft Development Testing Platform to measure true test coverage. ● Integrate with coverage data with static analysis violations, unit testing results, and other testing practices in Parasoft Development Testing Platform for a complete view of the risk associated with your application ● Achieve test traceability to understand the impact of change, focus testing activities based on risk, and meet compliance
    [Show full text]
  • Leading Practice: Test Strategy and Approach in Agile Projects
    CA SERVICES | LEADING PRACTICE Leading Practice: Test Strategy and Approach in Agile Projects Abstract This document provides best practices on how to strategize testing CA Project and Portfolio Management (CA PPM) in an agile project. The document does not include specific test cases; the list of test cases and steps for each test case are provided in a separate document. This document should be used by the agile project team that is planning the testing activities, and by end users who perform user acceptance testing (UAT). Concepts Concept Description Test Approach Defines testing strategy, roles and responsibilities of various team members, and test types. Testing Environments Outlines which testing is carried out in which environment. Testing Automation and Tools Addresses test management and automation tools required for test execution. Risk Analysis Defines the approach for risk identification and plans to mitigate risks as well as a contingency plan. Test Planning and Execution Defines the approach to plan the test cases, test scripts, and execution. Review and Approval Lists individuals who should review, approve and sign off on test results. Test Approach The test approach defines testing strategy, roles and responsibilities of various team members, and the test types. The first step is to define the testing strategy. It should describe how and when the testing will be conducted, who will do the testing, the type of testing being conducted, features being tested, environment(s) where the testing takes place, what testing tools are used, and how are defects tracked and managed. The testing strategy should be prepared by the agile core team.
    [Show full text]
  • Software Testing: Essential Phase of SDLC and a Comparative Study Of
    International Journal of System and Software Engineering Volume 5 Issue 2, December 2017 ISSN.: 2321-6107 Software Testing: Essential Phase of SDLC and a Comparative Study of Software Testing Techniques Sushma Malik Assistant Professor, Institute of Innovation in Technology and Management, Janak Puri, New Delhi, India. Email: [email protected] Abstract: Software Development Life-Cycle (SDLC) follows In the software development process, the problem (Software) the different activities that are used in the development of a can be dividing in the following activities [3]: software product. SDLC is also called the software process ∑ Understanding the problem and it is the lifeline of any Software Development Model. ∑ Decide a plan for the solution Software Processes decide the survival of a particular software development model in the market as well as in ∑ Coding for the designed solution software organization and Software testing is a process of ∑ Testing the definite program finding software bugs while executing a program so that we get the zero defect software. The main objective of software These activities may be very complex for large systems. So, testing is to evaluating the competence and usability of a each of the activity has to be broken into smaller sub-activities software. Software testing is an important part of the SDLC or steps. These steps are then handled effectively to produce a because through software testing getting the quality of the software project or system. The basic steps involved in software software. Lots of advancements have been done through project development are: various verification techniques, but still we need software to 1) Requirement Analysis and Specification: The goal of be fully tested before handed to the customer.
    [Show full text]
  • Chap 3. Test Models and Strategies 3.5 Test Integration and Automation 1
    Chap 3. Test Models and Strategies 3.5 Test Integration and Automation 1. Introduction 2. Integration Testing 3. System Testing 4. Test Automation Appendix: JUnit Overview 1 1. Introduction -A system is composed of components. System of software components can be defined at any physical scope. Component System Typical intercomponent interfaces (locus of (Focus of Integration) (Scope of integration faults) Integration) Method Class Instance variables Intraclass messages Class Cluster Intraclass messages Cluster Subsystem Interclass messages Interpackage messages Subsystem System Inteprocess communication Remote procedure call ORB services, OS services -Integration test design is concerned with several primary questions: 1. Which components and interfaces should be exercised? 2. In what sequence will component interfaces be exercised? 2 3. Which test design technique should be used to exercise each interface? -Integration testing is a search for component faults that cause intercomponent failures. -System scope testing is a search for faults that lead to a failure to meet a system scope responsibility. ÷System scope testing cannot be done unless components interoperate sufficiently well to exercise system scope responsibilities. -Effective testing at system scope requires a concrete and testable system-level specification. ÷System test cases must be derived from some kind of functional specification. Traditionally, user documentation, product literature, line-item narrative requirements, and system scope models have been used. 3 2. Integration Testing -Unit testing focuses on individual components. Once faults in each component have been removed and the test cases do not reveal any new fault, components are ready to be integrated into larger subsystems. -Integration testing detects faults that have not been detected during unit testing, by focusing on small groups of components.
    [Show full text]
  • Security Testing TDDC90 – Software Security
    Security Testing TDDC90 – Software Security Ulf Kargén Department of Computer and Information Science (IDA) Division for Database and Information Techniques (ADIT) Security testing vs “regular” testing ▪ “Regular” testing aims to ensure that the program meets customer requirements in terms of features and functionality. ▪ Tests “normal” use cases Test with regards to common expected usage patterns. ▪ Security testing aims to ensure that program fulfills security requirements. ▪ Often non-functional. ▪ More interested in misuse cases Attackers taking advantage of “weird” corner cases. 2 Functional vs non-functional security requirements ▪ Functional requirements – What shall the software do? ▪ Non-functional requirements – How should it be done? ▪ Regular functional requirement example (Webmail system): It should be possible to use HTML formatting in e-mails ▪ Functional security requirement example: The system should check upon user registration that passwords are at least 8 characters long ▪ Non-functional security requirement example: All user input must be sanitized before being used in database queries How would you write a unit test for this? 3 Common security testing approaches Often difficult to craft e.g. unit tests from non-functional requirements Two common approaches: ▪ Test for known vulnerability types ▪ Attempt directed or random search of program state space to uncover the “weird corner cases” In today’s lecture: ▪ Penetration testing (briefly) ▪ Fuzz testing or “fuzzing” ▪ Concolic testing 4 Penetration testing ▪ Manually try to “break” software ▪ Relies on human intuition and experience. ▪ Typically involves looking for known common problems. ▪ Can uncover problems that are impossible or difficult to find using automated methods ▪ …but results completely dependent on skill of tester! 5 Fuzz testing Idea: Send semi-valid input to a program and observe its behavior.
    [Show full text]
  • Integration Testing of Object-Oriented Software
    POLITECNICO DI MILANO DOTTORATO DI RICERCA IN INGEGNERIA INFORMATICA E AUTOMATICA Integration Testing of Object-Oriented Software Ph.D. Thesis of: Alessandro Orso Advisor: Prof. Mauro Pezze` Tutor: Prof. Carlo Ghezzi Supervisor of the Ph.D. Program: Prof. Carlo Ghezzi XI ciclo To my family Acknowledgments Finding the right words and the right way for expressing acknowledgments is a diffi- cult task. I hope the following will not sound as a set of ritual formulas, since I mean every single word. First of all I wish to thank professor Mauro Pezze` , for his guidance, his support, and his patience during my work. I know that “taking care” of me has been a hard work, but he only has himself to blame for my starting a Ph.D. program. A very special thank to Professor Carlo Ghezzi for his teachings, for his willingness to help me, and for allowing me to restlessly “steal” books and journals from his office. Now, I can bring them back (at least the one I remember...) Then, I wish to thank my family. I owe them a lot (and even if I don't show this very often; I know this very well). All my love goes to them. Special thanks are due to all my long time and not-so-long time friends. They are (stricty in alphabetical order): Alessandro “Pari” Parimbelli, Ambrogio “Bobo” Usuelli, Andrea “Maken” Machini, Antonio “the Awesome” Carzaniga, Dario “Pitone” Galbiati, Federico “Fede” Clonfero, Flavio “Spadone” Spada, Gianpaolo “the Red One” Cugola, Giovanni “Negroni” Denaro, Giovanni “Muscle Man” Vigna, Lorenzo “the Diver” Riva, Matteo “Prada” Pradella, Mattia “il Monga” Monga, Niels “l’e´ semper chi” Kierkegaard, Pierluigi “San Peter” Sanpietro, Sergio “Que viva Mex- ico” Silva.
    [Show full text]
  • A Confused Tester in Agile World … Qa a Liability Or an Asset
    A CONFUSED TESTER IN AGILE WORLD … QA A LIABILITY OR AN ASSET THIS IS A WORK OF FACTS & FINDINGS BASED ON TRUE STORIES OF ONE & MANY TESTERS !! J Presented By Ashish Kumar, WHAT’S AHEAD • A STORY OF TESTING. • FROM THE MIND OF A CONFUSED TESTER. • FEW CASE STUDIES. • CHALLENGES IDENTIFIED. • SURVEY STUDIES. • GLOBAL RESPONSES. • SOLUTION APPROACH. • PRINCIPLES AND PRACTICES. • CONCLUSION & RECAP. • Q & A. A STORY OF TESTING IN AGILE… HAVE YOU HEARD ANY OF THESE ?? • YOU DON’T NEED A DEDICATED SOFTWARE TESTING TEAM ON YOUR AGILE TEAMS • IF WE HAVE BDD,ATDD,TDD,UI AUTOMATION , UNIT TEST >> WHAT IS THE NEED OF MANUAL TESTING ?? • WE WANT 100% AUTOMATION IN THIS PROJECT • TESTING IS BECOMING BOTTLENECK AND REASON OF SPRINT FAILURE • REPEATING REGRESSION IS A BIG TASK AND AN OVERHEAD • MICROSOFT HAS NO TESTERS NOT EVEN GOOGLE, FACEBOOK AND CISCO • 15K+ DEVELOPERS /4K+ PROJECTS UNDER ACTIVE • IN A “MOBILE-FIRST AND CLOUD-FIRST WORLD.” DEVELOPMENT/50% CODE CHANGES PER MONTH. • THE EFFORT, KNOWN AS AGILE SOFTWARE DEVELOPMENT, • 5500+ SUBMISSION PER DAY ON AVERAGE IS DESIGNED TO LOWER COSTS AND HONE OPERATIONS AS THE COMPANY FOCUSES ON BUILDING CLOUD AND • 20+ SUSTAINED CODE CHANGES/MIN WITH 60+PEAKS MOBILE SOFTWARE, SAY ANALYSTS • 75+ MILLION TEST CASES RUN PER DAY. • MR. NADELLA TOLD BLOOMBERG THAT IT MAKES MORE • DEVELOPERS OWN TESTING AND DEVELOPERS OWN SENSE TO HAVE DEVELOPERS TEST & FIX BUGS INSTEAD OF QUALITY. SEPARATE TEAM OF TESTERS TO BUILD CLOUD SOFTWARE. • GOOGLE HAVE PEOPLE WHO COULD CODE AND WANTED • SUCH AN APPROACH, A DEPARTURE FROM THE TO APPLY THAT SKILL TO THE DEVELOPMENT OF TOOLS, COMPANY’S TRADITIONAL PRACTICE OF DIVIDING INFRASTRUCTURE, AND TEST AUTOMATION.
    [Show full text]
  • ISO 26262 Software Compliance with Parasoft C++Test
    ISO 26262 Software Compliance with Parasoft: Achieving Functional Safety in the Automotive Industry Some modern automobiles have more lines of code than a jet fighter. Even moderately sophisticated cars ship with larger and more complex codebases than the same line from just a few years ago. The inclusion of multi-featured infotainment systems, driver-assist technologies, and electronically controlled safety features as standard components—even in economy models—have fueled the growth of software in the automotive industry. Additionally, the emergence of driverless technology and “connected” cars that function as IoT systems on wheels will mean even larger and more complex codebases. All of the innovation taking place in the automotive industry, though, raises concerns over the safety, security, and reliability of automotive electronic systems. The concerns are appropriate given that the automotive software supply chain is a long convoluted system of third-party providers spanning several tiers. Consider, for example, that software developed for a specific microcontroller unit (MCU) may be integrated by a third-tier provider into a component they’re shipping to a second-tier provider and so on—until a composite component is delivered for final integration by the automaker. While not all automotive software is critical to the safe operation of the vehicle, code that carries out functional safety operations must be safe, secure, and reliable. Organizations must implement strong software quality process controls around the development of safety-critical software in accordance with ISO 26262, which is a functional safety standard for automotive software. ISO 26262 provides guidance on processes associated with software development for electrical and/or electronic (E/E) systems in automobiles.
    [Show full text]
  • Testing and Debugging C Programming and Software Tools N.C
    Testing and Debugging C Programming and Software Tools N.C. State Department of Computer Science Introduction • Majority of software development is testing, debugging, and bug fixing • The best software developers are 10X (!) more productive than other developers; why??? CSC230: C and Software Tools © NC State Computer Science Faculty 2 Why Do Bugs Happen ? • OS problem? Compiler? Hardware? – not likely • Unclear requirements / specifications, constantly changing, unreasonable schedules, … • Lack of mastery of programming tools / language • Inadequate testing procedures • Faulty logic Addressed in this course CSC230: C and Software Tools © NC State Computer Science Faculty 3 Testing Procedures • Types of testing – Unit testing – test each function – Integration testing – test interaction between units and components – System testing – testing complete system – Regression testing – selective retesting – Acceptance Testing – testing of acceptance criteria – Beta Testing – 3rd party testing • Test logging • Bug fixing – test one change at a time – maintain old versions, and log the changes CSC230: C and Software Tools © NC State Computer Science Faculty 4 Test Case Information • Unique Identifier – Black box: name of test input/output files • Input into the program or program unit – Black box: how the user runs and interacts with the program • Could be redirection input and output • Expected output from the program or program unit – What you expect to get based on input and requirements • Stored in a file that can be compared with actual
    [Show full text]