TechBrij

  • Home
  • Categories
  • About
  • Projects

Tag: unit testing

Validating JSON with JSON Schema using Postman, AJV and BrijPad

Do you want to validate JSON response of your application REST APIs? For a large JSON, it is easy to use JSON schema for validation. In this post, we will see how to validate JSON response with JSON Schema in Postman using ajv validator. BrijPad – Online tool allows you to generate and validate JSON Schema. We will use it to generate Schema.

Read Also: Inspect JSON Easily with BrijPad

Unit Testing On Smart Contract with Truffle [Full Stack Ethereum Dapp Part-3]

In Part-2, we deployed our smart contract on local private Ethereum blockchain. Now, we will test out our Solidity smart contracts behaviour with unit testing with Truffle which uses Chai and Mocha frameworks. In web development lifecycle, unit testing is needed to do to ensure the code is working the way as it is expected. So let’s start it by creating a test file by running following command:

People Also Like

  • Setup Dev Environment with a Local Blockchain and Deploy Smart Contract [Full Stack Ethereum Dapp Part-2]
  • Creating Web App for Smart Contract [Full Stack Ethereum Dapp Part-4]
  • Hello World Smart Contract In Solidity [Full Stack Ethereum Dapp Part-1]
  • Deploying Smart Contract and Node.js App [Full Stack Ethereum Dapp Part-5]
  • Generic Repository and Unit of Work Pattern, Entity Framework, Unit Testing, Autofac IoC Container and ASP.NET MVC [Part 3]

Follow Us

  • 2100+fansLike
  • 500+subscribersSubscribe
  • 200+followersSubscribe
  • 250+followersFollow

Subscribe via Email

Get updates when new tutorials are published on TechBrij. Enter your email to enroll.

Categories

  • JavaScript
  • Node.js
  • Python
  • The Best WordPress Plugins
  • ASP.NET
  • ASP.NET MVC
  • ASP.NET Core
  • AngularJS
  • HTML,CSS
  • ASP.NET MVC Cheat Sheet
  • Basic Ubuntu Linux Commands
  • Projects
  • Cheat-sheets (Notes)
  • Online Tools

Tweets Follow @TwitterDev

Tweets by techbrij
About | Privacy Policy | Contact | Topics | Hire Me
Copyright © 2010-2023 TechBrij. All Rights Reserved.

Adblock detected!

We have detected that you are using adblock in your browser to disable advertising, but it also blocks useful features of our website.

Please disable your ad blocker for the best site experience.