문제

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!

올바른 솔루션이 없습니다

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top