"The moon is fifteen round on the fifteenth day" test case - test engineer celebrates the Mid-Autumn Festival

It happens to be September, welcoming the Mid-Autumn Festival. As a test engineer, the way to spend the Mid-Autumn Festival is to use your special skill-designing test cases.

The Mid-Autumn Festival is a festival of the moon. The lunar calendar design is based on the movement of the moon around the earth. However, the lunar calendar is a mixture of the advantages of the lunar calendar and the solar calendar, which causes errors. The moon on the fifteenth day is not round (this
is Sounds like a bug, haha)

Adhering to the test engineer's principle of "everything can be tested", I will design test cases based on "the moon is fifteen round" as the demand point to be tested.

Statement of needs:

The moon is full during the Mid-Autumn Festival, symbolizing reunion, so it is also called the "Reunion Festival". Therefore, the moon on August 15th on the day of the Mid-Autumn Festival is the roundest.
Insert image description here
Next, let’s get down to business and design test cases:

demand analysis:

  1. The display area of ​​the moon needs to be the largest, and "most" needs a certain number of reference systems. The requirement is to set the range to one month, so the test data needs to be selected from all the moon area data in this month.
  2. The pattern is yellow, which is an obvious test point.
  3. The display time is the evening of the 15th day of the lunar calendar.
  4. It is not mentioned in the requirements, but abnormal conditions should be considered, such as cloudy days.

Test point arrangement:

  1. UI test point: The moon is a yellow circle
  2. Display logic test points:
    - According to the display timing in the demand, first use the boundary value analysis method to set the boundary as the 15th day of the lunar calendar, and then take both sides of the boundary, that is, the moon on the night of the 14th day of the lunar calendar and the moon on the night of the 16th day of the lunar calendar.
    - Since the requirement description "Moon on the 15th" needs to be the largest in a month, it is not enough to prove that it is the largest on the 14th, 15th and 16th. According to the law of moon movement, take the data on the 1st and 30th to prove The moon gradually becomes larger between the 1st and 15th, and becomes smaller between the 15th and 30th.
  3. Abnormal process:
    - On cloudy days, the moon is not displayed.

Test case writing and organization:

module title Preconditions step expected
UI testing The moon is yellow round On the evening of the 15th day of the lunar calendar, the moon has appeared (1) Arrive at an outdoor unobstructed area (2) Look up and observe the moon The moon is displayed in the night sky as a yellow circle
show logic test The moon on the 15th of the lunar calendar is the largest among the moons on the 14th, 15th and 16th The 14th, 15th and 16th will all be sunny and unobstructed (1) Arriving at an outdoor unobstructed area on the 14th of the lunar calendar, the recorded moon area is A (2) Arriving at an outdoor unobstructed area on the 15th of the lunar calendar, the recorded moon area is B (3) Arriving at an outdoor unobstructed area on the 15th of the lunar calendar, the recorded moon area is C 1.B>A 2.B>C
show logic test The area of ​​the moon on the 1st day of the lunar calendar is smaller than the area of ​​the moon on the 15th day of the lunar calendar It will be sunny and unobstructed on the 1st and 15th. (1) Arriving at an outdoor unobstructed area on the 1st of the lunar calendar, the recorded moon area is D (2) Arriving at an outdoor unobstructed area on the 15th of the lunar calendar, the recorded moon area is B B>D
show logic test The area of ​​the moon on the 30th day of the lunar calendar is smaller than the area of ​​the moon on the 15th day of the lunar calendar It will be sunny and unobstructed on the 15th and 30th. (1) Arriving at an outdoor unobstructed area on the 15th of the lunar calendar, the recorded moon area is E (2) Arriving at an outdoor unobstructed area on the 30th of the lunar calendar, the recorded moon area is B B>E
Exception logic testing The moon will not be displayed on a cloudy day on the 15th day of the lunar calendar The 15th day of the lunar calendar is cloudy (1) Arrive at an outdoor unobstructed area (2) Look up and observe the moon Not showing the moon

This use case design may not be perfect enough. Everyone is welcome to discuss how to test "the moon on the fifteenth day is fifteen round"

Finally, I wish you just have the tickets to go home, be reunited with your family, win the first prize in the pie betting, and have a happy Mid-Autumn Festival together!
—————————————————————————————————————————————————————————————————————————————————————————————————
I am a blog of myself. No. [Essential Skills for Software Testing] will upload testing related information from time to time. You can go and get it if necessary.
Insert image description here
Insert image description here
If necessary, please click on the QR code below the article to get it~
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_40883833/article/details/126551742