Sha256: 5d407a68a8c7abc1050d6ae578598fd4deb7bfe661cac5bac03be38283a22ce2

Contents?: true

Size: 1.82 KB

Versions: 2

Compression:

Stored size: 1.82 KB

Contents

Feature: Create a basic rest client that can get, put, post, and delete

@extended @get @print
Scenario: client rest Get
  Given I have a web service
  And I have "GET" service for "/test" as follows
    """
    {'Answer': 'What did you expect?'}
    """
  And I am a rest client
# And I pause
  When I "GET" from the web service
  Then I receive the expected message
  And the response prints like the following
  """
CODE = 200
MESSAGE = 
BODY = {'Answer': 'What did you expect?'}
  """


@put @extended @print
Scenario: client rest Put
  Given I have a web service
  And I have "PUT" service for "/test" as follows
    """
    {'Answer': 'What did you expect?'}
    """
  And I am a rest client
  When I "PUT" to the web service with the following
    """
    {'Answer': 'What did you expect?'}
    """
  Then I receive the expected message
  And the response prints like the following
  """
CODE = 200
MESSAGE = 
BODY = {'Answer': 'What did you expect?'}
  """

@post @extended @print
Scenario: client rest Post
  Given I have a web service
  And I have "POST" service for "/test" as follows
    """
    {'Answer': 'What did you expect?'}
    """
  And I am a rest client
  When I "POST" to the web service with the following
    """
    {'Answer': 'What did you expect?'}
    """
  Then I receive the expected message
  And the response prints like the following
  """
CODE = 200
MESSAGE = 
BODY = {'Answer': 'What did you expect?'}
  """

@delete @extended @print
Scenario: client rest Delete
  Given I have a web service
  And I have "DELETE" service for "/test" as follows
    """
    {'Answer': 'What did you expect?'}
    """
  And I am a rest client
  When I "DELETE" from the web service
  Then I receive the expected message
  And the response prints like the following
  """
CODE = 200
MESSAGE = 
BODY = {'Answer': 'What did you expect?'}
  """

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rest_baby-0.2 features/print_response.feature
rest_baby-0.1 features/print_response.feature