开发者

drupal form filler for QA [closed]

开发者 https://www.devze.com 2023-02-16 20:59 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 3 years ago.

Improve this question

hey,开发者_开发技巧 i got a form in drupal that has 50 fields and im getting sick each time to debug and fill the forms , is tehre a utility / jquery script to do random lorem lipsum or somthing like that?


In your form definition, you could loop through all the fields and put a default value in them, while debugging. This little snip should handle all text fields.

foreach ($form as $key => $field) {
  $form[$key]['#default_value'] = 'test';
}

If you have a lot of select fields, you could add an options for that too. All you need to do, it to remote those lines when done.


Try to use ff addon from http://lastpass.com Better choice ;)

foreach is not acceptable because probably we could to use select lists or integers' fields


If you use Firefox, there are some add-ons you can use to fill out the form automatically. Search the add-ons page: https://addons.mozilla.org/en-US/firefox/search/?q=form+autofill&cat=all&x=0&y=0


I strongly invite your to install a module called devel generate which is inside the devel module. Devel generate helps you to generate node by filling your forms with lorem ipsum. ;)

0

精彩评论

暂无评论...
验证码 换一张
取 消