ctco / cukes

Cucumber DSL for testing RESTful Web Services
Apache License 2.0
112 stars 66 forks source link

[cukes-rest-loadrunner] Fails to generate LoadRunner scripts on async statement #6

Closed annapuskarjova closed 8 years ago

annapuskarjova commented 8 years ago
Feature: createContract

  Background:
    Given content type is "application/json"

  Scenario Outline: shouldCreateSimpleContract
    Given request body from file <contractFile>
    When the client performs POST request on api/contracts
    Then status code is 202

    And should wait at most 30 seconds with interval 1 seconds until property "status" equal to "SUCCEEDED"
    And let variable "NextLocation" equal to header "Location" value

    When the client performs GET request on {(NextLocation)}
    Then status code is 200
    And let variable "contractLink" equal to property "link.find{l->l.rel=='contract'}.href" value

    And the client performs GET request on {(contractLink)}
    Then status code is 200
    And response contains properties from file <contractFile>

  Examples:
    | contractFile                                          |
    | contracts/jsonFiles/contractMinimalAttributes.json    |
    | contracts/jsonFiles/treatyContractSpecialSymbols.json |
AlexeyBuzdin commented 8 years ago

Fixed in cukes-rest-0.2.7. Currently all async calls are converted to sync Loadrunner calls.