Problem with the field multiselect
Vamshi Krishna Kaniganti <vamshi.kaniganti-28guw/[email protected]> Thu, 11 Dec 2003 19:20:56 +0530
| Newsgroups | gmane.comp.web.tclwebtest |
|---|---|
| Message-ID | <[email protected]> |
--------------050906060807030206070207
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
i am facing a problem with a multiselect i am having two multi select boxes
My test case file is in red & the html file is in green & the error is
in violet please can any body help on this
do_request "file:///home/vamshi/Desktop/traineeship-desc.html"
#Entering the Values for Traineeship Description
assert text "Objectives"
assert text "Traineeship Focus"
debug [field find ~n "experience"]
field multiselect "Marketing"
debug [field find ~n "traineeship_focus"]
field multiselect "Corporate Social Responsibility"
field multiselect "Entrepreneurship"
field multiselect "Information And Society"
my file is
<form name="traineeship-description" method="post"
action="/insight/exchange/traineeship-desc" enctype="multipart/form-data">
<table border=1>
<tr><td colspan=2><b>Objectives</b></td> </tr>
<tr> <td><b>Traineeship Focus</b></td>
<td >
<select name="traineeship_focus" multiple="multiple" size="6">
<option value="1" selected="selected">Corporate Social
Responsibility</option>
<option value="2">Cultural Understanding</option>
<option value="3" selected="selected">Entrepreneurship</option>
<option value="4">Higher Education And Learning</option>
<option value="5" selected="selected">Information And
Society</option>
<option value="6">No Particular Traineeship Focus</option>
</select>
</td>
</tr>
<tr>
<td><span >*</span>
<b>Field of Experience</b>
</td>
<td >
<select name="experience" multiple="multiple" size="8">
<option value="1">Accounting</option>
<option value="2">Business Administration</option>
<option value="3">Development Studies</option>
<option value="4">Economics</option>
<option value="5">Linguistics Education</option>
<option value="6">Finance</option>
<option value="7" selected="selected">Information
Technology</option>
<option value="8" selected="selected">Marketing</option>
<option value="9">Other Studies</option>
<option value="10">Human Resource</option>
<option value="12">Cultural Education</option>
<option value="13">Subjects Education</option>
<option value="14">Social sciences</option>
</select>
</td>
</tr>
</table>
This field doesn't contain the following choices: `Marketing'. It's only
offerings are: {1 {Corporate Social Responsibility}} {2 {Cultural
Understanding}} {3 Entrepreneurship} {4 {Higher Education And Learning}}
{5 {Information And Society}} {6 {No Particular Traineeship Focus}}
in "temp.test" line 9:
#Entering the Values for Traineeship Description
assert text "Objectives"
assert text "Traineeship Focus"
debug [field find ~n "experience"]
field multiselect "Marketing"
----- FAILED: temp.test (took 0s) -----
DURATION: 0
1 of 1 tests FAILED:
temp.test
--------------050906060807030206070207
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ee" alink="#0000ee"
vlink="#551a8b">
<font color="#ff0000"><br>
<font color="#000000">i am facing a problem with a multiselect i am having
two multi select boxes <br>
<br>
My test case file is in red & the html file is in green & the error
is in violet please can any body help on this</font><br>
<br>
do_request <a class="moz-txt-link-rfc2396E" href="file:///home/vamshi/Desktop/traineeship-desc.html">"file:///home/vamshi/Desktop/traineeship-desc.html"</a> <br>
#Entering the Values for Traineeship Description<br>
assert text "Objectives"<br>
assert text "Traineeship Focus"<br>
debug [field find ~n "experience"]<br>
field multiselect "Marketing"<br>
<br>
debug [field find ~n "traineeship_focus"]<br>
field multiselect "Corporate Social Responsibility" <br>
field multiselect "Entrepreneurship" <br>
field multiselect "Information And Society"<br>
</font><br>
my file is <br>
<font color="#006600"><form name="traineeship-description" method="post"
action="/insight/exchange/traineeship-desc" enctype="multipart/form-data"><br>
<table border=1><br>
<tr><td colspan=2><b>Objectives</b></td>
</tr><br>
<tr> <td><b>Traineeship Focus</b></td><br>
<br>
<br>
<td ><br>
<select name="traineeship_focus" multiple="multiple" size="6"><br>
<option value="1" selected="selected">Corporate Social Responsibility</option><br>
<option value="2">Cultural Understanding</option><br>
<option value="3" selected="selected">Entrepreneurship</option><br>
<option value="4">Higher Education And Learning</option><br>
<option value="5" selected="selected">Information And
Society</option><br>
<option value="6">No Particular Traineeship Focus</option><br>
</select> <br>
</td><br>
</tr><br>
<br>
<tr><br>
<br>
<td><span >*</span><br>
<b>Field of Experience</b><br>
</td><br>
<td ><br>
<select name="experience" multiple="multiple" size="8"><br>
<option value="1">Accounting</option><br>
<option value="2">Business Administration</option><br>
<option value="3">Development Studies</option><br>
<option value="4">Economics</option><br>
<option value="5">Linguistics Education</option><br>
<option value="6">Finance</option><br>
<option value="7" selected="selected">Information Technology</option><br>
<option value="8" selected="selected">Marketing</option><br>
<option value="9">Other Studies</option><br>
<option value="10">Human Resource</option><br>
<option value="12">Cultural Education</option><br>
<option value="13">Subjects Education</option><br>
<option value="14">Social sciences</option><br>
</select> <br>
</td><br>
<br>
</tr><br>
</table></font><br>
<br>
<br>
<font color="#993399">This field doesn't contain the following choices: `Marketing'.
It's only offerings are: {1 {Corporate Social Responsibility}} {2 {Cultural
Understanding}} {3 Entrepreneurship} {4 {Higher Education And Learning}}
{5 {Information And Society}} {6 {No Particular Traineeship Focus}}<br>
in "temp.test" line 9:<br>
#Entering the Values for Traineeship Description<br>
assert text "Objectives"<br>
assert text "Traineeship Focus"<br>
debug [field find ~n "experience"]<br>
field multiselect "Marketing"<br>
<br>
----- FAILED: temp.test (took 0s) -----<br>
<br>
DURATION: 0<br>
1 of 1 tests FAILED:<br>
temp.test<br>
</font><br>
</body>
</html>
--------------050906060807030206070207--
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/