Snooz82 / robotframework-datadriver

Library to provide Data-Driven testing with CSV tables to Robot Framework
Apache License 2.0
131 stars 36 forks source link

Rerun failed tests raise an error in the latest 1.11.0 version #96

Closed wanghui-00 closed 5 months ago

wanghui-00 commented 5 months ago

Rerun failed cases with example command robot --prerunmodifier DataDriver.rerunfailed:output.xml --output rerun.xml test.robot are failed in the latest 1.11.0 version

Importing model modifier 'DataDriver.rerunfailed' failed: ImportError: cannot import name 'Variable' from 'robot.running.model' (C:\Users\***\AppData\Local\Programs\Python\Python39\lib\site-packages\robot\running\model.py)
Traceback (most recent call last):
  File "C:\Users\***1\AppData\Local\Programs\Python\Python39\lib\site-packages\DataDriver\rerunfailed.py", line 8, in <module>
    from robot.running.model import Variable  # type: ignore

This action is success in old version 1.9.0, but it didn't support latest robotframework 7.0

tomasnemecek1 commented 5 months ago

I'm facing the same issue - running Robot Framework 7.0 and DataDriver library 1.11.0. As a result all the tests and run again, not only those failed ones.

Snooz82 commented 5 months ago

fixed.

https://pypi.org/project/robotframework-datadriver/1.11.1/