tily/barthes

View on GitHub
example/q3_spec.json

Summary

Maintainability
Test Coverage
["feature", "Q3", [
  ["scenario", "CreateQueue", [
    ["action", "create queue with CreateQueue API", {
      "params": {
        "Action": "CreateQueue",
        "QueueName": "tilytest"
      },
      "expectations": [
        {
          "type": "response_code",
          "value": 200
        },
        {
          "type": "xpath_value",
          "xpath": "//CreateQueueResponse/CreateQueueResult/QueueUrl",
          "value": "http://q3-global.herokuapp.com/*/tilytest"
        }
      ]
    }],
    ["action", "check if that queue is created with ListQueues API", {
      "params": {
        "Action": "ListQueues"
      },
      "expectations": [
        {
          "type": "response_code",
          "value": 200
        },
        {
          "type": "xpath_size",
          "xpath": "ListQueuesResponse/ListQueuesResult/QueueUrl[text()='http://q3-global.herokuapp.com/*/tilytest']",
          "value": 1
        }
      ]
    }],
    ["action", "send message to that queue with SendMessage API", {
      "params": {
        "Action": "SendMessage",
        "MessageBody": "hello barthes"
      },
      "env": {
        "path": "/*/tilytest",
        "tags": ["queue"]
      },
      "expectations": [
        {
          "type": "response_code",
          "value": 200
        }
      ]
    }],
    ["action", "receive message from that queue with ReceiveMessage API", {
      "params": {
        "Action": "ReceiveMessage"
      },
      "env": {
        "path": "/*/tilytest",
        "tags": ["queue"]
      },
      "expectations": [
        {
          "type": "response_code",
          "value": 200
        }
      ]
    }]
  ]]
]]