[QA] Test_page env variable and url visited
Chris McMahon
cmcmahon at wikimedia.org
Thu Oct 10 21:52:11 UTC 2013
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 <tplavcic at gmail.com>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 <cmcmahon at wikimedia.org>
> wrote:
> >
> >
> >
> > On Thu, Oct 10, 2013 at 3:18 AM, Ċ½eljko Filipin <zfilipin at wikimedia.org>
> > wrote:
> >>
> >> Hi Tomislav,
> >> On Tue, Oct 8, 2013 at 1:05 AM, Tomislav Plavcic <tplavcic at gmail.com>
> >> 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
> > QA at lists.wikimedia.org
> > 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
> QA at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/qa
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20131010/1bbc0c7e/attachment-0001.html>
More information about the QA
mailing list