TestingAssignment1

  1. REFLECTIONS

  2. SHOOTING A woman fired a shot at a man with her gun, but the man did not die. List the possible reasons for the man not dying.

  • He was shot in a non fatal spot
  • She missed
  • Her shots where blanks
  • He dodged the shot
  • A person jumped in front of him
  • She saved him after by using bandages and other tools
  • He had a bulletproof vest on
  • The man was behind something
  1. ALIEN An alien meets you and it asks you to teach it how to brush its teeth. Assume that the alien has teeth exactly like yours, and is as smart as you, but it needs a clear step-by-step instruction. List the steps. Be as detailed as you can. (Example: Hold the toothpaste with your left hand; turn the cap anti-clockwise)

1: Take your hand up
2: Reach for the tooth brush
3: Pick it up
4: Take up your other hand
5: Reach for the toothpaste
6: Pick up toothpaste
7: Hold the toothpaste with your left hand
8: turn the cap anti-clockwise
9: Put the toothpaste cap area on top of the tooth brush head
10: press a thin layer on top of the tooth brush head
11: Put the toothpaste cap on by turning clockwise
12: Put the toothpaste down
13: Put the toothbrush inside your mouth
14: Put the toothbrush on your teeth
15: Move the brush on the teeth back and forth on each side and on top\

  1. GIVE YOUR THOUGHTS ON BDD

Write your notes (in a readme file) regarding the BDD process, reflecting on the following questions.

  • What was positive and good about using BDD?
    • It was good to have a structured approach to develop and it provided us with clear way of knowing when we were done.
  • What was annoying or difficult?
    • Cucumber has its issues and can be hard to problem solve why it breaks
      • It can feel counterintuitive to test first.
  • What surprised you?
    • How hard it can be to structure accept cases in a way that makes bdd testing easy.
  • Did BDD help you understand the problem domain more
    • Yes
  • Did BDD help you write some tests you wouldn’t otherwise have thought of?
    • Yes by making it clear what it needed to do before