<?xml version="1.0" encoding="windows-1252"?>
<node id="1021037" title="Test::More - Skip following tests if one test fails" created="2013-02-28 05:42:17" updated="2013-02-28 05:42:17">
<type id="115">
perlquestion</type>
<author id="1000318">
Doozer</author>
<data>
<field name="doctext">
Hello!
&lt;p&gt;I am using Test::More in conjunction with Test::WWW::Selenium to run automated web browser tests.
I have read the info on the CPAN man page about Test::More but am struggling to get my head around the SKIP function.&lt;/p&gt;

&lt;p&gt;In my script I have a test that checks if the title of a web page matches a regular expression that I have defined (shown below).&lt;/p&gt; 
&lt;code&gt;like($sel-&gt;get_title(), 'm/Broadband Connection \| Congratulations/', "Parental control hijack page was seen after the router was factory reset");&lt;/code&gt;
&lt;p&gt;I would like to make it so if the title does not match the regular expression (and therefore that test fails), the following 3 tests after it are skipped.&lt;/p&gt;

&lt;p&gt;I have a feeling its quite straight forward but I cant seem to get my head around how to do it.&lt;/p&gt;

&lt;p&gt;Any help would be much appreciated and more info can be provided if needed.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</field>
</data>
</node>
