Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testcases do not get executed #9

Closed
QCube opened this issue Aug 21, 2019 · 7 comments
Closed

Testcases do not get executed #9

QCube opened this issue Aug 21, 2019 · 7 comments

Comments

@QCube
Copy link

QCube commented Aug 21, 2019

Since version 0.3.1 my datadriver testcases are not being executed properly. The tests do not fail, they pass whilst simply not being executed. The strange thing is, DataDriver seems to run properly and even sees the testcases but is just skipping them.

Console Output (DEBUG):
...
[ DataDriver ] Initialized in xlsx-mode.
[ DataDriver ] Reader Module: <module 'DataDriver.xlsx_reader' from 'c:\program files (x86)\python36-32\lib\site-packages\DataDriver\xlsx_reader.py'>
[ DataDriver ] Opening file 'C:...\ ../nameChanged.xlsx'
[ DataDriver ] 11 Test Cases loaded...
Web App.Someapp.Load Something.Load Something :: Documentationstring, ... | PASS |
0 critical tests, 0 passed, 0 failed
0 tests total, 0 passed, 0 failed
...

Versions:
python 3.6.8 (32 bit)
robotframework 3.1.2
robotframework-datadriver 0.3.1

@Snooz82
Copy link
Owner

Snooz82 commented Aug 23, 2019

Hi,

Do you use --include or --exclude to filter for TestCases?

in 3.1 filter by tags has been added...

@QCube
Copy link
Author

QCube commented Aug 26, 2019

Hi,
I've read that but now I see where the problem lies:
We use argument files to filter with --include (-i). But we don't use the "[Tags]" collumn statet as being optional in the documentation. Still the Datadriver excludes the testcases. (if I include the collumn and the tags it works, but for my specific case I don't want to add tags in the excel sheet)

I would suggest either adding an explicit flag to deactivate or activate filtering by tags or, probably even better, not to filter for tags if there is no "[Tags]" collumn (as it is explained being optional anyway).

@Snooz82
Copy link
Owner

Snooz82 commented Aug 31, 2019

Ok.
I will think about this situation.
How urgent is it?

@Snooz82
Copy link
Owner

Snooz82 commented Aug 31, 2019

Can you workaround with v3.0?

@QCube
Copy link
Author

QCube commented Sep 2, 2019

It's not very urgent, v3.0 is sufficient for us right now.

@Snooz82
Copy link
Owner

Snooz82 commented Sep 16, 2019

Hi,

This issue should be solved.
When no Tags column is set, all testcases will be included if suite is included.

Could you please check with DataDriver v 0.3.2?
And give feedback?

@QCube
Copy link
Author

QCube commented Sep 16, 2019

Hi,

It seems like it's resolved now.
My testcases get executed without a tag column, don't get executed if a tag column is available and no matching tags are given and the tests specified by a matching tag get executed properly as well.

Thank you a lot!

@QCube QCube closed this as completed Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants