Created
November 7, 2012 00:45
-
-
Save ounziw/4028788 to your computer and use it in GitHub Desktop.
Test WordPress login from FuelPHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta content="text/html; charset=UTF-8" http-equiv="content-type" /> | |
<title>Test Suite</title> | |
</head> | |
<body> | |
<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody> | |
<tr><td><b>Test Suite</b></td></tr> | |
<tr><td><a href="login-success">login success</a></td></tr> | |
<tr><td><a href="login-fail">login fail</a></td></tr> | |
</tbody></table> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head profile="http://selenium-ide.openqa.org/profiles/test-case"> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<link rel="selenium.base" href="http://127.0.0.1/" /> | |
<title>login fail</title> | |
</head> | |
<body> | |
<table cellpadding="1" cellspacing="1" border="1"> | |
<thead> | |
<tr><td rowspan="1" colspan="3">login fail</td></tr> | |
</thead><tbody> | |
<tr> | |
<td>open</td> | |
<td>/</td> | |
<td></td> | |
</tr> | |
<tr> | |
<td>assertTextNotPresent</td> | |
<td>こんにちはtestuser1さん</td> | |
<td></td> | |
</tr> | |
<tr> | |
<td>type</td> | |
<td>id=user_login</td> | |
<td>testuser1</td> | |
</tr> | |
<tr> | |
<td>type</td> | |
<td>id=user_pass</td> | |
<td>wrongpass</td> | |
</tr> | |
<tr> | |
<td>clickAndWait</td> | |
<td>id=wp-submit</td> | |
<td></td> | |
</tr> | |
<tr> | |
<td>assertTextPresent</td> | |
<td>ログインに失敗しました</td> | |
<td></td> | |
</tr> | |
</tbody></table> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head profile="http://selenium-ide.openqa.org/profiles/test-case"> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<link rel="selenium.base" href="http://127.0.0.1/" /> | |
<title>login success</title> | |
</head> | |
<body> | |
<table cellpadding="1" cellspacing="1" border="1"> | |
<thead> | |
<tr><td rowspan="1" colspan="3">login success</td></tr> | |
</thead><tbody> | |
<tr> | |
<td>open</td> | |
<td>/</td> | |
<td></td> | |
</tr> | |
<tr> | |
<td>assertTextNotPresent</td> | |
<td>こんにちはtestuser1さん</td> | |
<td></td> | |
</tr> | |
<tr> | |
<td>type</td> | |
<td>id=user_login</td> | |
<td>testuser1</td> | |
</tr> | |
<tr> | |
<td>type</td> | |
<td>id=user_pass</td> | |
<td>testpass1</td> | |
</tr> | |
<tr> | |
<td>clickAndWait</td> | |
<td>id=wp-submit</td> | |
<td></td> | |
</tr> | |
<tr> | |
<td>assertTextPresent</td> | |
<td>こんにちはtestuser1さん</td> | |
<td></td> | |
</tr> | |
<tr> | |
<td>clickAndWait</td> | |
<td>link=ログアウト</td> | |
<td></td> | |
</tr> | |
<tr> | |
<td>assertTextNotPresent</td> | |
<td>こんにちはtestuser1さん</td> | |
<td></td> | |
</tr> | |
</tbody></table> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment