Forum Discussion

NhutHuynh's avatar
NhutHuynh
Occasional Visitor
4 years ago

How to pass parameters between steps in Cucumber with JS?

Hi guys, I have a small issue with Cucumber and I'm new to it, I have the scenarios below:

Scenario: 005 I can checkout successfully when entering valid information at required fields
When I enter first name into field First Name 
 
Scenario: 006....
And Order Information displays first name correctly
 
I had entered value in the first scenario and I want to pass that value into the 2nd scenario but don't know how