Static Testing

0
0
1505 days ago, 491 views
PowerPoint PPT Presentation
Substance. Surveys and the test processTypes of reviewStatic examination. Individuals systems. individual:desk-checking, information going, evidence readinggroup:Reviews (casual

Presentation Transcript

Slide 1

´╗┐Part 3 Software Testing ISTQB/ISEB Foundation Exam Practice Static Testing 1 Principles 2 Lifecycle 3 Static testing 4 Dynamic test procedures 5 Management 6 Tools

Slide 2

Contents Reviews and the test procedure Types of survey Static examination

Slide 3

People strategies singular: work area checking, information venturing, editing bunch: Reviews (casual & formal): for accord Walkthrough: for training Inspection (most formal): to discover deficiencies Static methods don't execute code

Slide 4

Benefits of audits Development efficiency change Reduced advancement timescales Reduced testing time and cost Lifetime cost diminishments Reduced blame levels Improved client relations and so forth

Slide 5

Reviews are financially savvy 10 times lessening in flaws achieving test, testing cost decreased by half to 80% Handbook of Walkthroughs, Inspections & Technical Reviews - Freedman & Weinberg decrease blames by a variable of 10 Structured Walkthroughs - Yourdon

Slide 6

25% diminishment in timetables, expel 80% - 95% of issues at each stage, 28 times lessening in support cost, numerous others Software Inspection - Gilb & Graham

Slide 7

What can be Inspected? Anything recorded can be Inspected arrangement, methodology, strategies for success, showcasing or promoting material, contracts framework necessities, attainability ponders, acknowledgment test arranges test arranges, test outlines, test cases, test comes about

Slide 8

framework plans, coherent & physical programming code client manuals, systems, preparing material

Slide 9

What can be assessed? anything which could be Inspected i.e. anything recorded arrangements, dreams, "huge picture", key headings, thoughts extend advance work finished to plan, and so forth. "Should we build up this" promoting alternatives

Slide 10

Accept. Test Requirements System Test Functions Integration T Design Unit Test Code What to audit/Inspect? Tests

Slide 11

Costs of audits Rough guide: 5%-15% of advancement exertion half day seven days is 10% Effort required for surveys arranging (by pioneer/arbitrator) planning/self-examine checking meeting repairing/altering/take after recording & investigation of insights/measurements prepare change (ought to!)

Slide 12

Static testing 1 2 3 ISTQB/ISEB Foundation Exam Practice 4 5 6 Contents Reviews and the test procedure Types of audit Static examination

Slide 13

Types of survey of archives Informal Review undocumented broadly saw as valuable and shoddy (however nobody can demonstrate it!) An accommodating initial step for disorganized associations. Specialized Review: (or peer audit) incorporates companion and specialized specialists, no administration investment. Ordinarily archived, blame finding. Can be somewhat subjective.

Slide 14

Decision-production Review: amass talks about report and settles on a choice about the substance, e.g. how something ought to be done, go or no-go choice, or specialized remarks

Slide 15

Types of audit of reports Walkthrough creator controls the gathering through an archive and his or her manners of thinking, so all comprehend a similar thing, agreement on changes to make Inspection: formal individual and gathering checking, utilizing sources and models, as per bland and particular principles and agendas, utilizing passage and leave criteria, Leader must be prepared & confirmed, measurements required

Slide 16

Reviews when all is said in done 1 Objectives/objectives approval & confirmation against determinations & benchmarks accomplish accord (barring Inspection) handle change (perfect, incorporated into Inspection)

Slide 17

Reviews as a rule 2 Activities arranging outline/commence meeting (Inspection) planning/individual checking survey meeting (not generally) development (for a few sorts) measurements recording & investigation (Inspections and here and there audits)

Slide 18

Reviews all in all 3 Roles and obligations Leader/mediator - plans the survey/Inspection, picks members, helps & empowers, directs the meeting, performs development, oversees measurements Author of the record being assessed/Inspected

Slide 19

Reviewers/Inspectors - specific blame discovering parts for Inspection Managers - rejected from a few sorts of audit, need to arrange extend time for audit/Inspection Others: e.g. Investigation/audit Co-ordinator

Slide 20

Reviews all in all 4 Deliverables Changes (alters) in survey item Change asks for source records (forerunner reports to item being evaluated/Inspected) Process change recommendations to the audit/Inspection procedure to the improvement procedure which created the item just assessed/Inspected Metrics (Inspection and a few sorts of audit)

Slide 21

Reviews when all is said in done 5 Pitfalls (they don't generally work!) absence of preparing in the system (particularly Inspection, the most formal) absence of or nature of documentation - what is being explored/Inspected

Slide 22

Lack of administration support - "lip benefit" - need them done, yet don't permit time for them to occur in venture plans Failure to enhance forms (shows signs of improvement at finding a similar thing over once more)

Slide 23

the archive to be looked into is given out ahead of time commonly many pages to audit guidelines are "please audit this" not simply item, sources lump or test preparing, parts Inspection is distinctive

Slide 24

a few people have room schedule-wise to look through it and make remarks before the meeting (which is hard to mastermind) the meeting frequently goes on for a considerable length of time section criteria to meeting, may not be worth holding 2 max., regularly significantly shorter Inspection is distinctive

Slide 25

"I don't care for this" much dialog, some about specialized methodologies, some about trivia don't generally know whether it was beneficial, yet we continue doing it Rule infringement, objective, not subjective no talk, exceedingly engaged, against trivia just do it if esteem is demonstrated (consistently) Inspection is distinctive

Slide 26

passage criteria preparing ideal checking rate organizing the words gauges handle change leave criteria measured appraisals of staying real blames per page 10 - 20% obscure 30 - 40% 6 - 8 hrs/Insp hr 80 - 95% 8 - 30 hrs/Insp hr Inspection is progressively and better adequacy degree of profitability commonplace survey early Inspection develop Inspection

Slide 27

Change Request Process Improvement . Section Planning Exit Ind Chk Meet Edit Kick off . Next Software Development Stage The Inspection Process Software Development Stage

Slide 28

from the beginning .. Here's an archive: audit this (or Inspect it)

Slide 29

Reviews: time and size decide rate 2 hrs? Time 100 pages? Checking Rate Checking Rate Size 50 pages for every hour

Slide 30

significant minor Review "Careful quality"? standard "audit" - discovers a few shortcomings, one noteworthy, settle them, consider the report now rectified and OK

Slide 31

Inspection: time and rate decide measure 2 hrs? Time Optimum: 1 page * every hour Checking Rate Size 2 pages (at ideal rate) * 1 page = 300 critical words

Slide 32

Inspection Thoroughness Inspection can discover profound situated deficiencies: the greater part of that sort can be remedied however needs ideal checking rate

Slide 33

Inspection shocks Fundamental significance of Rules justly concurred as applying characterize real issues/blames Slow checking rates Strict section & leave criteria Fast logging rates Amount of obligation given to creator

Slide 34

Contents Reviews and the test procedure Types of audit Static examination

Slide 35

What can static investigation do? Keep in mind: static procedures don't execute the code A type of computerized testing check for infringement of guidelines check for things which might be a blame

Slide 36

Descended from compiler innovation a compiler statically examinations code, and "knows" a great deal about it, e.g. variable utilization; discovers sentence structure flaws static investigation devices develop this information can discover inaccessible code, undeclared factors, parameter sort mis-matches, uncalled capacities & systems, exhibit bound infringement, and so forth

Slide 37

x is characterized, y and z are utilized an and b are utilized, S is characterized Data stream examination This is the investigation of program factors variable defined* where an esteem is put away into it variable utilized where the put away esteem is gotten to variable is unclear before it is characterized or when it leaves scope x = y + z IF a > b THEN read(S) *defined ought not be mistaken for announced

Slide 38

Data stream oddity: n is re-characterized without being utilized Data stream blame: y is utilized before it has been characterized (first time around the circle) Data stream examination deficiencies n := 0 read (x) n := 1 while x > y do begin read (y) compose( n*y) x := x - n end

Slide 39

Control stream investigation Highlights: hubs not available from begin hub vast circles various section to circles whether code is all around organized, i.e. reducible whether code complies with a flowchart syntax any bounced to indistinct names any marks not hopped to cyclomatic many-sided quality and different measurements

Slide 40

Unreachable code illustration Macro definitions (diverse for various stages the code keeps running on) Buffsize: 1000 Mailboxmax: 1000 IF Buffsize < Mailboxmax THEN Error-Exit ENDIF

Slide 41

Static Analysis finds the THEN proviso inaccessible, so will signal a blame

Slide 42

Cyclomatic many-sided quality cyclomatic multifaceted nature is a measure of the unpredictability of a stream diagram (and in this way the code that the stream chart speaks to) the more perplexing the stream chart, the more noteworthy the measure it can most effectively be figured as: intricacy = number of choices + 1

Slide 43

Which stream diagram is generally intricate? What is the cyclomatic many-sided quality? 1 5 3 2

Slide 44

init Example control stream chart do Pseudo-code: Result = 0 Right = 0 DO WHILE more Questions IF Answer = Correct THEN Right = Right + 1 ENDIF END DO Result =

SPONSORS