Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1717 by [email protected]: data-driven test with no arguments
throws an error
http://code.google.com/p/robotframework/issues/detail?id=1717
If I create a data-driven test but don't give each test case any arguments,
I get the error "Test case contains no keywords". Technically this is not
true since I do actually have a keyword. If I add a dummy argument, it
works as expected.
For example, the following suite will fail:
*** Settings ***
| Library | Dialogs
| Test Template | Perform manual step
*** Test Cases ***
| Go to the fridge and grab a beer
*** Keywords ***
| Perform manual step
| | Execute Manual Step | ${TEST_NAME}
To make the suite pass I can give the keyword and test a bogus argument:
*** Test Cases ***
| Go to the fridge and grab a beer | bogus
*** Keywords ***
| Perform Manual Step | [Arguments] | @{args}
| | Execute Manual Step | ${TEST_NAME}
I think a data driven test should be able to be written without requiring
arguments.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.