Manual:MakeTestEdits.php

MediaWiki version:
1.27
Category:MediaWiki code#MakeTestEdits.php

Details

makeTestEdits.php maintenance script allows a developer to made random edits for testing. This is a very helpful feature for those who run test wiki and want to create some random pages to testing a new version or patch.

Options/Arguments

Option Description Required? Default value
--user Valid username of an existing user on wikiRequired
--count Number of edits to be madeRequired
--namespace Namespace number in which edits need to be madeOptional0 (Main namespace)

Usage

php maintenance/run.php makeTestEdits --user UserName --count EditCounts [--namespace NamespaceNumer]
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

Making 20 edits with username Foo

Terminal
Spaces inside a username must be replaced with underscores ( _ ) or use double quotation like "Foo Bar"

Common error

No such user exists.

This indicates that the username is not a valid username of an existing user on wiki. If the username contains spaces, see Tip 1 above.

See also

Category:Maintenance scripts Category:Content maintenance scripts
Category:Content maintenance scripts Category:Maintenance scripts Category:MediaWiki code