Questions tagged [mockserver]

What is MockServer

MockServer can be used for mocking any system you integrate with via HTTP or HTTPS (i.e. services, web sites, etc).

MockServer can:

  • return a "mock" response when a request matches an expectation

  • forward a request when the request matches an expectation (i.e. a dynamic port forwarding proxy)

  • execute a callback when a request matches an expectation, allowing the response to be created dynamically

  • verify requests have been sent (i.e. as a test assertion)

What is MockServer Proxy

MockServer Proxy can be used for transparently recording all requests sent by a system (i.e. an application or set of applications).

MockServer Proxy can:

  • proxy all requests using any of the following proxying methods:

    • Port Forwarding
    • Web Proxying (i.e. HTTP proxy)
    • HTTPS Tunneling Proxying (using HTTP CONNECT)
    • SOCKS Proxying (i.e. dynamic port forwarding)
  • verify requests have been sent (i.e. in a test assertion)
  • record requests and responses to analyse how a system behaves
175 questions
1
vote
1 answer

How to provide mock data for Apiary Mock Server?

apiary service provides Mock Server, that is generated based on API description written either in API Blueprint or Swagger syntax. In my API description I have an action returning collection of data. This collection is large, so there is filtering…
EvAlex
  • 2,888
  • 1
  • 20
  • 24
1
vote
2 answers

To display data from mock server into chartjs using ember

I have data coming from mock-server, which I can view using ember inspector. I need to display these data in bar chart using chartjs. This is my code from component - chart.js import Ember from 'ember'; export default Ember.Component.extend({ …
1
vote
0 answers

Is there a way to trap and forward network requests from an iOS app in Java automation code?

Is there a way to intercept network requests emanating from an iOS app in Java (Appium) automation code? Basically I want to mock the server calls with a local server but my requests are protobuf requests so I am unable to use a library like…
Paddy
  • 3,472
  • 5
  • 29
  • 48
1
vote
1 answer

MockServer analysis with Maven plugin - output as Java

I'd like to use MockServer analysis in the dumpToLogAsJava mode to have it print java-formatted expectations of a HTTP service I have. Moreover I'd like to use mockserver-maven-plugin for it. So far I was able to get a json-formatted output like…
Jakub Bochenski
  • 3,113
  • 4
  • 33
  • 61
1
vote
0 answers

Request with namespace not accepted by SOAPUI mockservice

Could someone help in ignoring the wsdl validation while receiving in SOAPUI. Actually I have two method of same request Method 1:Generated out of SOAPUI using WSDL --------
jag m
  • 13
  • 5
0
votes
0 answers

TestNG + MockServer Running two test suite sequentially

I have two test suite. Project is gradle project which has two module. Each of them has their own unit tests. I used mock server (https://www.mock-server.com/) to mock server endpoints. If I run each suite separately they works. But when I do a…
MAK Ripon
  • 1,065
  • 4
  • 14
  • 27
0
votes
0 answers

Whole Domain getting marked as malicious due to some bad files uploaded on mock/file hosting service

We offer a cloud based mock/file server as a service for debugging frontend apps. All the mocks get a url something like this username.xyz.com/endpoint xyz.com/endpoint?username=123 Due to some bad actors uploading some fishy files, our domain…
Sahil Gupta
  • 430
  • 5
  • 12
0
votes
0 answers

mock a request in postman

I am trying to mock the server on Postman with a specific type of request. request format GET : /v1/employee/{empID} here empID is dynamic but still want to mock this irrespective of empID. I need to have the same response (like some dummy data) for…
Abhishek kumar
  • 129
  • 1
  • 8
0
votes
0 answers

Any suggestions for a mockserver tool to handle crossplane provider requests with expectations in order?

suitable mockserver tool for crossplane provider integration tests I'm looking for a mockserver tool to mock crossplane providers. Essentially I need to match expectations in order. This means that: First Get request for item A respond with 404 not…
dhouha
  • 1
0
votes
0 answers

How to initialize mockserver with multiple json files with helm?

I am trying to load multiple json files in with helm into the mockserver from the configmap. For example there are 2 files: files/data1.json files/data2.json According to the docs it should be possible to do this with Global Patterns. I have tried…
0
votes
0 answers

Publicly available Postman collection with query parameter for locales

I need some advice about how to create publicly available Postman collection with query parameter. The data would be fix, something like: { "home": { "title": "Hello" } } and the url would be created by Postman, e.g.…
levipadre
  • 569
  • 7
  • 31
0
votes
0 answers

Mockserver is crushing when running on minikube docker M1

I am running minikube on my M1 machine i.e. arm64 arch The minikunbe start command is: minikube start -p foobar --kubernetes-version=v1.23.16 --container-runtime=docker --vm=true --network socker_vmnet --cpus 4 --memory 10g When pulling mockserver…
froy001
  • 614
  • 7
  • 21
0
votes
1 answer

Mockserver cannot connect to any port

Im using a mockserver to test api requests. The mockserver wont start. This is my code @SpringBootTest class RestApiMetaDataApplicationTests { private ClientAndServer mockServer; @BeforeClass public void startServer() throws Exception…
0
votes
1 answer

Wiremock dependency not importing classes

I am trying to use Wiremock for my spring api. I am using Java 17. I am using this dependency com.github.tomakehurst wiremock-standalone 2.27.2
0
votes
0 answers

Retrieve requests sent to Mockserver

I'm using mock server to mock requests in an integration test. I can create the mock requests and get the proper answers. My use case requires the backend application to generate a zip file with content dependending on the entry and some…
Hugo Dias
  • 341
  • 3
  • 13