|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.5) E22562-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase com.thoughtworks.selenium.SeleneseTestCase oracle.apps.fnd.applcore.test.selenium.ApplcoreSeleneseTestCase
public class ApplcoreSeleneseTestCase
Field Summary | |
---|---|
static java.lang.String |
fileName
|
protected ApplcoreSelenium |
selenium
|
Constructor Summary | |
---|---|
ApplcoreSeleneseTestCase()
|
|
ApplcoreSeleneseTestCase(java.lang.String string)
|
Method Summary | |
---|---|
boolean |
canRun()
This is used to control whether the test will run or not. |
void |
loginAndWaitPageToLoad(java.lang.String username,
java.lang.String password)
Login to an application with the given username and password and wait for the page to load. |
void |
run(junit.framework.TestResult result)
|
void |
setUp()
|
void |
tearDown()
|
protected void |
verifyTitle(java.lang.String expected)
Verifies that the real page title is what we expect it to be. |
protected void |
verifyTitle(java.lang.String message,
java.lang.String expected)
Verifies that the real page title is what we expect it to be. |
Methods inherited from class com.thoughtworks.selenium.SeleneseTestCase |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertNotEquals, assertNotEquals, checkForVerificationErrors, clearVerificationErrors, getText, isCaptureScreenShotOnFailure, isCaptureScreetShotOnFailure, join, pause, runBare, runtimeBrowserString, seleniumEquals, seleniumEquals, setCaptureScreenShotOnFailure, setCaptureScreetShotOnFailure, setTestContext, setUp, setUp, verifyEquals, verifyEquals, verifyEquals, verifyFalse, verifyNotEquals, verifyNotEquals, verifyTrue |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String fileName
protected ApplcoreSelenium selenium
Constructor Detail |
---|
public ApplcoreSeleneseTestCase()
public ApplcoreSeleneseTestCase(java.lang.String string)
Method Detail |
---|
public void setUp()
setUp
in class com.thoughtworks.selenium.SeleneseTestCase
protected final void verifyTitle(java.lang.String expected)
expected
- what we expected the title to be.protected final void verifyTitle(java.lang.String message, java.lang.String expected)
message
- custom message to include in the junit reportexpected
- what we expected the title to be.public void loginAndWaitPageToLoad(java.lang.String username, java.lang.String password)
<html>
<head>
<title>Login</title>
</head>
<body>
Login
<form method="POST" action="j_security_check">
<table cellspacing="2" cellpadding="3" border="1">
<tr>
<th>Username:</th>
<td>
<input type="text" name="j_username" id="j_username"/>
</td>
</tr>
<tr>
<th>Password:</th>
<td>
<input type="password" name="j_password" id="j_password"/>
</td>
</tr>
</table>
<p>
<input type="submit" name="submit" value="Submit"/
</p>
</form>
</body>
</html>
This is set as the login page for the application by setting up standard
adf security usinf the Form Based Security option. Note that a Title and
ids have been added to the login.html for Selenium to access:
FORM
/login.html
/error.html
username
- name of user. Cannot be null.password
- password. Cannot be null.public boolean canRun()
public void run(junit.framework.TestResult result)
run
in interface junit.framework.Test
run
in class junit.framework.TestCase
public void tearDown() throws java.lang.Exception
tearDown
in class com.thoughtworks.selenium.SeleneseTestCase
java.lang.Exception
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.5) E22562-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |