Making Content Randomizer and Test it

A Brief Things to Say before Start

  • Django for back-end and front-end.
  • PostgreSQL as the main database
  • GitHub Flow-like (There is no staging, just development and master)
  • The pipeline contains tests, lint check, deploy to a dynamic analysis tool, and deploy to Heroku (Production Server)

Test Unpredicted Result


  • The page returns 200 code
  • The content of the randomized list has the same contents as original


  • Position of content in the randomized list
Test status code and the contents
Conduct several same tests until it passed with a limit iteration

Making a Random Functionality

The button to trigger content randomizer, and when that happens will refresh the page with new randomized contents
Handle a random content request in the controller




Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nandhika Prayoga

Nandhika Prayoga

Mainly a Full-stack Developer, Software Architecture Engineer. I'm a passionate developer, love to learn new things and write an article about it