Terasology / Signalling

Module containing blocks that can send signals to other blocks
1 stars 12 forks source link

Test Plan #10

Open PAndaContron opened 6 years ago

PAndaContron commented 6 years ago

Setup

  1. Download or update the Signalling module
  2. Start a new world with only Signalling and its dependencies
  3. Verify that it loads properly and doesn't crash

Lamp

  1. Use give to obtain a lamp and a button
  2. Place down the button and lamp directly next to each other
  3. Verify that pressing the button with E turns on the lamp
  4. Verify that if and when the button turns off the lamp turns off as well

Button

  1. In addition to the materials from the lamp testing obtain a cable using give
  2. Repeat steps 2-3 of the lamp testing, verify that the button turns off on its own and that this action un-powers the lamp
  3. Run a cable going at least 11 blocks between a button and a lamp
  4. Verify that the behavior still works exactly the same
  5. Use the same 2 models with a switch instead of a button

Switch

  1. In addition to the materials from the lamp testing obtain a cable and switch using give
  2. Repeat steps 2 of lamp testing and 3 of the button testing with a switch rather than a button
  3. Verify that clicking the switch with E toggles it on and off
  4. Verify that the lamp is activated when the switch is on and deactivated when it is off in both scenarios

Pressure Plate

  1. In addition to the materials from the lamp testing obtain a cable and pressure plate using give
  2. Repeat steps 2 of lamp testing and 3 of the button testing with a pressure plate rather than a button
  3. Verify that the lamp is turned on only when a player is on the pressure plate in both scenarios

Limited Switch

  1. In addition to the materials from the last step obtain a limited switch using give
  2. Place the limited switch directly next to a lamp and verify it works the same as a regular switch
  3. Run a cable exactly 5 blocks long between a limited switch and a lamp and verify that the lamp can still be turned on
  4. Increase the length of the cable to 6 blocks and verify that the lamp will no longer turn on

AND Gate

  1. Obtain a switch, cable, lamp, and AND gate
  2. Place each gate down with a switch on each input and a lamp on the output
  3. Verify that the output only activates when both inputs are activated
  4. Repeat the test but with a cable between each switch and input and between each output and lamp, and verify that it still works
  5. Repeat the test with at least 11 blocks of cable from the output to the lamp and verify that it still works

NAND Gate

  1. Obtain a switch, cable, lamp, and NAND gate
  2. Repeat steps 2-5 of the AND Gate testing with a NAND gate, verify that the output is always active unless both inputs are activated

OR Gate

  1. Obtain a switch, cable, lamp, and NAND gate
  2. Repeat steps 2-5 of the AND Gate testing with a NAND gate, verify that the output is always active unless both inputs are deactivated

XOR Gate

  1. Obtain a switch, cable, lamp, and NAND gate
  2. Repeat steps 2-5 of the AND Gate testing with a NAND gate, verify that the output is only active when exactly one input is activated

Set-Reset Gate

  1. Obtain a button, cable, lamp, and set-reset gate
  2. Place down the gate with a button on each input and a lamp on the output
  3. Verify that pressing the button on the Reset side will not activate the lamp
  4. Verify that pressing the button on the Set side activates the lamp
  5. Verify that the lamp stays activated even after the button deactivates
  6. Verify that pressing the button on the Set side again will not deactivate the lamp
  7. Verify that pressing the button on the Reset side deactivates the lamp
  8. Verify that the lamp stays deactivated even after the button deactivates
  9. Repeat the test but with a cable between each button and input and between the output and lamp, and verify that it still works
  10. Repeat the test with at least 11 blocks of cable from the output to the lamp and verify that it still works

On Delay Gate

  1. Obtain a switch, cable, lamp, and on-delay gate
  2. Place the gate down with a switch on the input and a lamp on the output
  3. Turn the switch on, verify that the gate will not activate the lamp instantly
  4. Turn the switch off, verify that the gate will deactivate the lamp instantly
  5. Repeat the test but with a cable between the switch and input and between the output and lamp, and verify that it still works
  6. Repeat the test with at least 11 blocks of cable from the output to the lamp and verify that it still works

Off Delay Gate

  1. Obtain a switch, cable, lamp, and off-delay gate
  2. Repeat the previous procedure with the off-delay gate and verify that the lamp activates instantly but deactivates on a delay

Transformer

  1. Obtain a limited switch, cable, lamp, and transformer
  2. Place a transformer with a limited switch on the input side and 6 blocks of cable followed by a lamp
  3. Place another transformer with 5 blocks of cable followed by a limited switch on the input side and 1 block of cable followed by a lamp on the output side
  4. Verify that in both setups, the switch is able to activate the lamp
  5. Place an additional block of cable between the output and the lamp in each setup
  6. Verify that the limited switch can no longer activate the lamp in either setup

Screwdriver

  1. Obtain a screwdriver, the 7 gates, and a transformer
  2. Place each block down
  3. Verify that using the screwdriver to interact with each block will cycle through its rotations
syntaxi commented 6 years ago

Only got two requests to make.

  1. Could you split each item into a distinct subheading. You've done so for almost all the items, just a few that are grouped together.
  2. For steps where you reference other sections can you be a bit more explicit. Eg, instead of Keeping the setup with the button directly next to the lamp put Repeat steps 1-3 of Lamp Testing.

Thanks :)

darshan3 commented 5 years ago

What should happen when 2 switches are placed around a single lamp?

darshan3 commented 5 years ago

Limited Switch is not working.

PAndaContron commented 5 years ago

It's been a while since I've looked at the code, but I believe that either one or both switches being on should activate the lamp. Also, what happens when you use the limited switch?