The first scenario is run as part of the feature file registration.feature (feature1) and has the following content:
Scenario: User can register as a Free account Given I am on the home page When I navigate to the Register page And set all required fields for "Free" on the page And check that info about successful registration is shown And activate account Then I copy the Free user information in a data file
Then I would like to run the following feature under the upgrade_accounts.feature(feature2)
Feature: Upgrade accounts As an QA Engineer I would like to upgrade my accounts to other types So I can make sure upgrade functionality is working properly Scenario: Existing free account is upgraded to premium Given I navigate to the login page When Sign in as free account retrieved from file And I navigate to updgrade accounts And I select premium account and submit Then Verify premium package is active
My concerns are about how I implement the connection between these two features using something that applies to step: Then I copy the Free user information in a data file
from feature1 and When Sign in as free account retrieved from file
on feature2.
So I guess the question is: What approach(gem) would be best to use in order to copy data from web page into a file and the read it and use it again?
Thank you!