Comments (11)
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.
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.
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.
from wiremock.net.
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.
from wiremock.net.
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.
from wiremock.net.
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.
Are you currently using the code from this project, or the NuGet ?
from wiremock.net.
from wiremock.net.
Related Issues (20)
- How does WithBody work with request matchers? HOT 5
- Save proxied requests during an XUnit integration test? HOT 7
- Wiremock.net (C#) how to get a PDF from a Request body (form-data ) HOT 2
- External Mapping Storage HOT 21
- Dynamic http status code? HOT 4
- Split WireMock into multiple nuget packages depending on features HOT 5
- Proxying always goes to the root HOT 1
- FluentAssertions extensions do not filter headers correctly HOT 2
- FluentAssertions extensions are not open for extension HOT 2
- Support for multipart formdata in RequestMessage HOT 8
- ProtoBufMatcher not working when proto package name contains dots HOT 2
- ProtoBufMatcher import in proto not working HOT 4
- Use mocked response data in Webhook body data HOT 3
- Compilation Error due to 'MessageOptions' Type Conflict between 'Google.Protobuf' and 'WireMock.Net' HOT 4
- FluentAssertions - Actual body is not displayed in error message when using Json Body HOT 6
- Did the ThrowExceptionWhenMatcherFails option got removed from 1.5.16 to 1.5.51? HOT 4
- Regex support for JsonMatcher HOT 10
- Wiremock not working with NUnit3 in .Net Framework 4.6.1 after Wiremock 1.5.47 HOT 3
- Feature: support multipart body in `IRequestMessage` HOT 6
- FindLogEntries present in WireMockServer but not IWireMockServer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wiremock.net.