-
Notifications
You must be signed in to change notification settings - Fork 100
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
Scenario: Confusion between parameter name and function name #520
Comments
I withdrew the PR I have submitted. Because I found that several other confusions between function name and parameter name are found in current code. I'm planning refactoring (rearranging) code related to scenario feature. These bug will be solved with that work (in early this year). |
The general rule being that the scenario name matches the parameter name, we should stick to this and rename scenarios when a parameter is renamed. For example, when d_read became shared_doc.d_read. |
@dverdin, that rule is no longer enforced. See for example Another example of confusions between function and parameter is |
So how to do? shall we keep a table of pairs such as (parameter => scenario_name)? That would easily solve this problem. |
I'll submit a PR later (in this month or next). Basically, it may solely use function name to specify scenario function with new(), request_auth() etc., and gives a table mapping function names to list/domain parameters. |
PR above may fix this issue. I'd like to merge it in this week. |
Version
6.2.38 and earlier.
Installation method
Any.
Expected behavior
By implicit inclusion feature of scenario file, "
include.<action>.header
is automatically added to evaluated scenarios".Actual behavior
If a scenario corresponds to a compound list parameter, that parameter name is used as
<action>
above, instead of scenario function name.Example:
Scenario file
d_read.xxx
corresponds to list parametershared_doc.d_read
. It tries to include header fileinclude.shared_doc.d_read.header
instead ofinclude.d_read.header
.Additional information
The text was updated successfully, but these errors were encountered: