Tool support for testing (CAST)

36 358 0
Tool support for testing (CAST)

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Tool support for testing (CAST) Software Testing ISEB Foundation Certificate Course 1 Principles 2 Lifecycle 4 Dynamic test techniques 3 Static testing 5 Management 6 Tools 1 Types of CAST tool Why capture/replay is not test automation Automating and testing are separate skills Best practice Contents ISEB Foundation Certificate Course Tool support 1 2 4 5 3 6 2 Testing tool classification Requirements testing tools Static analysis tools Test design tools Test data preparation tools Test running tools - character-based, GUI Comparison tools Test harnesses and drivers Performance test tools Dynamic analysis tools Debugging tools Test management tools Coverage measurement 3 Static analysis Test management tools Test design Test data preparation Coverage measures Test running Dynamic analysis Debug Performance measurement Comp. Test Where tools fit Req Anal Code Function Design Sys Test Int Test Acc Test Requirements testing Test harness & drivers Comparison 4 Requirements testing tools n Automated support for verification and validation of requirements models consistency checkingconsistency checking animationanimation Tool information available from: Ovum Evaluates Software Testing Tools (subscription service) CAST Report, 1999 World Wide Web 5 Static analysis tools n Provide information about the quality of software n Code is examined, not executed n Objective measures cyclomatic complexitycyclomatic complexity others: nesting levels, sizeothers: nesting levels, size 6 Test design tools n Generate test inputs from a formal specification or CASE repositoryfrom a formal specification or CASE repository from code (e.g. code not covered yet) from code (e.g. code not covered yet) 7 Test data preparation tools n Data manipulation selected from existing databases or filesselected from existing databases or files created according to some rulescreated according to some rules edited from other sources edited from other sources 8 Test running tools 1 n Interface to the software being tested n Run tests as though run by a human tester n Test scripts in a programmable language n Data, test inputs and expected results held in test repositories n Most often used to automate regression testing 9 Test running tools 2 n Character-based simulates user interaction from dumb terminalssimulates user interaction from dumb terminals capture keystrokes and screen responsescapture keystrokes and screen responses n GUI (Graphical User Interface) simulates user interaction for WIMP applications simulates user interaction for WIMP applications (Windows, Icons, Mouse, Pointer)(Windows, Icons, Mouse, Pointer) capture mouse movement, button clicks, and capture mouse movement, button clicks, and keyboard inputskeyboard inputs capture screens, bitmaps, characters, object statescapture screens, bitmaps, characters, object states 10 [...]... accuracy of tool use is very important usually there is more verification that can (and perhaps should) be done - automation can lead to better testing (not guaranteed!) 23 1 2 3 4 5 6 ISEB Foundation Certificate Course Tool support Content Types of CAST tool Why capture/replay is not test automation Automating and testing are separate skills Best practice 24 Effort to automate n n The effort required... the colours look nice? some aspects of multi-media applications 35 1 2 3 4 5 6 ISEB Foundation Certificate Course Tool support Summary: Key Points There are many different types of tool support for testing, covering all areas of the life cycle Automation requires planning and up-front effort Identify and adopt best practice 36 ... any one test varies greatly - typically between 2 and 10 times the manual test effort and depends on: - tool, skills, environment and software under test - existing manual test process which may be: • unscripted manual testing • scripted (vague) manual testing • scripted (detailed) manual testing 25 Unscripted manual testing “Try this” “Try that” “What about ” “What if ” Step 4: check it worked OK... Tests are run through the instrumented code Tool reports what has and has not been covered by those tests, line by line and summary statistics Different types of coverage: statement, branch, condition, LCSAJ, et al 17 1 2 3 4 5 6 ISEB Foundation Certificate Course Tool support Content Types of CAST tool Why capture/replay is not test automation Automating and testing are separate skills Best practice... 2: enter the inputs 29 1 2 3 4 5 6 ISEB Foundation Certificate Course Tool support Content Types of CAST tool Why capture/replay is not test automation Automating and testing are separate skills Best practice 30 Don’t automate too much long term n n n as the test suite grows ever larger, so do the maintenance costs - maintenance effort is cumulative, benefits are not the test suite takes on a life of... tests or comparisons Often custom-build Simulators (where testing in real environment would be too costly or dangerous) 12 Performance testing tools n n n Load generation - drive application via user interface or test harness - simulates realistic load on the system & logs the number of transactions Transaction measurement - response times for selected transactions via user interface Reports based... and other data 15 Test management tools n n n n Management of testware: test plans, specifications, results Project management of the test process, e.g estimation, schedule tests, log results Incident management tools (may include workflow facilities to track allocation, correction and retesting) Traceability (of tests to requirements, designs) 16 Coverage measurement tools n n n n n Objective measure...Comparison tools n n n Detect differences between actual test results and expected results - screens, characters, bitmaps - masking and filtering Test running tools normally include comparison capability Stand-alone comparison tools for files or databases 11 Test harnesses and drivers n n n n Used to exercise software which... on logs, graphs of load versus response times 13 Dynamic analysis tools n Provide run-time information on software (while tests are run) - allocation, use and de-allocation of resources, e.g dememory leaks - flag unassigned pointers or pointer arithmetic faults 14 Debugging tools n n Used by programmers when investigating, fixing and testing faults Used to reproduce faults and examine program execution... benefits - maintenance costs - time or effort saved, faults found? 32 Invest n n commit and maintain resources - “champion” to promote automation - technical support - consultancy/advice scripting - develop and maintain library - data driven approach, lots of re-use re- 33 Tests to automate n n n run many times - regression tests Automate - mundane expensive to perform manually - time consuming and necessary . Tool support for testing (CAST) Software Testing ISEB Foundation Certificate Course 1 Principles 2 Lifecycle 4 Dynamic test techniques 3 Static testing 5 Management 6 Tools 1 Types of CAST tool Why. and testing are separate skills Best practice Contents ISEB Foundation Certificate Course Tool support 1 2 4 5 3 6 2 Testing tool classification Requirements testing tools Static analysis tools Test. design tools Test data preparation tools Test running tools - character-based, GUI Comparison tools Test harnesses and drivers Performance test tools Dynamic analysis tools Debugging tools Test

Ngày đăng: 12/05/2014, 11:08

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan