Automation Rhapsody

Posts with tag: API Automation

.NET Core integration testing and mock dependencies

How to do integration testing on .NET Core application and stub or mock some inconvenient dependencies.

Partial JSON deserialize by JsonPath with Json.NET

Code examples how to deserialize only part of a big JSON file by JsonPath when using Newtonsoft Json.NET.

Soft assertions for C# unit testing frameworks (MSTest, NUnit, xUnit.net)

Code example of very easy and useful custom implementation of soft assertions in C# unit testing frameworks such as MSTest, NUnit or xUnit.net.

Build a Dropwizard project with Gradle

Code examples how to create Dropwizard project with Gradle.

Soft assertions that do not fail JUnit test

Code examples how to use assertions that do not fail the unit test immediately.

Mock/Stub REST API with WireMock for better unit testing

Examples how to use WireMock to stub (mock also is possible as a term) REST API in order make better unit testing.

Create simple REST API client using Jersey

Code examples how to create REST API client using Jersey.

Introduction to Postman with examples

This post is demonstrating different Postman features with examples.

Implement secure API authentication over HTTP with Dropwizard

Reference implementation on suggested in "How to implement secure REST API authentication over HTTP" post authentication mechanism.

How to implement secure REST API authentication over HTTP

How to implement secure API authentication even over HTTP.

Retry JUnit failed tests immediately

How to retry failed JUnit tests immediately and if a retry is OK then report test as passed.

Use JUnit rules to debug failed API tests

What are JUnit rules and how to use them to improve debugging of failed API tests.

JPS alternative for Dropwizard - Servlet with Apache Velocity template engine

How to create a web application with Dropwizard with Servlet and Apache Velocity template engine since JSP is not supported.

Send SOAP request over HTTPS without valid certificates

How to send SOAP request over HTTPS in Java without generating and installing certificates. NB: This MUST not be used for production code!

REST performance problems with Dropwizard and Jersey JAXB provider

Dropwizard's performance highly degrades when using REST with XML caused by Jersey's Abstract JAXB provider. Solution is to inject your own JAXB provider.

Build a RESTful stub server with Dropwizard

How to make a RESTful server that can be used for stub during testing.

FIX messages simulator

General thoughts how to test FIX messages with a FIX simulator.