1/29
Looks like no tags are added yet.
What is white box testing? How you’d do it?
Knowing the internal workings of a product, so you can design tests that make sure all paths are exercised at least once.
Guarantee that all independent paths within a module are exercised at least once
Exercise all logical decisions on their TRUE and FALSE sides at least once
Execute all loops at their boundaries and within their operational bounds
Exercise all internal data structures to make sure they’re valid
What is black box testing? How you’d do it?
Knowing the specified function a product was design to perform, then running test to show that all functions, individually and as a group , are fully operational.
Stress test: determine capacity and response limits
Normal path test: verify that valid data leads to valid results
Error path test: verify that invalid data leads to proper error processing
Equivalence Partitioning: normal path plus error path together
Testing “facts”
Defect repair cost rises exponentially the later the defect is found.
Preventing defects costs less than finding them, so use technical reviews and walk-throughs.
Testing can never find all the problems.
Errors cluster in repetitive classes, so concentrate resources on error-prone areas.
Track the reasons for errors across projects and learn from them.
Every program change is a potential source of new errors.
Collect defect stats both upstream (specification and design) and downstream (coding and testing).
Statistical Quality Assurance
information about software defects is collected and categorized
An attempt is made to trace each defect to its underlying cause
The Pareto principle is used to isolate the ‘vital few’ error types
Once the vital few are found, most resources go to correcting the problems that caused those defects
Software myths/reality
Myth
A general statement of objectives is enough to start writing programs, and the details can be filled in later.
Requirements keep changing, but change is easy to accommodate because software is flexible
Reality
Poor initial definition is a major cause of development failure. A detailed formal description of the information domain, function, interfaces, design constraints and validation criteria is essential
The impact of change varies with the time it is introduced
What qualifies as prototypes?
A fully or partially functional model
A paper model displaying user screens and interactions
The problems associated with a classic waterfall project
Large real projects rarely follow the sequential flow. Iteration always occurs and creates problems for the model.
It is often difficult or impossible for the customer to state all requirements explicitly, and waterfall has trouble accommodating that uncertainty.
The customer must be patient. A working version isn't available until late in the project, so a major blunder not detected until review means disaster.
The prototyping life cycle
Requirements Gathering
Quick Design
Build Prototype
Evaluate & Refine Requirements
Engineer Product
When it makes sense to do prototyping
The customer has general objectives but can't specify detailed inputs, outputs, or processing.
You're unsure of an algorithm's efficiency or the best approach.
You're unsure of the operating environment.
You're unsure what form the man-machine interaction should take.
What Agile is and what it isi’t
Is: small, iterative development that builds on success (or is terminated quickly), focused on working software, continuous feedback from actual users, and customer collaboration.
Isn't: waterfall or spiral development "in agile clothing." Red flags are no contact with real users, no continuous feedback (one requirements check at the start doesn't count), and treating requirements as more important than getting something useful into the field quickly.
Why you’d want to use prototyping
User needs can only be partially defined for new systems, so the best solution isn't obvious.
It encourages end-user involvement, giving a better design and a higher chance of user acceptance.
Prototypes cost less than full systems and let users interact in days or weeks instead of months or years.
They let analysts and designers validate the specification with the user, and serve as a blueprint for the final product.
Stubs, simple techniques, and database products/SQL reduce the cost of building the model.
What is Agile?
A mindset, defined by the manifesto.
Several models are built on it (Scrum and SAFe).
Built to establish a development cadence, producing completed products each iteration, not one at the end.
Continuous involvement of customers and implementers.
Not a rigid set of requirements or sequences, not something bought and inflicted on teams, and not Waterfall.
Goal: lowering the cost of change and uncertainty.
The Agile manifesto
Individuals and interactions over processes and tools
Working software over comprehensive documentation
Customer collaboration over contract negotiation
Responding to change over following a plan
The first 5 principles of Agile
Highest priority is to satisfy the customer through early and continuous delivery of valuable software.
Welcome changing requirements, even late in development. Agile harnesses change for the customer's competitive advantage.
Deliver working software frequently, from a couple of weeks to a couple of months, preferring the shorter timescale.
Business people and developers must work together daily throughout the project.
Build projects around motivated individuals. Give them the environment and support they need, and trust them to get the job done.
7. Working software is the primary measure of progress.
The difference between Agile and Scrum
Agile is the mindset or manifesto. Several models are built on it.
Scrum is one Agile process for managing knowledge work. It emphasizes daily communication, embraces changes in plans, works in short iterative phases, and focuses on value and impact.
What is a scrum master
Most akin to a project manager. They are guardians of process, givers of feedback, and mentors to junior team members. They oversee day-to-day functions, maintain the Scrum board, check in with team members, and make sure tasks are completed on target.
Responsibilities:
Removing blockers.
Facilitating Scrum events.
Coaching the team on Agile principles.
Protecting the team from interruptions and scope creep.
Supporting the product owner.
Fostering self-organization.
Monitoring performance and promoting transparency.
What was the product owner is
Often an executive or key stakeholder. They have a vision for the end product and a sense of how it fits the company's long-term goals. They direct communication efforts, alert the team to major developments, and step in to course-correct and implement high-level changes.
Who makes up a Scrum development team
Scrum Master
Product Owner
Development Team: the "makers" (front- and back-end engineers, copywriters, designers, videographers, etc.). They have varied roles and skills, but all are responsible for getting things done on time and in excellent quality.
The sprint cycle
Product Backlog → selected items go into the Sprint Backlog.
Sprint Planning at the start (about 4 hours for a 2-week sprint).
The Sprint itself, which the diagram labels 2-4 weeks (the notes on slide 19 say 1-4 weeks). A Daily Scrum meeting happens every 24 hours.
Result: a potentially shippable product increment.
Sprint Review on the last day, to show customers the work and get feedback.
Sprint Retrospective to improve the process.
What the product backlog is
A prioritized list of features, with descriptions of the functionality for a product.
What a story is
A user story is a short description of a feature, written from the user's point of view in this format: "As a [User], I want [What], so that [Value]." It's written on a story card with a name, a size/estimate, and acceptance criteria. Stories are prioritized in the product backlog, and velocity is the total of completed stories in a Sprint.
What a burndown chart is
A burndown chart tracks the work remaining in a Sprint over time. The vertical axis is remaining time estimate and the horizontal axis is time. A straight guideline shows the ideal pace to zero, and the actual remaining-work line shows whether the team is ahead of or behind schedule.
What velocity is
How much work a team can complete in a Sprint, which helps answer "how long will it take?" It is calculated at the end of the Sprint as the total of complete user stories for that Sprint.
What a daily standup (Scrum) meeting is and what happens there
Same place and same time, 15 minutes, for those who are committed.
Each person answers three questions:
What did I do since we last met?
What do I plan to do by the time we meet again?
What is blocking me from completing my work?
What a Sprint retrospective is
A meeting held at the end of a Sprint that reveals measurable facts about the team's performance and builds ideas to improve based on feedback. The team discusses what went well and what could be improved.
Brook’s rule of thumb for scheduling software tasks
½+ planning
1/6 coding
¼ component test and early system test
¼ system test with all components
The point is that coding is the smallest slice and planning and testing take most of the time. The notes also stress "Notice the amount of time spent testing. While modules worked individually, they failed in conjunction with the system and in ways not anticipated."
Demarco’s definition for estimating
Default definition (the bad one): An estimate is the earliest, most optimistic prediction that has a non-zero probability of coming true.
Proper definition (DeMarco's): An estimate is a prediction that is equally likely to be above or below the actual result.
What should you consider when creating your software “blue book” ?
Better control of software projects, with fewer and smaller overruns and earlier indications of failure.
Better original estimates and risk management.
Better management of original expectations.
Better capacity to improve and fine-tune the software process.
Improved relations with the client community.
Task-specific time data with minimum, average (expected), and maximum values to capture risk
What did Halstead include in his software estimates for an algorithm?
Only operators and operands. From the counts of unique operators (n1) and operands (n2) and their total usage (N1, N2), he calculated:
Vocabulary (n) and length (N, estimated as Nh)
Volume (V)
Program level (L)
Programming time (T)
How can Halstead estimates be used when creating project schedules?
T gives the time to code and proofread an algorithm.
Volume (V) correlates with effort and expected/residual bugs, so it helps plan debugging and testing.
Limitation: you need the finished code to get the data, so it's mostly used to validate estimates and as a basis for methods like function points.