
Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
SendGrid
How to send the query
Description
<sendgrid> - command which is responsible for sending the SendGrid queries in testing scenarios
Required parameters for SendGrid command:
comment
alias - unique name of the API you configured in your
integration.xmlfile
Optional parameters:
condition - the condition according to which this test step will or won't be executed
threshold - parameter, that sets the maximum allowed test step execution time
Available SendGrid methods:
GET - this method retrieves email statistics from SendGrid’s API.
POST - this method sends an email using SendGrid’s API.
PUT - this method updates an existing contact on SendGrid’s contact list.
DELETE - this method deletes an email template from SendGrid.
PATCH - this method updates an existing email template on SendGrid.
Required parameters for HTTP methods:
endpoint - endpoint for your query
response
code - expected response code
file - file with the expected result for a particular query
header
name - name of header
data - data which header has to contain
header
name - name of header
data - data which header has to contain
body (for those methods, which require body)
from
file - json file that contains body of your request. This file must be named "request_N.json", where N is number of your test step
param
name - name of parameter
data - data which parameter has to contain
multipart
file
name - key
fileName - value
contentType
raw - you can put your request body just as raw in scenario without file
queryParam
key
value
SendGrid example:
Copyright © Knubisoft