Code Monkey home page Code Monkey logo

Comments (11)

StefH avatar StefH commented on July 30, 2024 1

Hello @phillee007 ,

You should use this project.

This project is based on Mock4Net, however a lot of new functionality has been added.

Currently I'm working to on the Admin-Interface, when that's in good shape, I will create a new NuGet.

In the meantime, maybe you can do some testing and help me developing certain features?

from wiremock.net.

phillee007 avatar phillee007 commented on July 30, 2024

Thanks for the quick reply. I would be happy to give it a go and see how it performs. Good timing on starting this project - it's a common need I've seen before for .Net projects!

The main thing I envision us using it for (in the short term) is to start the standalone server and use it as part of an automation UI test suite, which would test our ui that relies on canned backend services being preconfigured. E.g.

  • Start the test run
  • Start the standalone server
  • Each test would upload json stubs to the standalone server http endpoint, then do it's UI test steps
  • When the UI made calls to the backend (configured to point to the wiremock standalone endpoint) it would receive the canned results.
  • Kill the standalone server at the end of the test run

We would be using it to stub both soapui/xml request/response,, and rest-style json request/response, so provided that it has support for url and request matching and we can upload our json stubs to the standalone server, and hopefully it will all work! It will have to work with ssl too.

I was personally going to write my own self-hosted web api project to do this, but it would be quicker to give this a go first and see if it has the features I need. Alternatively, running Wiremock in the jre would be another step too, but I doubt we'll need that...

from wiremock.net.

StefH avatar StefH commented on July 30, 2024

This is indeed exactly the way you can use it. With one minor difference, starting the standalone server and stopping it is not needed, it's easier to deploy this standalone server somewhere and keep it running, and just clean the requests / mappings if needed before each test.

from wiremock.net.

phillee007 avatar phillee007 commented on July 30, 2024

from wiremock.net.

StefH avatar StefH commented on July 30, 2024

In some time I will release a new NuGet with more supported Admin-Interfaces.

Or do you have any more questions or change requests ? *You are actually the first user, so ll feedback is useful.)

from wiremock.net.

phillee007 avatar phillee007 commented on July 30, 2024

from wiremock.net.

StefH avatar StefH commented on July 30, 2024

Ah ok. You want to start a mock server which hardcodes the responses?

Actually I think that the http rest admin interface really makes the wiremock powerfull anf flexible for testing.

from wiremock.net.

phillee007 avatar phillee007 commented on July 30, 2024

from wiremock.net.

StefH avatar StefH commented on July 30, 2024

Correct. The admin interface is really usefull in automatic test scenarios.

For more detail on the admin interface, take a look at the wiki from this project here. (if you need a bit more, check also the original documentation on the java wiremock.org website

from wiremock.net.

StefH avatar StefH commented on July 30, 2024

Are you currently using the code from this project, or the NuGet ?

from wiremock.net.

phillee007 avatar phillee007 commented on July 30, 2024

from wiremock.net.

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.