Activity: How do you test?

(no submission)

Purpose:

You will have ~15 minutes to complete this activity. You may work on this activity individually or collaboratively. Feel free to use Zoom chat or any communication channels to form a team. Work with your peer to complete the following tasks.

Tasks:

Suppose you are testing the following artifacts (we will call them Subject Under Test, SUT).

SUT 1: Expo markers

Design tests to test Expo markers. expo marker image

  • How do you test?
  • How many tests do you need?
  • Have you tested enough? How to tell?
  • Are your tests good enough? How to tell? — Not seeing a problem does not mean there is no problem!!

SUT 2: Prime numbers

Create tests for PrimeNumbers.java.

  • How do you test?
  • How many tests do you need?
  • Have you tested enough? How to tell?
  • Are your tests good enough? How to tell? — Not seeing a problem does not mean there is no problem!!

SUT 2': Prime numbers (again)

Use your favorite Generative AI to create tests for PrimeNumbers.java.

  • How many tests does the AI generate?
  • Inspect and analyze the tests. What aspects or criteria do the tests cover? Happy paths? Non-happy paths?
  • Do the tests adequately test the program? How to tell?
  • Are the tests good enough? How to tell? — Not seeing a problem does not mean there is no problem!!
  • Compare the tests that you created and the tests AI generated. What are they in common? What are the differences? Is there anything missing?

Be prepared to share ideas / solutions that your team discussed with the class.


[Optional] Let's try something fun — How about bypass testing Google search page?

Mimic Google search form



Replace GET with POST



Copyright © 2026 Upsorn Praphamontripong
Released under the Creative Commons License CC-BY-NC-SA 4.0 license.
Last updated 2026-08-27 14:27