Giter Club home page Giter Club logo

Comments (6)

guoger avatar guoger commented on May 30, 2024

cc @SamYuan1990

from tape.

wangxinalex avatar wangxinalex commented on May 30, 2024

How about the dynamic variables in postman? https://learning.postman.com/docs/writing-scripts/script-references/variables-list/. Some random data generator can be leveraged like https://github.com/brianvoe/gofakeit

from tape.

SamYuan1990 avatar SamYuan1990 commented on May 30, 2024

How about the dynamic variables in postman? https://learning.postman.com/docs/writing-scripts/script-references/variables-list/. Some random data generator can be leveraged like https://github.com/brianvoe/gofakeit

well, my personal opinion doesn't limit for any kind of implementation.
for post man, well @wangxinalex could you explain more about how integrate post man with tape(a golang base program?)
for the random data generator is a good point. however, if we extend our view. the use case is that

tape user input something in config.yaml xxx word and during tape running replace xxx word with data.
for random case, if user wants random data, this library is very good for us.
@guoger , could you please help comparing the different between https://ghz.sh/docs/examples#metadata-using-template-variables and https://ghz.sh/docs/examples#metadata-using-template-variables ?

from tape.

wangxinalex avatar wangxinalex commented on May 30, 2024

How about the dynamic variables in postman? https://learning.postman.com/docs/writing-scripts/script-references/variables-list/. Some random data generator can be leveraged like https://github.com/brianvoe/gofakeit

well, my personal opinion doesn't limit for any kind of implementation.
for post man, well @wangxinalex could you explain more about how integrate post man with tape(a golang base program?)
for the random data generator is a good point. however, if we extend our view. the use case is that

tape user input something in config.yaml xxx word and during tape running replace xxx word with data.
for random case, if user wants random data, this library is very good for us.
@guoger , could you please help comparing the different between https://ghz.sh/docs/examples#metadata-using-template-variables and https://ghz.sh/docs/examples#metadata-using-template-variables ?

In my view, the dynamic variables in postman could provide some insights for tape due since they are both popular request generator. It is unnecessary to port these features from postman 100% because it is based on Javascript, instead we can try to leverage fake data generators like https://github.com/brianvoe/gofakeit to produce some fake data with semantic meaning.

On the other hand, ghz can replace templates with some contextual data https://github.com/bojand/ghz/blob/06f029c14c97612a09095f55075474442ffc8243/runner/calldata.go#L24, of course which can be seen as some random info source, however this may be insufficient if we want semantically meaningful payload.

from tape.

guoger avatar guoger commented on May 30, 2024

How about the dynamic variables in postman? learning.postman.com/docs/writing-scripts/script-references/variables-list. Some random data generator can be leveraged like brianvoe/gofakeit

this looks promising.

Suppose following scenario:

1. create 1M accounts with random initial balance, then
2. randomly transfer among those accounts

1 should be easy with dynamic variable. Although I'm scratching my head around 2, where accounts are inherited from 1.

Anyway, satisfying 1 should be a good starting point already, and we could always build on top of it.

@wangxinalex interested?

from tape.

wangxinalex avatar wangxinalex commented on May 30, 2024

How about the dynamic variables in postman? learning.postman.com/docs/writing-scripts/script-references/variables-list. Some random data generator can be leveraged like brianvoe/gofakeit

this looks promising.

Suppose following scenario:

1. create 1M accounts with random initial balance, then
2. randomly transfer among those accounts

1 should be easy with dynamic variable. Although I'm scratching my head around 2, where accounts are inherited from 1.

Anyway, satisfying 1 should be a good starting point already, and we could always build on top of it.

@wangxinalex interested?

Sure, let's start with simple semantic random variables.

from tape.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.