I've put in place a REUSE_BROWSER option for some of the tests in VisualEditor, that Nik put in place for the CirrusSearch tests, that I guess was first mentioned by Alister Scott in his blog, they all look pretty similar. Take a look at line 126 or so of https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FVisualEditor/62800f99ec350c345bdff86af4d2ed353d79270f/modules%2Fve-mw%2Ftest%2Fbrowser%2Ffeatures%2Fsupport%2Fenv.rb
-Chris On Thu, Oct 10, 2013 at 3:20 PM, Tomislav Plavcic <[email protected]>wrote: > I did see the KEEP_BROWSER_OPEN variable in the readme file but I > thought that the browser then stays open after one scenario (which it > does) and runs the next scenario in the same window (which it > doesn't). I tried it now and see that it opens different browser > instances for each scenario and all stay open... > > Thank you Zeljko and Chris! > > On Thu, Oct 10, 2013 at 3:48 PM, Chris McMahon <[email protected]> > wrote: > > > > > > > > On Thu, Oct 10, 2013 at 3:18 AM, Željko Filipin <[email protected]> > > wrote: > >> > >> Hi Tomislav, > >> On Tue, Oct 8, 2013 at 1:05 AM, Tomislav Plavcic <[email protected]> > >> wrote: > >>> > >>> #2 > >>> > >>> When a test fails maybe it would be good that it prints a url visited > >>> so I can check a tested page manually - > > > > > > If you just need it for temporary debugging, you can always add a 'puts' > > line inside the steps file at the appropriate place: > > > > puts @browser.url > > > > will print the current url to the terminal. > > > > -Chris > > > > _______________________________________________ > > QA mailing list > > [email protected] > > https://lists.wikimedia.org/mailman/listinfo/qa > > > > > > -- > Tomislav Plavcic > Theoretically, if I cut costs enough we'll be profitable without > selling any products... Dilbert > > _______________________________________________ > QA mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/qa >
_______________________________________________ QA mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/qa
