This repository was archived by the owner on Dec 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
This repository was archived by the owner on Dec 13, 2023. It is now read-only.
JSON decoding of remote response failed. Error code: 4 The response: 'Missing sessionId' #4
Copy link
Copy link
Open
Description
~/projects/selenium-php-behat (master)$ bin/behat -c config/single.conf.yml
Feature: Login to page
A login attempt with valid credentials
Should be accepted
And a login attempt with bad credentials
Should be rejected
Scenario: Login with bad credentials # /Users/bartonhammond/projects/selenium-php-behat/features/login.feature:7
Given I go to "https://crossbrowsertesting.github.io/login-form.html" # FeatureContext::iGoTo()
JSON decoding of remote response failed.
Error code: 4
The response: 'Missing sessionId'
When I fill in "#username" with "bhammond@wisnet.com" # FeatureContext::iFillInWith()
And I fill in "#password" with "xxxxxx" # FeatureContext::iFillInWith()
And I press ".form-actions > button" # FeatureContext::iPress()
Then I should see ".alert-danger" say "Username or password is incorrect" # FeatureContext::iShouldSeeSay()
Scenario: Login with good credentials # /Users/bartonhammond/projects/selenium-php-behat/features/login.feature:14
Given I go to "https://crossbrowsertesting.github.io/login-form.html" # FeatureContext::iGoTo()
JSON decoding of remote response failed.
Error code: 4
The response: 'Missing sessionId'
When I fill in "#username" with "bhammond@wisnet.com" # FeatureContext::iFillInWith()
And I fill in "#password" with "yyyyyyyy" # FeatureContext::iFillInWith()
And I press ".form-actions > button" # FeatureContext::iPress()
Then I should see "#logged-in-message>p" say "You are now logged in!" # FeatureContext::iShouldSeeSay()
[WebDriverException]
Exception has been thrown in "afterFeature" hook, defined in FeatureContext::tearDown()
JSON decoding of remote response failed.
Error code: 4
The response: 'Missing sessionId'
behat [--init] [-f|--format="..."] [--out="..."] [--lang="..."] [--[no-]ansi] [--[no-]time] [--[no-]paths] [--[no-]snippets] [--[no-]snippets-paths] [--[no-]multiline] [--[no-]expand] [--story-syntax] [-d|--definitions="..."] [--name="..."] [--tags="..."] [--cache="..."] [--strict] [--dry-run] [--stop-on-failure] [--rerun="..."] [--append-snippets] [--append-to="..."] [features]
Metadata
Metadata
Assignees
Labels
No labels