-
Notifications
You must be signed in to change notification settings - Fork 519
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
Artillery ignores parenthesis in scenarios names #2673
Comments
More informations : If the two scenarios have the same name except the parenthesis, for example:
and we run
which leads to think the parenthesis (and what they contain) are stripped off the scenario name |
I also tried with quoted name in yaml, with no more success :
|
Hi @HugoImaios We'll make this more clear in the documentation, but |
I looked for it, is it this line ? artillery/packages/core/lib/runner.js Line 340 in 4206f30
|
I though about it and I don't really see the point of the regex here : - const hasScenario = new RegExp(options.scenarioName).test(scenario.name);
+ const hasScenario = scenario.name === options.scenarioName; (naive fix, I guess one could get rid of the whole |
Hi @HugoImaios 👋 We had actually been discussing this same thing earlier in the week. For context, the reason I implemented it as a regex is because most test runners out there tend to have a That being said, I do think that makes more sense when you can run multiple scenarios (which artillery currently doesn't do). We'll discuss this again internally and see what we'll do here! In the meantime, you should be unblocked for your use case right? Just escaping the special characters should work, i.e.:
|
Looks good to me, I'll receive updates from here ! No worries for my use case, I already just removed the parenthesis from the scenario name in the config lol |
This is solved in Artillery v2.0.12. You can use exact match or regex now. |
Hello Artillery team !
Just a little issue with scenario names : it seems like they simply ignore parenthesis.
Version info:
Running this command:
I expected to see this happen:
Artillery running my script.
Instead, this happened:
worker error, id: 1 Error: Scenario Get 2 animal pictures (but with parenthesis) not found in script. Make sure your chosen scenario matches the one in your script exactly.
Files being used:
config.yaml
The text was updated successfully, but these errors were encountered: