Thanks for your suggestion. I'm testing a website and I have various data to test but I don't want to create duplicate steps in different feature files so I want to do is put the test steps e.g. Login page in one feature file and Account page in another then pull the input data from a spreadsheet. I think this way will make easier to maintain the feature file that is all.
On Wednesday, 6 December 2017 18:19:09 UTC, Arik Jones wrote: > > You could create a browser session in `features/support/env.rb` and assign > it to an instance variable > and then use that session in your feature files. Its basically a global > hook, but you'll need to end that session properly with an `at_exit` method. > > More info here: > https://github.com/cucumber/cucumber/wiki/Hooks#global-hooks > > Personally I don't recommend running your features that way. Can I ask > why you need to do it this way? > > On Wednesday, December 6, 2017 at 8:32:35 AM UTC-6, 江南 wrote: >> >> Hi, >> >> I am using Watir Ruby + Cucumber for my testing. >> >> Can you tell me how to run two feature files in one web session? >> >> Thanks >> > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
