chetic / robotframework-async Goto Github PK
View Code? Open in Web Editor NEWGeneric Robot Framework library for asynchronous keyword execution
License: MIT License
Generic Robot Framework library for asynchronous keyword execution
License: MIT License
File "/home/minh/.local/lib/python2.7/site-packages/AsyncLibrary/async.py", line 42, in wrapped_f
f = self._get_handler_from_keyword(keyword)
File "/home/minh/.local/lib/python2.7/site-packages/AsyncLibrary/async.py", line 34, in _get_handler_from_keyword
return EXECUTION_CONTEXTS.current.get_handler(keyword)
AttributeError: '_ExecutionContext' object has no attribute 'get_handler'
Is there a maven artifact for robotframework-async so we can just directly add a dependency to it into our pom and start using it?
The failed test raises exception and does not return from wrapped_f, so the test execution is stuck in queue.
How to handle it?
I am trying to use this library for async execution of keywords but I get a traceback;
*** Test Cases ***
Discover device under test platform type
${handle} async run Discover device under test platform type
${return_value} async get ${handle}
Discover device under test platform type .Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/venv/lib/python3.7/site-packages/AsyncLibrary/robot_async.py", line 45, in wrapped_f
f = self._get_handler_from_keyword(keyword)
File "/venv/lib/python3.7/site-packages/AsyncLibrary/robot_async.py", line 34, in _get_handler_from_keyword
return EXECUTION_CONTEXTS.current.get_handler(keyword)
AttributeError: '_ExecutionContext' object has no attribute 'get_handler'
I am probably doing something stupid but I can't find much help out in the wild.
We have seen undeterministic behavior when using the "Async Run" keyword. Sometimes the output.xml get corrupted. Run the exact same test again, and everything is fine.
We've narrowed this down to tags placed spuriously, in the cases we've been able to see. The sometimes failing sequence is:
-Async Run KW
-KW that does a 'print'
It seems Robot gets very confused about what's happening where, and gladly outputs a 'msg' element into an 'arguments' element (which is not allowed by the schema) of the KW element running async, making things very confused.
Is there some general warning about only using AsyncLibrary in some constrained ways?
I'm raising this as a generic threading issue in the Robot Framework tracker as well.
As title says
When I use robotframework-async in python3.5, it report ImportError: No module named 'Queue'
my RF version:3.0.3
python version:2.7.14
after I install and when I run ...
${handle}= async run Check Apid In Kafka
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 484, in run
self.__target(_self.__args, *_self.__kwargs)
File "/Library/Python/2.6/site-packages/AsyncLibrary/async.py", line 43, in wrapped_f
ret = f.run(EXECUTION_CONTEXTS.current, args)
File "/Library/Python/2.6/site-packages/robot/running/userkeyword.py", line 140, in run
return self._run(context, arguments)
File "/Library/Python/2.6/site-packages/robot/running/userkeyword.py", line 147, in _run
return self._normal_run(context, arguments)
File "/Library/Python/2.6/site-packages/robot/running/userkeyword.py", line 158, in normal_run
error, return = self._execute(context, arguments)
File "/Library/Python/2.6/site-packages/robot/running/userkeyword.py", line 178, in _execute
self.timeout.start()
it would great if it runs well..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.