Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 2.13 KB

README.md

File metadata and controls

68 lines (44 loc) · 2.13 KB

FakeData

FakeData is a Python package that generates realistic business data, then run an associated jmeter case, thousands of data will be added to Project.

For the long term purpose, I hope the data is from Internet and user can create fake datasets for their data science/machine learning projects.

Contents

  1. Requirements
  2. Installation
  3. Usage
  4. Localization
  5. FAQ
  6. Road Map

Requirements

Python 2.7 need be installed

Installation

python setup.py install

Usage

Generate fake data

Just run csvfaker command to generate default fake data if you do not have any requiremnt for big volumes.

csvfaker

Or if you want to generate hundreds of data you can run below command:

csvfaker --bo_pairs customer=1000,product=1000,contactPerson=500,lead=100,targetGroup=20,campaign=10,warehouse=25,salesOrder=1000,goodReceipt=500,salesOpportunity=500 

Run jmeter case to add fake data to Your project

Precondition:

  • xxx
  • xxx

Once basic data are generated, you can run the YourJmeterCase.jmx to import all the data to your project.

Localization

Command csvfaker can take a locale as an argument to return localized data. If no locale provided, the faker falls back to the default en_US locale.

If you want to Chinese data, just run

csvfaker -l zh_CN

FAQ

Why some requests will be failed becasue of "server not respond" or "socket connection Exception" when I run the jmeter case?

This may be related to which jmeter vesion you used and which http client you give to jmeter case. Recommend that using Jmeter 3.1 and set jmeter.httpsampler to HttpClient3.1. But if you use other version of jmeter and httpClient, you can refer to this solution

Road Map

  • Business data will be captured by crawler
  • Business data can be persisted into database for data science/machine learning purpose.