Zerocode TDD Docs
AboutStart ↗
GitHubGitHub
  • Introduction
    • Getting Started
    • User Journey Automation - CRUD Operations
    • Pre‐requisites and System Requirements
    • File Upload Using Http API
    • File Upload Simple Example
    • File Upload Example Using Form Data
    • Automated Testing With Kotlin Application
    • Automating Kafka Test Scenarios with Protobuff Messages
    • Bringing up Kafka Single Node or Muti Node Docker Containers
    • Consume Raw Message
    • Consume Raw Message
    • Kafka Testing Introduction
    • Kafka Consume the Latest Message or N Latest Messages
    • Kafka Records with Headers
    • Produce Json Message
    • Produce Raw Message
    • Producing and Consuming Xml Message to and from a Kafka Topic
    • Db SQL Executor
    • Db SQL Executor Csv Loader
    • Db SQL Executor Driver Compatibility
    • Sample Db SQL Executor
    • How to Make Performance Testing Part of CI Build
    • Junit5 Jupiter Parallel Load Extension
    • Kotlin Performance Testing
    • Load or Performance Testing (Ide Based)
    • Multiple User with Each Different Load for Performance Testing
    • How to Pass Custom Security Token into the Request Header
    • Soap Method Invocation through Corporate Proxy
    • Array Assertions Made Easy Element Finder
    • Charset Utf 8 or Utf 16 or Utf 32 Etc in the HTTP Response
    • External Json File as Reusable Content
    • Generating Current Date and Datetime during the Integration Testing
    • HTTP Max Timeout or Implicit Wait
    • Masking Secrets and Passwords
    • Mocking End Points via Wiremock(simple and Flexible)
    • Oneof Assertions
    • Parameterized Testing from Csv Rows
    • Parameterized Testing from List of Values
    • Passing Bare String Json as Body or Payload to the Target API
    • Placeholders Usage and Limits
    • Random Number Gen
    • Reading System Properties and Environment Variables
    • Reusing Single and Multiple Step Files
    • Soap Method Validation with Xml Input
    • Sort Records Consumed from Kafka Topic or API and Assert
    • Strict Mode Payload Comparison
    • String Matchers Regex and More
    • Using Variables in Test Scenarios
    • Validators and Matchers
    • When Json Path Matching Returns Value or Values as an Array
    • Yaml Dsl for Test Scenarios
    • Zerocode Retry Step during API Test Automation
    • Application X Www Form Urlencoded Urlencoded with Keyvalue Params
    • Forked Builds Failing Due to Docker Hub Rate Limiting
    • Qna Does It Support HTTPS Connections
    • Qna How to Unit Integration Testing of Rest API Written with Spring
    • Qna How to Assert an Array in the Response with Size Greater than or Lesser Than
    • Qna How to Assert Custom Headers of the Response
    • Qna How to Invoke Post Apis
    • Qna How to Pass Headers Auth Info Auth Headers in the Headers Apis
    • Qna How to Test Your Apis Easily via Simple Json Steps
    • Qna Is There Anyway to Generate Uuid or an Random Id
    • Qna Only Rest or Is It Possible to Test Soap API Call
    • Zerocode Hello World Projects
    • Zerocode Tdd Spec
    • Read Our Blogs
    • Sample Db SQL Executor
    • Zerocode Archetype to Auto Generate a Maven Testing Project
    • Automation Tests for Zerocode Lib Itself
    • Guidelines for Raising Issues
    • Powered by Open Source Software
    • Zerocode Collaborators
    • Zerocode Release Frequency and Schedule
    • Gradle Passing System Properties Switching Environments
    • Gradle Build for Junit Smart Chart and Csv Reports
    • Running in CI CD Piepeline after You Have Written All the Tests
    • Suite Runner Vs Package Runner
    • Switching Environment to CI Dit Sit Uat for Test Suite or Regression Pack

On This Page

  • How to Send In The Body:
  • How to Send null In The Body:
  • DO NOT
Question? Give us feedback →Edit this page
AssertionsPassing Bare String Json as Body or Payload to the Target API

The following is a valid JSON according to W3 standards.

     "CUST_112233"

How to Send In The Body:

     "body": "\"CUST_112233\""

How to Send null In The Body:

     "body": "null"

DO NOT

     "body": "\"null\""  <--- This goes as String "null" to the target API
Parameterized Testing from List of ValuesPlaceholders Usage and Limits

Zerocode TDD Docs