All Projects → NaturalIntelligence → Stubmatic

NaturalIntelligence / Stubmatic

Licence: other
Mock HTTP calls without coding. Designed specially for testing and testers.

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Stubmatic

stub-server
Stub server for REST APIs
Stars: ✭ 14 (-88.14%)
Mutual labels:  mock, stub, fake, stub-server
cxf-spring-boot-starter
Enterprise & production ready SOAP webservices powered by Spring Boot & Apache CXF
Stars: ✭ 129 (+9.32%)
Mutual labels:  soap, soap-web-services, soap-services
Beetlex
high performance dotnet core socket tcp communication components, support TLS, HTTP, HTTPS, WebSocket, RPC, Redis protocols, custom protocols and 1M connections problem solution
Stars: ✭ 802 (+579.66%)
Mutual labels:  ssl, tcp, https
Hp Socket
High Performance TCP/UDP/HTTP Communication Component
Stars: ✭ 4,420 (+3645.76%)
Mutual labels:  ssl, tcp, https
ts-mock-imports
Intuitive mocking library for Typescript class imports
Stars: ✭ 103 (-12.71%)
Mutual labels:  mock, stub, fake
Python Mocket
a socket mock framework - for all kinds of socket animals, web-clients included
Stars: ✭ 209 (+77.12%)
Mutual labels:  mock, ssl, https
Co
Art of C++. Flag, logging, unit-test, json, go-style coroutine and more.
Stars: ✭ 2,264 (+1818.64%)
Mutual labels:  ssl, tcp, https
Impersonator
Ruby library to record and replay object interactions
Stars: ✭ 100 (-15.25%)
Mutual labels:  mock, stub, fake
aem-stubs
Tool for providing sample data for AEM applications in a simple and flexible way. Stubbing server on AEM, no separate needed.
Stars: ✭ 40 (-66.1%)
Mutual labels:  mock, stub, stub-server
FuckDPI V2
FuckDPIv2 can fuck the Korean Government's internet censorship by fragmenting SSL ClientHello.
Stars: ✭ 44 (-62.71%)
Mutual labels:  ssl, tcp, https
wiresham
Simple TCP service mocking tool for replaying https://www.wireshark.org and http://www.tcpdump.org captured service traffic
Stars: ✭ 44 (-62.71%)
Mutual labels:  mock, tcp
tlstools
🔐 CLI tool to analyze, troubleshoot or inspect SSL certificates, requests or keys.
Stars: ✭ 45 (-61.86%)
Mutual labels:  ssl, https
sslcontext-kickstart
🔐 A lightweight high level library for configuring a http client or server based on SSLContext or other properties such as TrustManager, KeyManager or Trusted Certificates to communicate over SSL TLS for one way authentication or two way authentication provided by the SSLFactory. Support for Java, Scala and Kotlin based clients with examples. Av…
Stars: ✭ 295 (+150%)
Mutual labels:  ssl, https
TLS-Redirection
TLS Redirection
Stars: ✭ 109 (-7.63%)
Mutual labels:  ssl, https
node-mock-examples
Examples of tests that mock Node system APIs: fs, http, child_process, timers
Stars: ✭ 38 (-67.8%)
Mutual labels:  mock, stub
FireMock
Mock and stub HTTP requests. Test your apps with fake data and files responses.
Stars: ✭ 25 (-78.81%)
Mutual labels:  mock, stub
fakey-json
This is a utility for mocking json data that pretends the api response data with JSON format.
Stars: ✭ 27 (-77.12%)
Mutual labels:  mock, fake
Faker.Portable
C# faked data generation for testing and prototyping purpose.
Stars: ✭ 12 (-89.83%)
Mutual labels:  stub, fake
Java-Proxy-Server
This is a simple HTTP/HTTPS proxy server written in Java
Stars: ✭ 149 (+26.27%)
Mutual labels:  ssl, https
Mockaco
🐵 HTTP mock server, useful to stub services and simulate dynamic API responses, leveraging ASP.NET Core features, built-in fake data generation and pure C# scripting
Stars: ✭ 213 (+80.51%)
Mutual labels:  mock, fake

Stubmatic

Mock HTTP calls without coding. Designed specially for testing and testers.

NPM quality Travis ci Build Status Gitter Known Vulnerabilities Coverage Status

Stubmatic donate button

Stubmatic logo

  1. Installation : $npm install stubmatic -g
  2. Set up repo : $stubmatic init [repo-name]
  3. Start server : $stubmatic [-d <repo-name>]
  4. Help : $stubmatic --help

Important links : Video Tutorial, Wiki, NPM, Demo application, issues, changelogs Stubmatic donate button

Users

Main features

  • Mock HTTP(s) calls. (Hence can mock REST/SOAP web services)
  • Inspect HTTP calls from CLI or log them for more detail.
  • No code. Designed specially for testing and testers.
  • Mock messagepack or Nimn (निम्न) response easily. Write in JSON parse in desirable format.
  • Support SSL certificates.
  • Optional configuration
  • Dynamic response
    • Use Regular Expressions to match a request, capture some part of the request, to decide response file at runtime, to change contents of response at runtime etc.
    • Use Expressions (functions and markers) to display dynamic dates, random number etc.
    • Devide your response into multiple files (called dumps) for readability, reusability, and consistency.
    • Create a response skeleton with DB sets and fill data as per matched request.
    • Delay response for fixed or random time.
  • Send response as a stream (downloadable file)
  • Compress response automatically.
  • Route requests to other server using proxy.
  • Memory and CPU efficient
  • Ready to be used in performance environment
  • And much more like short notations, multiple mapping files, file strategy etc.

Configuration

To install stubmatic, you need to install nodejs and npm first. It is recommanded to be on latest version of both. npm is bundeled with nodejs. Now follow above commands to install stubmatic and to set up a repo.

How to start

Stubmatic works on request response mappings specified in a yaml file. Response contents can be read from body or file attribute of a maping.

-  request:
      url: /stubs/(admin|staff|customer|security)/([0-9]+)/2

   response:
      body: >
        multiple line response
        another line

When a request reaches to stubmatic server, it matches the request against all mappings. Whichever mapping matches first(top to bottom), will be used to serve the response. A complete response can be built with multiple files. It can also have some placeholder to show dynamic data, like date, or some random number or some part from request itself. Stubmatic first process and build complete response then respond back to any HTTP(s) request.

Using regular expression, single mapping can be used to match multiple requests and serve response from different files.

Sample SOAP request mapping

-  request:
     method: POST
     url: /soap-simulator/services/ServiceName
     post: actionName[\s\S]*mobile.([0-9]+)
  response:
     headers:
           content-type: text/xml
     strategy: "first-found"
     files: ["stubs/<% post.1 %>/response.xml","stubs/ServiceName/actionName/default.xml"]

Sample REST request mapping

-  request:
     method: GET
     url: /rest-simulator/services/ServiceName/actionName/([0-9]+)
  response:
     headers:
           content-type: text/xml
     strategy: "first-found"
     files: ["stubs/<% url.1 %>/response.xml","stubs/ServiceName/actionName/default.xml"]

Our other projects and research you must try

  • BigBit standard :
    • Single text encoding to replace UTF-8, UTF-16, UTF-32 and more with less memory.
    • Single Numeric datatype alternative of integer, float, double, long, decimal and more without precision loss.
  • Cytorus: Now be specific and flexible while running E2E tests.
    • Run tests only for a particular User Story
    • Run tests for a route or from a route
    • Customizable reporting
    • Central dashboard for better monitoring
  • imglab : Web based tool to label images for object. So that they can be used to train dlib or other object detectors. You can integrate 3rd party libraries for fast labeling.

Supporters

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

[Become a sponsor] Support this project by becoming a sponsor. Your logo will show up here with a link to your website. Please also share your detail so we can thankyou on SocialMedia.

Helpful articles and tutorials

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].