Jump to content
  • 0

Создание тестовых данных для БД


rival
 Share

Question

Для проверки работы функционала сайта необходимо наполнить БД тестовыми товарами с определенным набором характеристик.

Может быть кто-то знает: сервис, программу, скрипт для решения задачи?

Вообще, кто-нибудь сталкивался с подобной проблемой?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

открываем phpmyadmin жмем на кнопку SQL пишем туда запрос типо такого (только со своими названиями таблицы и столбцов)

INSERT INTO mytable (id, name, value) VALUES (null,'test',100), (null,'test2',500), (null,'test3',900)
Link to comment
Share on other sites

  • 0

Возможно непонятно сформулировал вопрос. Как составить запросы к БД я знаю. Мне нужны тестовые данные, т.е. сервис, программа или скрипт который мне их сгенерирует.

Link to comment
Share on other sites

  • 0

что мешает самому их сгенерировать? Или вам нужны прям правдоподобные данные, а не Тест1, тест2 и т.д.?


вот может будет полезно http://habrahabr.ru/post/151051/

и вот https://github.com/fzaninotto/Faker

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy