Commits

Sushil Meher committed 0ab5ec4

Commit is for functional test case for attaching file notes for account

Comments (0)

Files changed (3)

app/protected/modules/notes/tests/functional/AttachTestSuite.html

+<?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://localhost/" />
+<title>Notes Attach Test</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">New Test</td></tr>
+</thead><tbody>
+<tr><td><a href="cases/LoginSuperUser.html">Login as Super User</a></td></tr>
+<tr><td><a href="cases/AttachNotes.html">Attach Notes</a></td></tr>
+
+</tbody></table>
+</body>
+</html>

app/protected/modules/notes/tests/functional/cases/AttachNotes.html

+<?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://localhost/" />
+<title>Notes Attach Test</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">New Test</td></tr>
+</thead><tbody>
+<tr>
+	<td>storeGlobal</td>
+	<td>javascript{Math.floor(Math.random()*11000)}</td>
+	<td>randomSuffix</td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>//div[@id='MenuView']/ul/li[2]/a/span[2]</td>
+	<td></td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>css=a.icon-create</td>
+	<td></td>
+</tr>
+<tr>
+	<td>type</td>
+	<td>id=Account_name</td>
+	<td>My Account ${randomSuffix}</td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>id=save</td>
+	<td></td>
+</tr>
+<tr>
+	<td>click</td>
+	<td>id=show-more-panels-link-yt3</td>
+	<td></td>
+</tr>
+<tr>
+	<td>type</td>
+	<td>id=Note_description</td>
+	<td>test</td>
+</tr>
+<tr>
+	<td>type</td>
+	<td>id=Note_files</td>
+	<td>C:\Inetpub\selenium\zurmo_bleeding\app\protected\modules\notes\tests\functional\files\testNotes.txt</td>
+</tr>
+
+<!-- assert whether delete button has appeared or not-->
+<tr>
+	<td>assertVisible</td>
+	<td>//div[@id='fileUploadyw1']/div[3]/table/tbody/tr/td[3]/button</td>
+	<td></td>
+</tr>
+<tr>
+	<td>click</td>
+	<td>css=span.z-label</td>
+	<td></td>
+</tr>
+<tr>
+	<td>click</td>
+	<td>id=save</td>
+	<td></td>
+</tr>
+<tr>
+	<td>assertVisible</td>
+	<td>link=testNotes.txt</td>
+	<td></td>
+</tr>
+</tbody></table>
+</body>
+</html>

app/protected/modules/notes/tests/functional/files/testNotes.txt

+test
+
+