Is it possible to populate my wordpress site with many random posts for testing purposes?

I have just deployed the Wordpress application on my Kubernetes cluster following the instructions from https://kubernetes.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/

Now I would like to populate the Wordpress database with a lot of posts for testing purposes. I do not really care about the content of these posts. As far as I am concerned they can be completely random. All I care that there are a lot of them.

Is there a way to do it?

Topic automation testing Wordpress

Category Web


As I can see you are using Kubernetes. There are few routes you could go.

  1. REST API: Write a light script (nodejs or php) that creates fake data and sends to rest route to create posts. You can then use cron hit rest route for creating posts.

  2. Plugin: Check Fakerpress plugin, I haven't used it but it looks like something you can use.


There is official test data available here:

https://codex.wordpress.org/Theme_Unit_Test

It's an XML file that you can import from Tools > Import and imports a variety of posts, pages, and menus for the purpose of testing themes.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.