Comments (7)
I see the same issue as well.
from gauge-python.
@thelettermegan @brywiser It's working as expected for me. Can you replicate this issue on a sample project? If so, please update the issue with specification and implementation text.
Here's my working example
Spec
Spec
====
Scenario
--------
* put
* get
Impl
from getgauge.python import step, DataStoreFactory
@step('put')
def put():
DataStoreFactory.scenario_data_store().put('a', 'b')
@step('get')
def get():
assert DataStoreFactory.scenario_data_store().get('a') == 'b'
from gauge-python.
I was able to used the scenario_data_store().get inside the step function, but not when the step function calls a method that contains the scenario_data_store()
from gauge-python.
When we implement the scenario data store using the sample setup you mention above. It works as expected. However, I use the suite_data_store and it works outside of the step functions. So for example, we write our code in a page object pattern. I call a function from the step implementation that is in another class than the actual step. And that works, when we tried that with the scenario store, it didn't work as we expected. Does that make sense? I can put some sample code up if needed.
from gauge-python.
@thelettermegan @brywiser It'd really help if you could provide a sample project or code snippets to replicate this issue.
from gauge-python.
@kashishm Sorry for the delay. We are still working through getting you some sample code now. Sorry! We got hung up in some other work here!
from gauge-python.
Hey Kashishm, Thanks for waiting on this! I'm working with a large page object model framework and tried to replicate it here: https://github.com/thelettermegan/gauge_dataStore_keyError
Ironically, I was unable to replicate the bug! I'm going to close this now, and if I can figure out what exactly was the issue I'll open a new one.
Thanks again for your patience!!!
from gauge-python.
Related Issues (20)
- Python step implementations not found in VSCode devcontainer HOT 4
- [SOS]When i update getgauge==0.3.14,it does not work well(Chinease support is unfriendly) HOT 4
- Exception while loading step implementations from file not logged HOT 2
- File "check_and_install_getgauge.py", line 5, ImportError: No module named pkg_resources with Python 3.7 HOT 8
- when gauge python upgrade to 0.3.15, error got an unexpected token STAR here HOT 3
- Python runner doesn't exit when gauge gets SIGINT
- load_files method taking 40+ seconds HOT 1
- Latest version of 'protobuf' causes errors on start
- Screenshot feature is not working as expected HOT 2
- Getting error when I provide the table at the scenario & step level HOT 9
- All tests are shown in test explorer but it's not grouped based on the base package name
- plugin 0.3.17 can not support Chinese HOT 1
- The statistics should be consistent in console and reports with table-driven-scenario feature enabled HOT 1
- VSCode debug mode problem with Python 3.10 HOT 2
- Not possible to debug external Python code HOT 1
- Python 3.10 feature "Structural Pattern Matching" not supported
- Gauge cant install the plugin ' ' [PyCharm Community][Gauge 1.6.3] HOT 6
- Executing out of the box example gauge-python scripts seems to display errors on the console
- Extension of VS code doesn't run test case by my local ./venv HOT 3
- Warning log: ModuleNotFoundError: No module named 'pkg_resources' 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 gauge-python.