test-strategy_第1頁(yè)
test-strategy_第2頁(yè)
test-strategy_第3頁(yè)
test-strategy_第4頁(yè)
test-strategy_第5頁(yè)
已閱讀5頁(yè),還剩10頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、Software Testing & StrategiesInstructor: Dr. Jerry GaoSoftware Testing & StrategiesJerry Gao, Ph.D. Jan. 1999- Software Testing Fundamentals- Testing Objectives, Principles, Testability- Software Test Case Design- White-Box Testing- Cyclomatic Complexity- Graph Matrices- Control Structuring

2、Testing- Condition Testing- Data Flow Testing- Loop Testing- Black-Box Testing- Graph-based Testing Methods- Equivalence Partitioning- Boundary Value Analysis- Comparison TestingVerification and ValidationSoftware testing is one element of a broader topic that is often referred to as = Verification

3、and Validation (V&V)Verification - refers to the set of activities that ensure that software correctly implements a specific function.Validation - refers to a different set of activities that ensure that the software that has been built is traceable to customer requirements.Boehm BOE81:Verificat

4、ion: “Are we building the product right?”Validation: “Are we building the right product?”The definition of V&V encompasses many of SQA activities, includingformal technical reviews, quality and configuration auditsperformance monitoring, different types of software testingfeasibility study and s

5、imulationSoftware Testing OrganizationTesting objective:uncover the errors (defects) in the software, includingerrors in:- requirements from requirement analysis- design documented in design specifications- coding (implementation)- system resources and system environment- hardware problems and their

6、 interfaces to softwareSoftware testing can be considered to be (psychologically) destructive.Who are involving software testing?- developers - testers (test engineers) in ITG- SQA groupSoftware testing organization: - Individual tester in a development team- Independent test group (ITG)Software Tes

7、ting ProcessUnit testIntegrationtestValidationtestSystemtestSystem engineeringRequirementsSoftware DesignCode & ImplementationV&V TargetsUnit Test (Component Level Test)Unit testing: Individual components are tested independently to ensure their quality. The focus is to uncover errors in des

8、ign and implementation, including- data structure in a component- program logic and program structure in a component- component interface- functions and operations of a componentUnit testers: developers of the components.Operations and Functions with I/OWhite-boxinterfaceinputoutputInternal logic, d

9、ata, structureoutputinputinterfaceoperationBlack-boxIntegration TestIntegration test: A group of dependent components are tested together to ensure their the quality of their integration unit.The focus is to uncover errors in:- Design and construction of software architecture- Integrated functions o

10、r operations at sub-system level- Interfaces and interactions between them- Resource integration and/or environment integrationIntegration testers: either developers and/or test engineers.Component #1Operations and Functions with I/OinputinterfaceoperationComponent #2Operations and Functions with I/

11、OoutputinterfaceoperationIntegration Testing StrategiesApproaches:a) non-incremental integrationb) incremental integrationNon-incremental integration:- Big Band - combine (or integrate) all parts at once. Advantages: simpleDisadvantages:- hard to debugging, not easy to isolate errors- not easy to va

12、lidate test results- impossible to form an integrated systemIncremental integration:integrate the system step-by-step (or piece by piece)in an well-designed order. Three important methods:a) Top-downb) bottom-upc) Sandwich - uses a top-down for upper-level modulesand bottom-up for low-level modulesT

13、op-down IntegrationIdea:-Modules are integrated by moving downward through the control structure.Modules subordinate to the main control module are incorporated into the systemin either a depth-first or breadth-first manner.Integration process (five steps):1. the main control module is used as a tes

14、t driver, and the stubsare substituted for all modules directly subordinate to the maincontrol module.2. subordinate stubs are replaced one at a time with actual modules.3. tests are conducted as each module is integrated.4. On completion of each set of tests, another stub is replaced with the real

15、module.5. regression testing may conducted.Pros and cons top-down integration: - stub construction cost- major control function can be tested early.Bottom-Up IntegrationIdea:- Modules at the lowest levels are integrated at first, then by moving upward through the control structure.Integration proces

16、s (five steps):1. Low-level modules are combined into clusters that perform a specific software sub-function.2. A driver is written to coordinate test case input and output.3. Test cluster is tested.4. Drivers are removed and clusters are combined moving upward in the program structure.Pros and cons

17、 of bottom-up integration: - no stubs cost- need test drivers- no controllable system until the last stepValidation TestValidation test: The integrated software is tested based on requirements to ensure that we have a right product.The focus is to uncover errors in:- System input/output - System fun

18、ctions and information data- System interfaces with external parts- User interfaces- System behavior and performanceValidation testers:test engineers in ITG or SQA people.System (Operations &Functions & Behavior)UserinterfaceUserExternal interfacesSystem TestSystem test: The system software

19、is tested as a whole. It verifies allelements mesh properly to make sure that all systemfunctions and performance are achieved in the target environment.The focus areas are:- System functions and performance - System reliability and recoverability (recovery test)- System installation (installation t

20、est)- System behavior in the special conditions (stress and load test)- System user operations (acceptance test/alpha test)- Hardware and software integration and collaboration- Integration of external software and the systemSystem testers:test engineers in ITG or SQA people.When a system is to be m

21、arketed as a software product, a testing process calledbeta testing is often used.System TestingRecovery testing - a system test that forces the software to fail in various waysand verifies that recovery is properly performed.Security testing - to verify that protection mechanism built into a system

22、 willin fact protect it from improper penetration.Stress testing - is designed to confront programs with abnormal conditions.- quantity, frequency, or volume.Performance testing - is designed to test run-time performance of softwarewithin the context of an integrated system.Installation testing - is designed to test the installation procedure and itssupported software.Test PlanningTest planning is concerned with setting out standards for the testing process rather than describing product tests.Test plan consists of the follow

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論