Mongo

Type: NoSQL Database

Description: Document-oriented NoSQL database, storing data in flexible, JSON-like BSON documents. It is designed for scalability and flexibility, making it suitable for handling diverse and evolving data structures.

How to send the query

Description:

<mongo> – the command which is responsible for sending the queries to Mongo DB in testing scenarios

Required parameters:

  1. comment

  2. alias - unique name of the DB you configured in your integration.xml file

  3. file - specifies the expected file name

  4. query - contains the Mongo DB query

Optional parameters :

  1. condition - condition according to which this test step will or won't be executed

  2. threshold - parameter, where the maximum execution time of the command is defined (milliseconds), if the execution time is exceeded, the step will be defined as failed

<mongo comment="Get all user's from system" alias="ALIAS" file="expected_1.json"> <query>SELECT * FROM t_user</query> </mongo>