MediaWiki version:
1.27
MediaWiki file: makeTestEdits.php
Location: maintenance/
Source code: master 1.40.0 1.39.4 1.35.11
Classes: MakeTestEdits

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/makeTestEdits.php --user UserName --count EditCounts [--namespace NamespaceNumer]

Making 20 edits with username Foo

Terminal
$ php maintenance/makeTestEdits.php --user "Foo" --count 20

Edited Page 81
Edited Page 4d
Edited Page 24
Edited Page d8
Edited Page 3f
Edited Page ce
Edited Page d2
Edited Page 17
Edited Page 06
Edited Page 89
Edited Page 34
Edited Page 3b
Edited Page a4
Edited Page f9
Edited Page b8
Edited Page 72
Edited Page e5
Edited Page dd
Edited Page 53
Edited Page a3
Done
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

  • Edit.php
  • ReassignEdits.php
  • RollbackEdits.php
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.