Comments (2)
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 withuse_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.
@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)
- pavement.py missing 'import sys' (Version 1.2.4dev) HOT 1
- NameError: name 'behave_run' is not defined HOT 2
- Dependency Dashboard
- Error during run test with paver HOT 1
- Command Line Option for Generation Python Template Code? HOT 1
- error in behave setup command: use_2to3 is invalid.
- @skip not a predefined tag? HOT 2
- Not able to get the proper xml report using --junit tag HOT 1
- Windows Support Issue when called "invoke test" after initial setup HOT 1
- How do we use behave with TestInfra? HOT 1
- Line 23,24 & 25 causes an error. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from behave.example.