[wtr-general] Re: Running 2 cucumber feature file in one web session

2017-12-11 Thread Chuck van der Linden
On Monday, December 11, 2017 at 1:15:38 AM UTC-8, 江南 wrote: > > Thanks for all your information they are very helpful. > > I do understand the concept of Cucumber. > > I'm working directly with a Developer, I personally have not come up with > this idea but my Developer has asked me about

[wtr-general] Re: Running 2 cucumber feature file in one web session

2017-12-11 Thread 江南
Thanks for all your information they are very helpful. I do understand the concept of Cucumber. I'm working directly with a Developer, I personally have not come up with this idea but my Developer has asked me about writing the script this way and I have explained to him about Page Object

[wtr-general] Re: Running 2 cucumber feature file in one web session

2017-12-08 Thread Chuck van der Linden
one other thing (see below On Friday, December 8, 2017 at 1:54:15 AM UTC-8, 江南 wrote: > > 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.

[wtr-general] Re: Running 2 cucumber feature file in one web session

2017-12-08 Thread Chuck van der Linden
On Friday, December 8, 2017 at 1:54:15 AM UTC-8, 江南 wrote: > > 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

[wtr-general] Re: Running 2 cucumber feature file in one web session

2017-12-08 Thread 江南
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

[wtr-general] Re: Running 2 cucumber feature file in one web session

2017-12-07 Thread Arik Jones
I've always treated each scenario as its own session. It eliminates some of the complication with session tear-down/cleanup since every session is brand new. The only thing I have to worry about is closing the browser at the end of each of scenario. On Thursday, December 7, 2017 at 11:27:01 AM

[wtr-general] Re: Running 2 cucumber feature file in one web session

2017-12-07 Thread Chuck van der Linden
On Wednesday, December 6, 2017 at 10:19:09 AM UTC-8, 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

[wtr-general] Re: Running 2 cucumber feature file in one web session

2017-12-06 Thread Arik Jones
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: