Giter VIP home page Giter VIP logo

Comments (6)

stishkin avatar stishkin commented on May 16, 2024

@LYDE1234

We have all Examples settings turn on by default (but they are not exposed as part of configuration). I can expose those settings to be configurable.

        UseQueryExamples = true
    
        UseBodyExamples = true
    
        /// When set to 'true', discovers examples and outputs them to a directory next to the grammar.
        /// If an existing directory exists, does not over-write it.
        DiscoverExamples = true
    
        /// The directory where the compiler should look for examples.
        /// If 'discoverExamples' is true, this directory will contain the
        /// example files that have been discovered.
        /// If 'discoverExamples' is false, every time an example is used in the
        /// Swagger file, RESTler will first look for it in this directory.
        ExamplesDirectory = workDirectory ++ "Examples"

from rest-api-fuzz-testing.

LYDE1234 avatar LYDE1234 commented on May 16, 2024

Thanks. Does that mean that you can't use external / self-provided examples? The RESTler documentation seems to say that 'DiscoverExamples' must be false if you're providing your own examples?

https://github.com/microsoft/restler-fuzzer/blob/main/docs/user-guide/Examples.md

from rest-api-fuzz-testing.

stishkin avatar stishkin commented on May 16, 2024

@LYDE1234

I'm going to release v4.0.1
It has all example related RESTler options exposed

{
        "toolName": "RESTler",
        "outputFolder": "compile",
        "toolConfiguration": {
          "task": "Compile",
          "compileConfiguration" : {
            "discoverExamples" : false
          }
        }
}

from rest-api-fuzz-testing.

stishkin avatar stishkin commented on May 16, 2024

@LYDE1234 release is done, if you are on v4 you do not need to take any action and new changes should be available to you regardless if you are running in Azure or locally

from rest-api-fuzz-testing.

stishkin avatar stishkin commented on May 16, 2024

Also I found this RESTler document page helpful, since it has some missing information about

ExampleConfigFilePath

https://github.com/microsoft/restler-fuzzer/blob/main/docs/user-guide/CompilerConfig.md

from rest-api-fuzz-testing.

LYDE1234 avatar LYDE1234 commented on May 16, 2024

Brilliant. Thanks.

from rest-api-fuzz-testing.

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.