Author: andrei_exadel
Date: 2008-05-28 07:01:43 -0400 (Wed, 28 May 2008)
New Revision: 8799
Modified:
trunk/test-applications/seleniumTest/src/main/webapp/layout/layout.xhtml
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommandButton/ajaxButtonTest.xhtml
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommandLink/ajaxLinkTest.xhtml
Log:
Modified: trunk/test-applications/seleniumTest/src/main/webapp/layout/layout.xhtml
===================================================================
--- trunk/test-applications/seleniumTest/src/main/webapp/layout/layout.xhtml 2008-05-28
10:47:21 UTC (rev 8798)
+++ trunk/test-applications/seleniumTest/src/main/webapp/layout/layout.xhtml 2008-05-28
11:01:43 UTC (rev 8799)
@@ -41,8 +41,17 @@
return '#{templateBean.parentId}';
}
- function writeStatus (mess) {
+ function writeStatus (mess, failed) {
document.getElementById('_Selenium_Test_Status_Message').value = mess;
+ if (failed) {
+ var o = document.getElementById('_Selenium_Test_Status_Message');
+ o.style.backgroundColor= '#F7A784';
+ o.style.fontWeight = 'bold';
+ }else {
+ var o = document.getElementById('_Selenium_Test_Status_Message');
+ o.style.backgroundColor= '';
+ o.style.fontWeight = '';
+ }
}
</script>
@@ -57,7 +66,7 @@
<div id="_Selenium_Test_ControlPoint1" style="display:
none;">Control1</div>
<h:panelGrid id="_Selenium_Test_Common_Grid">
<div>
- <b>Status: </b> <input style="border: 0px; color: black; width:
500px" id="_Selenium_Test_Status_Message" />
+ <b>Status: </b> <input style="border: 0px; color: black; width:
700px" readonly="true" id="_Selenium_Test_Status_Message" />
</div>
<br/>
<div>
Modified:
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommandButton/ajaxButtonTest.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommandButton/ajaxButtonTest.xhtml 2008-05-28
10:47:21 UTC (rev 8798)
+++
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommandButton/ajaxButtonTest.xhtml 2008-05-28
11:01:43 UTC (rev 8799)
@@ -15,6 +15,14 @@
.no {
color: gray;
}
+
+ .passed {
+ background-color: #ACE6B3;
+ }
+
+ .failed {
+ background-color: #CECCCC;
+ }
</ui:define>
<ui:define name="component">
<script type="text/javascript">
@@ -34,17 +42,23 @@
if (responseData) {
if (!equals(responseData.action,testAction)) {
b = (!responseData.action) ? 'Error: action has been skipped' : 'Error:
action should be skipped';
+ writeStatus('Test button id=['+id+'] failure cased by : ' + b,
true);
}
if (!equals(responseData.actionListener,testActionListener)) {
b = (!responseData.actionListener) ? 'Error: actionListener has been
skipped' : 'Error: actionListener should be skipped';
+ writeStatus('Test button id=['+id+'] failure cased by : ' + b,
true);
}
if (!equals(responseData.FListener,testFListener)) {
b = (!responseData.FListener) ? 'Error: calling f:listener has been
skipped' : 'Error: f:listener should be skipped';
+ writeStatus('Test button id=['+id+'] failure cased by : ' + b,
true);
}
if (!equals(responseData.input,testInput)) {
b = (!responseData.input) ? 'Error: input value has not been updated' :
'Error: input value should not been updated';
+ writeStatus('Test button id=['+id+'] failure cased by : ' + b,
true);
}
}else if (testData){
+ writeStatus('Test button id=['+id+'] failure caused by: Error: no
response data received', true);
+ markButton(id, false);
return "Error: no response data received";
}
responseData = null;
@@ -52,7 +66,6 @@
writeStatus('Test button id=['+id+'] passed succesfully');
markButton(id, true);
}else {
- writeStatus('Test button id=['+id+'] failed');
markButton(id, false);
}
return b;
@@ -90,7 +103,8 @@
<table border="1px" cellspacing="0"
cellpadding="3">
<thead style="font-size: 13px; color: green; font-style: italic;">
<tr>
- <th>button</th><th>Action</th><th>ActionListener</th><th>F:listener</th><th>AjaxSingle</th><th>Immediate</th><th>Validation</th>
+ <th>button</th><th>check
control</th><th>AjaxSingle</th><th>Immediate</th><th>Validation
Failed</th>
+ <th>Action</th><th>ActionListener</th><th>F:listener</th><th>Value
Submit</th>
</tr>
</thead>
<tbody>
@@ -107,12 +121,14 @@
<a4j:ajaxListener
type="org.ajax4jsf.bean.TestListener"></a4j:ajaxListener>
</a4j:commandButton>
</td>
- <td class="yes">Yes</td>
- <td class="yes">Yes</td>
- <td class="yes">Yes</td>
+ <td><input type="button" value="check"
onclick="checkButton(getParentId() + '_form:b1',true, true, true, true,
true)" /></td>
<td class="no">No</td>
<td class="no">No</td>
- <td class="no">Passed</td>
+ <td class="no">No</td>
+ <td class="passed"> </td>
+ <td class="passed"> </td>
+ <td class="passed"> </td>
+ <td class="passed"> </td>
</tr>
<tr>
<td>
@@ -126,12 +142,14 @@
</a4j:commandButton>
</td>
- <td class="yes">Yes</td>
- <td class="yes">Yes</td>
+ <td><input id="check2" value="check"
type="button" onclick="checkButton(getParentId() +
'_form:b2',false, false, false, false, false)" /></td>
<td class="no">No</td>
<td class="no">No</td>
- <td class="no">No</td>
- <td class="yes">Failed</td>
+ <td class="yes">Yes</td>
+ <td class="failed"> </td>
+ <td class="failed"> </td>
+ <td class="failed"> </td>
+ <td class="failed"> </td>
</tr>
<tr>
<td>
@@ -147,12 +165,14 @@
<a4j:ajaxListener
type="org.ajax4jsf.bean.TestListener"></a4j:ajaxListener>
</a4j:commandButton>
</td>
+ <td><input id="check3" value="check"
type="button" onclick="checkButton(getParentId() + '_form:b3',true,
true, true, true, false)" /></td>
+ <td class="no">No</td>
<td class="yes">Yes</td>
- <td class="yes">Yes</td>
- <td class="yes">Yes</td>
<td class="no">No</td>
- <td class="yes">Yes</td>
- <td class="no">Passed</td>
+ <td class="passed"> </td>
+ <td class="passed"> </td>
+ <td class="passed"> </td>
+ <td class="failed"> </td>
</tr>
<tr>
<td>
@@ -169,12 +189,15 @@
<a4j:ajaxListener
type="org.ajax4jsf.bean.TestListener"></a4j:ajaxListener>
</a4j:commandButton>
</td>
+ <td><input id="check4" value="check"
type="button" onclick="checkButton(getParentId() + '_form:b4',true,
true, true, true, false)" /></td>
<td class="yes">Yes</td>
<td class="yes">Yes</td>
<td class="yes">Yes</td>
- <td class="yes">Yes</td>
- <td class="yes">Yes</td>
- <td class="yes">Failed</td>
+ <td class="passed"> </td>
+ <td class="passed"> </td>
+ <td class="passed"> </td>
+ <td class="failed"> </td>
+
</tr>
</tbody>
</table>
Modified:
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxCommandLink/ajaxLinkTest.xhtml
===================================================================
(Binary files differ)