Replies: 2 comments 3 replies
-
I'm not sure you really need a plugin for this. I did such things earlier in a way, like:
And in the When step definition you simply read the file. You can also make a simple
If you do so, your step definition can look like this:
|
Beta Was this translation helpful? Give feedback.
-
Sure. The rename is a pain, indeed. The VS extension provides a rename command but it is pretty limited currently. Could be improved for sure. I usually try to have an agreement on the scenario text before the automation starts, so that I need less renames. If you ignore the method names, the step text can be renamed with the regex based replace in files feature of VS though. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use the JSON functionality of the ExternalData plugin.
It seems to be no way to pass to a binding the raw JSON instance, as a string or deserialized POCO, read from an array from the source JSON file.
I find it strange that this hasn't come up as a necessity, but then again it might be that what I'm trying to do is strange.
I can only pass explicit object props, as explained by the docs.
Given this json file contents:
I'd like to be able to pass the entire JSON object as a string to a Binding. Something like:
Beta Was this translation helpful? Give feedback.
All reactions