0
的getStatus響應我在貝哈特測試得到一個狀態響應,但我有此錯誤:與貝哈特和selenium2
這是我的情景:
Feature: Google
@javascript
Scenario: Search
Given I am on the homepage
When I go to "http://stackoverflow.com"
Then I wait 3 seconds
And the response status code should be 200
編號pH:
/**
* @Then the response status code should be :arg1
*/
public function theResponseStatusCodeShouldBe($arg1)
{
if ((string)$this->_response->getStatusCode() !== $arg1) {
var_dump('HTTP code does not match '.$httpStatus.' (actual: '.$this->_response->getStatusCode().')');
}
}
如何解決此錯誤?