Sửa lỗi input string was not in a correct format năm 2024
Expected behavior for me would be: mark new steps in .feature file as they are not defined (binding method does not exist), and then user have to generate new binding methods without issues with forwarded parameters in run time. Steps to Reproduce
Note: problem does not manifest if we write all steps because SpecFlow will generate new file with all corresponding binding methods (3 of them). The text was updated successfully, but these errors were encountered:
If you have the parameters in quotes, you have to adjust the regex, or you will have the quotes in the string that is converted to int.
If i adjust regex of existing binding method with Or i could do something like this:
I might have question: is possible to do it inside one-same regex? Anyway, it still seems to me a bit strange: specflow can bind all three given steps when i put
Hi @StefanZivkovic, in theory, it should be possible to capture it in all different ways in one regex. But this would most likely result in a regex which is very hard to read and understand. I'd recommend you to annotate the Considering your last note: The reason for this behavior is that the input captured with `(.*)`captured with `packages.config`6 I have entered 1 into the calculator 1 1 I have entered '1' into the calculator '1' [nothing] I have entered "1" into the calculator "1" [nothing] As you can see, the problem is caused by the I'd strongly recommend you to replace Hope this helps you.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |