Test Plan - mdj117/DynamicCities GitHub Wiki

#Dynamic Cities

##Test: Fetching and Running Dynamic Cities

  1. Use gradlew fetchModuleCities
  2. Use gradlew fetchModuleDynamicCities
  3. Use gradlew fetchModuleMedievalCities
  4. Run the game (gradlew game)
  5. Activate the module Medieval Cities
  6. Activate the module Dynamic Cities
  7. Check if the World generator DynCitiesPerlin is visible

##Test: Dynamic Cities Generation

  1. Run the game (gradlew game)
  2. Activate the Medieval cities and Dynamic Cities module
  3. Use the Medieval Gameplay template
  4. Use this seed yDwJHXSkqpr3gfvgtWtRtuOO5it8X5Yy
  5. Build the world
  6. Walk over till you find a suitable piece of land near a water body (or a city) or ( x(-225.89091) y(54.236347) z(-150.65865))
  7. Check if the city's population (The number) is changing

##Test: Dynamic Cities Population

  1. Run the game
  2. Use this seed yDwJHXSkqpr3gfvgtWtRtuOO5it8X5Yy
  3. Walk over to the city at x(-225.89091) y(54.236347) z(-150.65865))
  4. Set world time dilation to 100 by using setTimeDilation 100 in the in game console
  5. Check if world population increases
  6. Monitor population increase for 7 day cycles
  7. After 7 day cycles it should be 21806

##Test: Dynamic Cities City Position

  1. Run the game
  2. Use this seed yDwJHXSkqpr3gfvgtWtRtuOO5it8X5Yy
  3. Walk over to a city at x(-225.89091) y(54.236347) z(-150.65865)
  4. Confirm City position by using showPosition

##Test: Dynamic Cities Minimap (Visible)

  1. Run the game
  2. Use this seed yDwJHXSkqpr3gfvgtWtRtuOO5it8X5Yy
  3. Walk over to a city at x(-225.89091) y(54.236347) z(-150.65865)
  4. Check if the blue circle is visible on the minimap where the city should be
  5. Check if the blue circle increases over time (2 day cycles atleast)

##Test: Dynamic Cities Minimap (Zooming)

  1. Run the game
  2. Use this seed yDwJHXSkqpr3gfvgtWtRtuOO5it8X5Yy
  3. Walk over to a city at x(-225.89091) y(54.236347) z(-150.65865)
  4. Check if the blue circle is visible on the minimap where the city should be
  5. Check if the blue circle increases over time (2 day cycles atleast)
  6. Use the slider under the minimap to Zoom in (set value over 0)
  7. Blue circle should enlarge
  8. Use the slider under the minimap to Zoom out (set value less than 0)
  9. Blue circle should shrink

##Test: Dynamic Cities Population when outside of the town

  1. Run the game
  2. Use this seed yDwJHXSkqpr3gfvgtWtRtuOO5it8X5Yy
  3. Walk over to a city at x(-225.89091) y(54.236347) z(-150.65865)
  4. Set world time dilation to 50 by using setTimeDilation 50 in the command prompt
  5. Check if world population increases
  6. Monitor population increase for 2 day cycles
  7. Leave the town
  8. Check if you're outside of the blue area in the minimap
  9. Check if the leaving has been recorded in the in game console
  10. Check Population growth
  11. Compare the original population (when in the city) vs when returning into the city
  12. For half a day cycle population growth should be 900

##Test: Dynamic Cities Entering and leaving the town

  1. Run the game
  2. Use this seed yDwJHXSkqpr3gfvgtWtRtuOO5it8X5Yy
  3. Walk over to a city at x(-225.89091) y(54.236347) z(-150.65865)
  4. Leave the town
  5. Check if you're outside of the blue area in the minimap
  6. Check if the leaving has been recorded in the in game console
  7. Enter the town
  8. Check if you're inside of the blue area in the minimap
  9. Check if the entering has been recorded in the in game console