Giter Site home page Giter Site logo

Comments (2)

jenisys avatar jenisys commented on June 13, 2024

When you are getting an NotImplementedError, you may have encountered a not-implemented step definition (pasted from a snippet).

  • Provide a concrete, simple example and show the output that you are seeing (or the relevant part of it)
  • The default matcher is parse. Have you changed it somewhere with use_step_matcher()
  • Run behave with the pretty formatter and verify the file locations on your step(s) that your steps are actually used (where Number type is used)
  • You may have to define the environment variable via export PYTHONPATH=".:${PWD}:${PYTHONPATH}" (for shell: sh, bash, ...) to include your current working directory into you Python search-path (to find your steps below the working directory)

EXAMPLE: behave.example features/tutorial10*.feature

$ behave -f pretty features/tutorial10_step_usertype.feature
Feature: User-Defined Datatype as Step Parameter (tutorial10)   # features/tutorial10_step_usertype.feature:1
  As a test writer
  ...

  Scenario Outline: Calculator -- @1.1   # features/tutorial10_step_usertype.feature:14
    Given I have a calculator            # features/steps/step_tutorial10.py:44
    When I add "1" and "1"               # features/steps/step_tutorial10.py:48
    Then the calculator returns "2"      # features/steps/step_tutorial10.py:54

SEE ALSO:

from behave.example.

mglowinski93 avatar mglowinski93 commented on June 13, 2024

@jenisys thx for answer.
In my case problem was caused by step matcher, which was set to re. After i removed it, everything started working just fine.
Ticket can be closed:)

from behave.example.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.