Domanda

I'm running in to an issue in that I need to get one value in a cucumber statement, and then give that value to another statement.

Specifically I am getting a JSON object from one page (where that object gets sent to an api endpoint as a preference) and then using information out of that after I query the api, which happens in a completely separate step.

I am suspecting that I have to write the value somewhere, and then pull that value when the step that needs it comes up, but I'm kind of at a loss for doing that as well.

I can provide any further needed details, thanks for any help!

Nessuna soluzione corretta

Altri suggerimenti

Definitely a rookie question - to which the answer is to use instance variables - @variable_name = get_method in the helper method your step calls.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top