Skip to content

Codecept is installed #516

@michahell

Description

@michahell

What are you trying to achieve?

get codecept to run, basically...

What do you get instead?

Provide console output if related. Use --verbose mode for more details.

Loading --
   [1] Starting recording promises
   Emitted | suite.before
   [1] Queued | hook WebDriverIO._beforeSuite()
 Don't stop me
   [2] Starting recording promises
   Emitted | test.before
   [2] Queued | hook WebDriverIO._before()
   Emitted | test.start ([object Object])
   [2] Queued | fire test.passed
   [2] Queued | finish test
   [2] Error | Error: connect ECONNREFUSED 127.0.0.1:4444
 > Error: connect ECONNREFUSED 127.0.0.1:4444
   [2] Stopping recording promises
   Emitted | test.passed ([object Object])
 ✓ OK in 40ms

   Emitted | test.after
   [2] Queued | hook WebDriverIO._after()
 test if the webapp finishes loading
   [3] Starting recording promises
   Emitted | test.before
   [3] Queued | hook WebDriverIO._before()
   Emitted | test.start ([object Object])
   Emitted | step.before (I am on page "http://localhost:3000/login")
   [3] Queued | amOnPage: "http://localhost:3000/login"
   Emitted | step.after (I am on page "http://localhost:3000/login")
   [3] Queued | return step result
   [3] Queued | Start new session
   Emitted | step.before (I dont see element "#todo-count")
   [3] Queued | dontSeeElement: "#todo-count"
   Emitted | step.after (I dont see element "#todo-count")
   [3] Queued | return step result
   [3] Queued | fire test.passed
   [3] Queued | finish test
   [3] Error | Error: connect ECONNREFUSED 127.0.0.1:4444
 > Error: connect ECONNREFUSED 127.0.0.1:4444
   [3] Stopping recording promises
   Emitted | step.start (I am on page "http://localhost:3000/login")
 • I am on page "http://localhost:3000/login"
   [3] Error | Error: A session id is required for this command but wasn't found in the response payload
   [3] Starting <teardown> session
   Emitted | test.failed ([object Object])
   [3] <teardown> Queued | hook WebDriverIO._failed()
   [3] <teardown> Stopping recording promises
 > Screenshot has been saved to /Users/michahell/ZIVVER/zivver-webapp/e2e/output/test_if_the_webapp_finishes_loading.failed.png
   [3] <teardown> Error | Error: A session id is required for this command but wasn't found in the response payload
 > Error: A session id is required for this command but wasn't found in the response payload
   [3] <teardown> Stopping recording promises

Provide test source code if related

Feature('Loading');

Scenario("Don't stop me", {timeout: 0}, (I) => {});

Scenario('test if the webapp finishes loading', (I) => {
	I.amOnPage('http://localhost:3000/login');
	// I.see('welcome');
	pause();
	I.dontSeeElement('#todo-count');
});

Details

  • CodeceptJS version: codeceptjs@0.6.3-pre
  • NodeJS Version: v7.10.0
  • Operating System: OSX 10.11.6
  • WebDriverIO: 4.8.0 (installed gobally)
  • Configuration file:
{
  "tests": "./e2e/*.spec.js",
  "timeout": 10000,
  "output": "./e2e/output",
  "helpers": {
    "WebDriverIO": {
      "url": "http://localhost:3000",
      "browser": "chrome"
    }
  },
  "include": {},
  "bootstrap": false,
  "mocha": {},
  "name": "zivver-webapp"
}
  1. getting codecept up and running seems to fail due to an ECONNREFUSED
  2. codecept is lying, it didn't save any screenshots at all

it seems to me that Selenium or webdriverIO doesn't work, but I read nowhere anything about first having to download and setup Selenium / webdriverIO first...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions