Git Product home page Git Product logo

Comments (5)

alaendro avatar alaendro commented on May 29, 2024

I have experienced the same problem some months ago without a solution

from restler-fuzzer.

marcellomaugeri avatar marcellomaugeri commented on May 29, 2024

@marina-p could you please confirm if this is a bug? I would be glad to fix it with some guidance, thank you.

from restler-fuzzer.

marina-p avatar marina-p commented on May 29, 2024

Hello @marcellomaugeri,

Apologies for the delay in replying and thank you for the self-contained repro steps. In the above files, the dictionary and custom value generators have a different path:

        "/request/post/__body__": gen_restler_custom_payload__request_post__body_
        "/test/post/__body__": ["{\n\"test\" : \"test\"\n}"] 

If I modify both keys to match the Swagger (/test/post/__body__), RESTler sends both values generated by the custom value generator function.

Thanks,

Marina

from restler-fuzzer.

marina-p avatar marina-p commented on May 29, 2024

@marcellomaugeri leaving this issue open to further brainstorm how to improve diagnosing this error. There isn't a warning issued today for unused value generators since one use case is to have the same value_gen.py for many Swagger files, which would result in noisy warnings.

from restler-fuzzer.

marcellomaugeri avatar marcellomaugeri commented on May 29, 2024

@marina-p thank you for your solution. Actually, I made a mistake in providing the MRE, but the paths are all correct in my code. Still, it's sending the first value in the yield: { "test": "test1" } at the beginning, all the remaining payloads are just random strings, not taking into consideration neither dict nor other values in the generator. I was expecting Restler to send { "test": "test1" } and { "test": "test2" } alternated.
In brief, I would like to have full control of the payload sent, is it possible?

from restler-fuzzer.

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.