Giter VIP home page Giter VIP logo

robotframework-async's People

Contributors

chetic avatar duohedron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

robotframework-async's Issues

robotframework-async not run with version 3.0.2 of robotframework

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'

traceback with Asynch Run

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}

root@72ddb142860f:/home/cisco/cxta# robot underlay/POD1-FB-01_underlay.robot

POD1-FB-01 underlay

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.

I am trying to use this keyward asyn run

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..

robotframework-async on maven

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?

Printouts during async call causes corrupted Robot report file

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.

How to handle failed test?

The failed test raises exception and does not return from wrapped_f, so the test execution is stuck in queue.
How to handle it?

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.