Open yinzhenzhixin opened 3 years ago
I tried to uninstall gauge, python, but no luck. I also confirmed that the timeout values have been predefined in the gauge.properties. It's very despaired since the issue blocks any tests running on my side, could it be possible to give it a look?
As I looked into the logs, looks like there are something wrong with my python scripts, because there is a sign in the log '[python] [CRITICAL]'. However, where is the detailed log and stacktrace for the error? I've no idea how to figure it out. Debug is not working as well
This might be a silly question, but do you have all the necessary import statements related to gauge? If yes, are you sure your script doesn't have any bugs/typos? The problem is most likely to do with your customer.py
file. I had the same error and I had a typo in my import statement. Fixed it and it worked fine. You could try running the example spec (vowel count) alone (move the customer.py
file from your step_implementation
directory before running) and see if you're seeing the same error. If you're not, you know where the problem is.
This might be a silly question, but do you have all the necessary import statements related to gauge? If yes, are you sure your script doesn't have any bugs/typos? The problem is most likely to do with your
customer.py
file. I had the same error and I had a typo in my import statement. Fixed it and it worked fine. You could try running the example spec (vowel count) alone (move thecustomer.py
file from yourstep_implementation
directory before running) and see if you're seeing the same error. If you're not, you know where the problem is.
Thanks, If so, why not show up the error in the console or gauge log? I mean, for now there is just a general log as "[python] [CRITICAL] Exception occurred while loading step implementations from file: step_impl\customer.py", how do I figure out the actual and detailed error information?
I think this is something that gauge-python should handle. There have been similar reports where gauge is not reporting import errors. The errors are usually fixable by the users by making changes to the code, however Gauge should try and make it easy to figure out what and where needs fixing.
is there any clues or workarounds for this issue? It impacts our automation testing tasks very much indeed
Have you tried downgrading python to version 3.8 instead of 3.9?
@zabil I tried with python 3.8.8 but got the same problem, any other clues please?
@zabil @yinzhenzhixin Did you guys solve this issue? Running into the same error with this version: Gauge version: 1.4.1 Plugins flash (0.0.2) html-report (4.1.2) python (0.3.17) screenshot (0.1.0) xml-report (0.2.3)
I'm on Python version 3.9.7.
Help!! :) Thank you!
@alinagolovin90 - can you check your project's gauge.log
to see what error is being reported there?
When this issue was reported, gauge-python was not bubbling up the cause of error that caused the step implementation load to fail. This was fixed after this issue was reported, so you should ideally now see what is causing the error.
The problem could be that there's some unresolved references in your step implementation that is causing gauge-python to crash when it cannot load a file.
@alinagolovin90 - can you check your project's
gauge.log
to see what error is being reported there?When this issue was reported, gauge-python was not bubbling up the cause of error that caused the step implementation load to fail. This was fixed after this issue was reported, so you should ideally now see what is causing the error.
The problem could be that there's some unresolved references in your step implementation that is causing gauge-python to crash when it cannot load a file.
It works! Don`t see the output, but the gauge.log
Describe the bug I came across the issue after I install gauge-python and run gauge with python projects
To Reproduce Steps (or project) to reproduce the behavior:
Logs gauge run .\specs\ log-level : [debug] 'gauge_environment' set to 'default' Created gauge_screenshots_dir at Plugin python is already installed. Plugin html-report is already installed. Plugin xml-report is already installed. Plugin screenshot is already installed. Parsing started. Started concepts parsing. 3 concepts parsing completed. Started specifications parsing. 3 specifications parsing completed. Parsing completed. Python: 3.9.1 Loading step implementations from C:\step_impl dirs. Starting grpc server.. Attempting to connect to grpc server at port: 61363 Successfully made the connection with runner with port: 61363 Validation started. Run started Starting Html Report plugin Attempting to connect to grpc server at port: 61366 Successfully made the connection with plugin with port: 61366 Starting Xml Report plugin Attempting to connect to grpc server at port: 61369 Successfully made the connection with plugin with port: 61369 Initialising suite data store.
Error Message: transport is closing Stacktrace:
Transformed SuiteResult to report structure
Error Message: Runner is not Alive Stacktrace:
Error occurred while waiting for runner process to finish. Error : exit status 1 Successfully generated html-report to => C:\index.html
Expected behavior A clear and concise description of what you expect to happen.
Screenshots
Versions:
Additional context Add any other context about the problem here.