| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <title>SeleneseTestBase</title> |
| <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="SeleneseTestBase"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../index-all.html">Index</a></li> |
| <li><a href="../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../com/thoughtworks/selenium/ScreenshotListener.html" title="class in com.thoughtworks.selenium"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../com/thoughtworks/selenium/SeleneseTestCase.html" title="class in com.thoughtworks.selenium"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?com/thoughtworks/selenium/SeleneseTestBase.html" target="_top">Frames</a></li> |
| <li><a href="SeleneseTestBase.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field_summary">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field_detail">Field</a> | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">com.thoughtworks.selenium</div> |
| <h2 title="Class SeleneseTestBase" class="title">Class SeleneseTestBase</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>com.thoughtworks.selenium.SeleneseTestBase</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>Direct Known Subclasses:</dt> |
| <dd><a href="../../../com/thoughtworks/selenium/SeleneseTestNgHelper.html" title="class in com.thoughtworks.selenium">SeleneseTestNgHelper</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="strong">SeleneseTestBase</span> |
| extends java.lang.Object</pre> |
| <div class="block">Provides a base class that implements some handy functionality for Selenium testing (you are |
| <i>not</i> required to extend this class). |
| |
| <p> |
| This class adds a number of "verify" commands, which are like "assert" commands, but they don't |
| stop the test when they fail. Instead, verification errors are all thrown at once during |
| tearDown. |
| </p></div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../../com/thoughtworks/selenium/Selenium.html" title="interface in com.thoughtworks.selenium">Selenium</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#selenium">selenium</a></strong></code> |
| <div class="block">Use this object to run all of your selenium tests</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected java.lang.StringBuffer</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#verificationErrors">verificationErrors</a></strong></code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#SeleneseTestBase()">SeleneseTestBase</a></strong>()</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#assertEquals(java.lang.Object, java.lang.Object)">assertEquals</a></strong>(java.lang.Object expected, |
| java.lang.Object actual)</code> |
| <div class="block">Like JUnit's Assert.assertEquals, but knows how to compare string arrays</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#assertEquals(java.lang.String[], java.lang.String[])">assertEquals</a></strong>(java.lang.String[] expected, |
| java.lang.String[] actual)</code> |
| <div class="block">Asserts that two string arrays have identical string contents</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#assertEquals(java.lang.String, java.lang.String)">assertEquals</a></strong>(java.lang.String expected, |
| java.lang.String actual)</code> |
| <div class="block">Like JUnit's Assert.assertEquals, but handles "regexp:" strings like HTML Selenese</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#assertEquals(java.lang.String, java.lang.String[])">assertEquals</a></strong>(java.lang.String expected, |
| java.lang.String[] actual)</code> |
| <div class="block">Like JUnit's Assert.assertEquals, but joins the string array with commas, and handles "regexp:" |
| strings like HTML Selenese</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#assertFalse(boolean)">assertFalse</a></strong>(boolean condition)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#assertFalse(java.lang.String, boolean)">assertFalse</a></strong>(java.lang.String message, |
| boolean condition)</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#assertNotEquals(boolean, boolean)">assertNotEquals</a></strong>(boolean expected, |
| boolean actual)</code> |
| <div class="block">Asserts that two booleans are not the same</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#assertNotEquals(java.lang.Object, java.lang.Object)">assertNotEquals</a></strong>(java.lang.Object expected, |
| java.lang.Object actual)</code> |
| <div class="block">Asserts that two objects are not the same (compares using .equals())</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#assertTrue(boolean)">assertTrue</a></strong>(boolean condition)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#assertTrue(java.lang.String, boolean)">assertTrue</a></strong>(java.lang.String message, |
| boolean condition)</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#checkForVerificationErrors()">checkForVerificationErrors</a></strong>()</code> |
| <div class="block">Asserts that there were no verification errors during the current test, failing immediately if |
| any are found</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#clearVerificationErrors()">clearVerificationErrors</a></strong>()</code> |
| <div class="block">Clears out the list of verification errors</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#fail(java.lang.String)">fail</a></strong>(java.lang.String message)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected int</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#getDefaultPort()">getDefaultPort</a></strong>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#getText()">getText</a></strong>()</code> |
| <div class="block">Returns the body text of the current page</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#isCaptureScreenShotOnFailure()">isCaptureScreenShotOnFailure</a></strong>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static java.lang.String</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#join(java.lang.String[], char)">join</a></strong>(java.lang.String[] sa, |
| char c)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#pause(int)">pause</a></strong>(int millisecs)</code> |
| <div class="block">Sleeps for the specified number of milliseconds</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected java.lang.String</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#runtimeBrowserString()">runtimeBrowserString</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#seleniumEquals(java.lang.Object, java.lang.Object)">seleniumEquals</a></strong>(java.lang.Object expected, |
| java.lang.Object actual)</code> |
| <div class="block">Compares two objects, but handles "regexp:" strings like HTML Selenese</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#seleniumEquals(java.lang.String, java.lang.String)">seleniumEquals</a></strong>(java.lang.String expectedPattern, |
| java.lang.String actual)</code> |
| <div class="block">Compares two strings, but handles "regexp:" strings like HTML Selenese</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#setCaptureScreenShotOnFailure(boolean)">setCaptureScreenShotOnFailure</a></strong>(boolean captureScreetShotOnFailure)</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#setUp()">setUp</a></strong>()</code> |
| <div class="block">Calls this.setUp(null)</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#setUp(java.lang.String)">setUp</a></strong>(java.lang.String url)</code> |
| <div class="block">Calls this.setUp with the specified url and a default browser.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#setUp(java.lang.String, java.lang.String)">setUp</a></strong>(java.lang.String url, |
| java.lang.String browserString)</code> |
| <div class="block">Creates a new DefaultSelenium object and starts it using the specified baseUrl and browser |
| string.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#setUp(java.lang.String, java.lang.String, int)">setUp</a></strong>(java.lang.String url, |
| java.lang.String browserString, |
| int port)</code> |
| <div class="block">Creates a new DefaultSelenium object and starts it using the specified baseUrl and browser |
| string.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#tearDown()">tearDown</a></strong>()</code> |
| <div class="block">checks for verification errors and stops the browser</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#verifyEquals(boolean, boolean)">verifyEquals</a></strong>(boolean expected, |
| boolean actual)</code> |
| <div class="block">Like assertEquals, but fails at the end of the test (during tearDown)</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#verifyEquals(java.lang.Object, java.lang.Object)">verifyEquals</a></strong>(java.lang.Object expected, |
| java.lang.Object actual)</code> |
| <div class="block">Like assertEquals, but fails at the end of the test (during tearDown)</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#verifyEquals(java.lang.String[], java.lang.String[])">verifyEquals</a></strong>(java.lang.String[] expected, |
| java.lang.String[] actual)</code> |
| <div class="block">Asserts that two string arrays have identical string contents (fails at the end of the test, |
| during tearDown)</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#verifyFalse(boolean)">verifyFalse</a></strong>(boolean b)</code> |
| <div class="block">Like assertFalse, but fails at the end of the test (during tearDown)</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#verifyNotEquals(boolean, boolean)">verifyNotEquals</a></strong>(boolean expected, |
| boolean actual)</code> |
| <div class="block">Like assertNotEquals, but fails at the end of the test (during tearDown)</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#verifyNotEquals(java.lang.Object, java.lang.Object)">verifyNotEquals</a></strong>(java.lang.Object expected, |
| java.lang.Object actual)</code> |
| <div class="block">Like assertNotEquals, but fails at the end of the test (during tearDown)</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#verifyTrue(boolean)">verifyTrue</a></strong>(boolean b)</code> |
| <div class="block">Like assertTrue, but fails at the end of the test (during tearDown)</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="selenium"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>selenium</h4> |
| <pre>protected <a href="../../../com/thoughtworks/selenium/Selenium.html" title="interface in com.thoughtworks.selenium">Selenium</a> selenium</pre> |
| <div class="block">Use this object to run all of your selenium tests</div> |
| </li> |
| </ul> |
| <a name="verificationErrors"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>verificationErrors</h4> |
| <pre>protected java.lang.StringBuffer verificationErrors</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="SeleneseTestBase()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>SeleneseTestBase</h4> |
| <pre>public SeleneseTestBase()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="setUp()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setUp</h4> |
| <pre>public void setUp() |
| throws java.lang.Exception</pre> |
| <div class="block">Calls this.setUp(null)</div> |
| <dl><dt><span class="strong">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#setUp(java.lang.String)"><code>setUp(String)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="setUp(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setUp</h4> |
| <pre>public void setUp(java.lang.String url) |
| throws java.lang.Exception</pre> |
| <div class="block">Calls this.setUp with the specified url and a default browser. On Windows, the default browser |
| is *iexplore; otherwise, the default browser is *firefox.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>url</code> - the baseUrl to use for your Selenium tests</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#setUp(java.lang.String, java.lang.String)"><code>setUp(String, String)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="runtimeBrowserString()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>runtimeBrowserString</h4> |
| <pre>protected java.lang.String runtimeBrowserString()</pre> |
| </li> |
| </ul> |
| <a name="setUp(java.lang.String, java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setUp</h4> |
| <pre>public void setUp(java.lang.String url, |
| java.lang.String browserString) |
| throws java.lang.Exception</pre> |
| <div class="block">Creates a new DefaultSelenium object and starts it using the specified baseUrl and browser |
| string. The port is selected as follows: if the server package's RemoteControlConfiguration |
| class is on the classpath, that class' default port is used. Otherwise, if the "server.port" |
| system property is specified, that is used - failing that, the default of 4444 is used.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>url</code> - the baseUrl for your tests</dd><dd><code>browserString</code> - the browser to use, e.g. *firefox</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#setUp(java.lang.String, java.lang.String, int)"><code>setUp(String, String, int)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="getDefaultPort()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDefaultPort</h4> |
| <pre>protected int getDefaultPort()</pre> |
| </li> |
| </ul> |
| <a name="setUp(java.lang.String, java.lang.String, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setUp</h4> |
| <pre>public void setUp(java.lang.String url, |
| java.lang.String browserString, |
| int port) |
| throws java.lang.Exception</pre> |
| <div class="block">Creates a new DefaultSelenium object and starts it using the specified baseUrl and browser |
| string. The port is selected as follows: if the server package's RemoteControlConfiguration |
| class is on the classpath, that class' default port is used. Otherwise, if the "server.port" |
| system property is specified, that is used - failing that, the default of 4444 is used.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>url</code> - the baseUrl for your tests</dd><dd><code>browserString</code> - the browser to use, e.g. *firefox</dd><dd><code>port</code> - the port that you want to run your tests on</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#setUp(java.lang.String, java.lang.String, int)"><code>setUp(String, String, int)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="verifyTrue(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>verifyTrue</h4> |
| <pre>public void verifyTrue(boolean b)</pre> |
| <div class="block">Like assertTrue, but fails at the end of the test (during tearDown)</div> |
| </li> |
| </ul> |
| <a name="verifyFalse(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>verifyFalse</h4> |
| <pre>public void verifyFalse(boolean b)</pre> |
| <div class="block">Like assertFalse, but fails at the end of the test (during tearDown)</div> |
| </li> |
| </ul> |
| <a name="getText()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getText</h4> |
| <pre>public java.lang.String getText()</pre> |
| <div class="block">Returns the body text of the current page</div> |
| </li> |
| </ul> |
| <a name="verifyEquals(java.lang.Object, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>verifyEquals</h4> |
| <pre>public void verifyEquals(java.lang.Object expected, |
| java.lang.Object actual)</pre> |
| <div class="block">Like assertEquals, but fails at the end of the test (during tearDown)</div> |
| </li> |
| </ul> |
| <a name="verifyEquals(boolean, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>verifyEquals</h4> |
| <pre>public void verifyEquals(boolean expected, |
| boolean actual)</pre> |
| <div class="block">Like assertEquals, but fails at the end of the test (during tearDown)</div> |
| </li> |
| </ul> |
| <a name="assertEquals(java.lang.Object, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assertEquals</h4> |
| <pre>public static void assertEquals(java.lang.Object expected, |
| java.lang.Object actual)</pre> |
| <div class="block">Like JUnit's Assert.assertEquals, but knows how to compare string arrays</div> |
| </li> |
| </ul> |
| <a name="assertEquals(java.lang.String, java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assertEquals</h4> |
| <pre>public static void assertEquals(java.lang.String expected, |
| java.lang.String actual)</pre> |
| <div class="block">Like JUnit's Assert.assertEquals, but handles "regexp:" strings like HTML Selenese</div> |
| </li> |
| </ul> |
| <a name="assertEquals(java.lang.String, java.lang.String[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assertEquals</h4> |
| <pre>public static void assertEquals(java.lang.String expected, |
| java.lang.String[] actual)</pre> |
| <div class="block">Like JUnit's Assert.assertEquals, but joins the string array with commas, and handles "regexp:" |
| strings like HTML Selenese</div> |
| </li> |
| </ul> |
| <a name="seleniumEquals(java.lang.String, java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>seleniumEquals</h4> |
| <pre>public static boolean seleniumEquals(java.lang.String expectedPattern, |
| java.lang.String actual)</pre> |
| <div class="block">Compares two strings, but handles "regexp:" strings like HTML Selenese</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>expectedPattern</code> - </dd><dd><code>actual</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>true if actual matches the expectedPattern, or false otherwise</dd></dl> |
| </li> |
| </ul> |
| <a name="seleniumEquals(java.lang.Object, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>seleniumEquals</h4> |
| <pre>public static boolean seleniumEquals(java.lang.Object expected, |
| java.lang.Object actual)</pre> |
| <div class="block">Compares two objects, but handles "regexp:" strings like HTML Selenese</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>true if actual matches the expectedPattern, or false otherwise</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/thoughtworks/selenium/SeleneseTestBase.html#seleniumEquals(java.lang.String, java.lang.String)"><code>seleniumEquals(String, String)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="assertEquals(java.lang.String[], java.lang.String[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assertEquals</h4> |
| <pre>public static void assertEquals(java.lang.String[] expected, |
| java.lang.String[] actual)</pre> |
| <div class="block">Asserts that two string arrays have identical string contents</div> |
| </li> |
| </ul> |
| <a name="verifyEquals(java.lang.String[], java.lang.String[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>verifyEquals</h4> |
| <pre>public void verifyEquals(java.lang.String[] expected, |
| java.lang.String[] actual)</pre> |
| <div class="block">Asserts that two string arrays have identical string contents (fails at the end of the test, |
| during tearDown)</div> |
| </li> |
| </ul> |
| <a name="join(java.lang.String[], char)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>join</h4> |
| <pre>public static java.lang.String join(java.lang.String[] sa, |
| char c)</pre> |
| </li> |
| </ul> |
| <a name="verifyNotEquals(java.lang.Object, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>verifyNotEquals</h4> |
| <pre>public void verifyNotEquals(java.lang.Object expected, |
| java.lang.Object actual)</pre> |
| <div class="block">Like assertNotEquals, but fails at the end of the test (during tearDown)</div> |
| </li> |
| </ul> |
| <a name="verifyNotEquals(boolean, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>verifyNotEquals</h4> |
| <pre>public void verifyNotEquals(boolean expected, |
| boolean actual)</pre> |
| <div class="block">Like assertNotEquals, but fails at the end of the test (during tearDown)</div> |
| </li> |
| </ul> |
| <a name="assertNotEquals(java.lang.Object, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assertNotEquals</h4> |
| <pre>public static void assertNotEquals(java.lang.Object expected, |
| java.lang.Object actual)</pre> |
| <div class="block">Asserts that two objects are not the same (compares using .equals())</div> |
| </li> |
| </ul> |
| <a name="fail(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>fail</h4> |
| <pre>public static void fail(java.lang.String message)</pre> |
| </li> |
| </ul> |
| <a name="assertTrue(java.lang.String, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assertTrue</h4> |
| <pre>public static void assertTrue(java.lang.String message, |
| boolean condition)</pre> |
| </li> |
| </ul> |
| <a name="assertTrue(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assertTrue</h4> |
| <pre>public static void assertTrue(boolean condition)</pre> |
| </li> |
| </ul> |
| <a name="assertFalse(java.lang.String, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assertFalse</h4> |
| <pre>public static void assertFalse(java.lang.String message, |
| boolean condition)</pre> |
| </li> |
| </ul> |
| <a name="assertFalse(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assertFalse</h4> |
| <pre>public static void assertFalse(boolean condition)</pre> |
| </li> |
| </ul> |
| <a name="assertNotEquals(boolean, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assertNotEquals</h4> |
| <pre>public static void assertNotEquals(boolean expected, |
| boolean actual)</pre> |
| <div class="block">Asserts that two booleans are not the same</div> |
| </li> |
| </ul> |
| <a name="pause(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pause</h4> |
| <pre>public void pause(int millisecs)</pre> |
| <div class="block">Sleeps for the specified number of milliseconds</div> |
| </li> |
| </ul> |
| <a name="checkForVerificationErrors()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>checkForVerificationErrors</h4> |
| <pre>public void checkForVerificationErrors()</pre> |
| <div class="block">Asserts that there were no verification errors during the current test, failing immediately if |
| any are found</div> |
| </li> |
| </ul> |
| <a name="clearVerificationErrors()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>clearVerificationErrors</h4> |
| <pre>public void clearVerificationErrors()</pre> |
| <div class="block">Clears out the list of verification errors</div> |
| </li> |
| </ul> |
| <a name="tearDown()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>tearDown</h4> |
| <pre>public void tearDown() |
| throws java.lang.Exception</pre> |
| <div class="block">checks for verification errors and stops the browser</div> |
| <dl><dt><span class="strong">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd></dl> |
| </li> |
| </ul> |
| <a name="isCaptureScreenShotOnFailure()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isCaptureScreenShotOnFailure</h4> |
| <pre>protected boolean isCaptureScreenShotOnFailure()</pre> |
| </li> |
| </ul> |
| <a name="setCaptureScreenShotOnFailure(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>setCaptureScreenShotOnFailure</h4> |
| <pre>protected void setCaptureScreenShotOnFailure(boolean captureScreetShotOnFailure)</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../index-all.html">Index</a></li> |
| <li><a href="../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../com/thoughtworks/selenium/ScreenshotListener.html" title="class in com.thoughtworks.selenium"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../com/thoughtworks/selenium/SeleneseTestCase.html" title="class in com.thoughtworks.selenium"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?com/thoughtworks/selenium/SeleneseTestBase.html" target="_top">Frames</a></li> |
| <li><a href="SeleneseTestBase.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field_summary">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field_detail">Field</a> | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |