a few review questions dan fleck fall 2008. system test case enter invalid username in the input box...

28
A Few Review Questions Dan Fleck Fall 2008

Upload: brittany-mccarthy

Post on 17-Jan-2016

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

A Few Review Questions

Dan Fleck

Fall 2008

Page 2: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

System Test Case

Enter invalid username in the input box

Able to enter text

Enter invalid password in the input box

Able to enter text

Click login button Error message displayed saying “invalid username or password”

What is wrong with this system test case? (formatting is wrong, but what else is?)

Page 3: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

System Test Case

Run the system and at any point press “cancel”

System cancels the action

What is wrong with this system test case? (formatting is wrong, but what else is?)

Page 4: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

Many project managers fail. What are some of the main reasons projects fail and how can you lower your risk of failure?

Page 5: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

Problems with these requirements?

Users shall have an ATM Card The game system shall provide a way to

regenerate players and provide a scoring mechanism

The game system shall be fun to play The game system may be accessible for

the disabled

Page 6: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

What is the difference between design and analysis phase?

Analysis describes WHAT the system must do, design describes HOW the system will do it.

Analysis describes the problem domain, design describes the solution domain

Page 7: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

What is a design principle?

Good things you should try to do when creating a system. (Principles that have historically lead to successful projects.)

Page 8: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

Explain the interface segregation principle Don’t make large multipurpose interfaces – instead use

several small focused ones.

Don’t make clients depend on interfaces they don’t use.

Class should depend on each other through the smallest possible interface.

Why???

Page 9: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

What am I violating? How should I fix it?class Cat {

public int numberOfFeet = 4;

}

class Owner { public Cat cat; }

class Veterinarian {

public void amputate(Owner o) {

o.cat.numberOfFeet = 2;

}

}

Page 10: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

What am I violating? How should I fix it? Law of Demeter and poor encapsulation

class Cat {

public int numberOfFeet = 4;

}

class Veterinarian {

public void amputate(Cat c) {

c.NumberOfFeet(2);

}

}

Page 11: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

If I have a serial database that only allows one user to query it at a time, what pattern could I use?

Singleton - limits access to a shared resource by ensuring only one object is ever created (in this case, the database connection)

Page 12: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

Which gang is least-scary? Republicans Crips Democrats Gang of Four Bloods

Why?

Page 13: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

Define coupling (and I don’t mean the terrible show from 2000)

Define cohesion

Cast of Coupling (2000)

Page 14: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

You and Dracula are both afraid if stakeholders get upset. Why?

Page 15: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

Define critical path and tell me when I should pack for the cruise

Activity Duration Predecessor

1. Requirements collection 5

2. Screen Design 6 1

3. Report Design 6 1

4. Database Design 2 2,3

5. User Documentation 6 4

6. Programming 5 4

7. Testing 3 6

8. Installation 2 5, 7

9. Celebration Cruise 30 8

Page 16: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

Carl and Bob are racing, but are friends and want to finish in a tie (at the same time), what is the schedule dependency that describes this (FS, FF, SF, SS) best?

Page 17: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

Why is it necessary to quantify your plans?

What is expectation management? Why is it important? Give an example from your life where it was not done and the results?

Page 18: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

Define verification Define validation Define IV&V If my software requirements say the

background should be blue, but I like red better, will I fail in verification, validation or both?

Page 19: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

What is dynamic verification?

What is an example of static verification?

Which is FindBugs?

Page 20: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

What is a stopping rule for testing? Or what do I mean by that?

A stopping rule is a rule to determine when you can “stop” testing. Older testing techniques provided no quantifiable stopping rule. Newer techniques using coverage criteria do provide a stopping rule

Using the older techniques, when do you stop testing?

Page 21: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

My goal was to get 30 questions for the review by the time Heros starts at 9pm. It is now 8:30pm and I have 18 slides. I started at 7pm.

What are some metrics I should calculate now to understand my Heros Watching Potential (HWP) ?

If I decide to watch it now, and finish the slides in the morning, how much earlier do I need to wake up tomorrow?

Page 22: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

What are some advantages and disadvantages of metrics based on lines of code?

Page 23: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

In the software fault, error and failure model, is a software fault still present if it does not generate a failure?

Yes… the failure may appear later or once new code is added, but the fault is there regardless.

Page 24: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

Define white box and black box testing

Page 25: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

Don’t forget… just knowing the answers to these questions is NOT enough. Look at the review guide online for the full list of things to know!!!!

Page 26: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

Explain the steps in mutation testing How do I kill a mutant?

1. Create a set of test cases that all pass2. Induce small changes to the program: mutants3. Find tests that cause the mutant programs to fail: killing mutants4. Failure is defined as different output from the original program

A mutant is a variation of my software created by changing lines of code. By introducing changes to the source code, I can detect if the testing done is thorough or not.

I kill a mutant by writing a test case that fails for the mutant code, but not for the original code

Page 27: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

Diagrams

Still know how to draw these diagrams? I would. Use case diagram Class diagram Sequence diagram Level 0 Context diagram Activity diagram (with/without swimlanes)

Page 28: A Few Review Questions Dan Fleck Fall 2008. System Test Case Enter invalid username in the input box Able to enter text Enter invalid password in the

I hope you enjoyed the class. I did!