MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 3 as of 2014-07-23 22:17:07
  • Selenium

Selenium

Web apps testing platform

Selenium IDE

Plguin for Firefox

http://release.seleniumhq.org/selenium-ide/2.5.0/selenium-ide-2.5.0.xpi

http://docs.seleniumhq.org/docs/01_introducing_selenium.jsp

http://docs.seleniumhq.org/docs/02_selenium_ide.jsp

Selenium IDE (Integrated Development Environment) is a prototyping tool for building test scripts. It is a Firefox plugin and provides an easy-to-use interface for developing automated tests. Selenium IDE has a recording feature, which records user actions as they are performed and then exports them as a reusable script in one of many programming languages that can be later executed.

Sample test suite for Yii blog demo

ts.html

   1 <?xml version="1.0" encoding="UTF-8"?>
   2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   4 <head>
   5   <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
   6   <title>Test Suite</title>
   7 </head>
   8 <body>
   9 <table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody>
  10 <tr><td><b>Test Suite</b></td></tr>
  11 <tr><td><a href="loginLogout.html">Login and Logout</a></td></tr>
  12 <tr><td><a href="addPost.html">Add post</a></td></tr>
  13 <tr><td><a href="deletePost.html">deletePost</a></td></tr>
  14 </tbody></table>
  15 </body>
  16 </html>

loginLogout.html

   1 <?xml version="1.0" encoding="UTF-8"?>
   2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   4 <head profile="http://selenium-ide.openqa.org/profiles/test-case">
   5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   6 <link rel="selenium.base" href="http://localhostyii/" />
   7 <title>Login and Logout</title>
   8 </head>
   9 <body>
  10 <table cellpadding="1" cellspacing="1" border="1">
  11 <thead>
  12 <tr><td rowspan="1" colspan="3">Login and Logout</td></tr>
  13 </thead><tbody>
  14 <tr>    <td>storeEval</td>      <td>prompt(&quot;User&quot;);</td>      <td>userx</td> </tr>
  15 <tr>    <td>storeEval</td>      <td>prompt(&quot;Password&quot;);</td>  <td>passwordx</td></tr>
  16 <tr>    <td>open</td>   <td>http://localhostyii/demos/blog/</td>        <td></td></tr>
  17 <tr>    <td>clickAndWait</td>   <td>link=Login</td>     <td></td></tr>
  18 <tr>    <td>type</td>   <td>id=LoginForm_username</td>  <td>${userx}</td></tr>
  19 <tr>    <td>type</td>   <td>id=LoginForm_password</td>  <td>${passwordx}</td></tr>
  20 <tr>    <td>clickAndWait</td>   <td>//input[@value='Login']</td>        <td></td> </tr>
  21 <tr>    <td>clickAndWait</td>   <td>link=Logout (demo)</td>     <td></td></tr>
  22 </tbody></table>
  23 </body>
  24 </html>

addPost.html

   1 <?xml version="1.0" encoding="UTF-8"?>
   2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   4 <head profile="http://selenium-ide.openqa.org/profiles/test-case">
   5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   6 <link rel="selenium.base" href="http://localhostyii/" />
   7 <title>Add post</title>
   8 </head>
   9 <body>
  10 <table cellpadding="1" cellspacing="1" border="1">
  11 <thead>
  12 <tr><td rowspan="1" colspan="3">Add post</td></tr>
  13 </thead><tbody>
  14 <tr>    <td>open</td>   <td>http://localhostyii/demos/blog/</td>        <td></td></tr>
  15 <tr>    <td>clickAndWait</td>   <td>link=Login</td>     <td></td></tr>
  16 <tr>    <td>type</td>   <td>id=LoginForm_username</td>  <td>demo</td></tr>
  17 <tr>    <td>type</td>   <td>id=LoginForm_password</td>  <td>demo</td></tr>
  18 <tr>    <td>clickAndWait</td>   <td>name=yt0</td>       <td></td></tr>
  19 <tr>    <td>clickAndWait</td>   <td>link=Create New Post</td>   <td></td></tr>
  20 <tr>    <td>type</td>   <td>id=Post_title</td>  <td>Selenium Title</td></tr>
  21 <tr>    <td>store</td>  <td>javascript{ new Date().toString() }</td>    <td>datex</td></tr>
  22 <tr>    <td>type</td>   <td>id=Post_content</td>        <td>${datex}</td></tr>
  23 <tr>    <td>clickAndWait</td>   <td>name=yt0</td>       <td></td></tr>
  24 <tr>    <td>waitForText</td>    <td>link=Selenium Title AABBCC</td>     <td>Selenium Title AABBCC</td></tr>
  25 <tr>    <td>click</td>  <td>link=Logout (demo)</td>     <td></td></tr>
  26 </tbody></table>
  27 </body>
  28 </html>

deletePost.html

   1 <?xml version="1.0" encoding="UTF-8"?>
   2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   4 <head profile="http://selenium-ide.openqa.org/profiles/test-case">
   5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   6 <link rel="selenium.base" href="http://localhostyii/" />
   7 <title>deletePost</title>
   8 </head>
   9 <body>
  10 <table cellpadding="1" cellspacing="1" border="1">
  11 <thead>
  12 <tr><td rowspan="1" colspan="3">deletePost</td></tr>
  13 </thead><tbody>
  14 <tr>    <td>open</td>   <td>http://localhostyii/demos/blog/</td>        <td></td></tr>
  15 <tr>    <td>clickAndWait</td>   <td>link=Login</td>     <td></td></tr>
  16 <tr>    <td>type</td>   <td>id=LoginForm_username</td>  <td>demo</td></tr>
  17 <tr>    <td>type</td>   <td>id=LoginForm_password</td>  <td>demo</td></tr>
  18 <tr>    <td>clickAndWait</td>   <td>name=yt0</td>       <td></td></tr>
  19 <tr>    <td>clickAndWait</td>   <td>link=Manage Posts</td>      <td></td></tr>
  20 <tr>    <td>clickAndWait</td>   <td>css=img[alt=&quot;Delete&quot;]</td>        <td></td></tr>
  21 <tr>    <td>assertConfirmation</td>     <td>Are you sure you want to delete this item?</td>     <td></td></tr>
  22 <tr>    <td>clickAndWait</td>   <td>link=Logout</td>    <td></td></tr>
  23 </tbody></table>
  24 </body>
  25 </html>
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01