Results 1 to 2 of 2
- 03-05-2013, 10:51 AM #1
Member
- Join Date
- Mar 2013
- Posts
- 1
- Rep Power
- 0
The vm file is not being rendered properly
Hi,
I have the above code in .vm file but it is not rendering the #foreach block.Java Code:<body> <h1>Schedule Execution Notification</h1> <p>Schedule <b>${schedule.name}</b> started executing at $date.format('EEEE dd/MM/yyyy HH:mm:ss',$execution.creationDate) for a duration of $date.format('mm:ss',$execution.duration) minutes resulting in <i><b>#if(${schedule.passed})a pass#{else}failure#end</b></i>.</p> <p/> <table cellspacing="0" border="1" cellpadding="0"> <tr> <th>Name</th> <th>Type</th> <th>Duration</th> <th>Result</th> </tr> #foreach($result in $execution.resultSet) <tr> <td>#if($result.type=="TEST_RESULT") ${result.test.name} #else ${result.suite.name} #end</td> <td>#if($result.type=="TEST_RESULT") Test #else Suite #end</td> <td>$date.format('mm:ss',$result.duration)</td> <td>${result.passed}</td> </tr> #end </table> <p/> <p class="signature">Regression System</p> </body>
I am wondering if it is being executed or not.Can anyone help on how to check if there is any value set variable i used in foreach block like execution.resultSet ,result.test.name ,result.suite.name
I am trying to write code so that the above information will not be dispalyed in a tapestry page but will be attached as email and sent to users.
My email is getting generated and being sent to my inbox but the content looks as below:
Schedule Execution Notification
Schedule testing binary started executing at Monday 04/03/2013 17:56:57 for a duration of 30:14 minutes resulting in .
Name Type Duration Result
Regression System
Please give me some suggestions as to why its not showing the values below the columns Name,Type,Duration,Result.
INFO:It works if i use it as a plain HTML code.
- 03-05-2013, 01:50 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,466
- Rep Power
- 16
Similar Threads
-
Graphics plain 2D objects are not rendered while an action occurred!!!
By ravi.joshi53 in forum AWT / SwingReplies: 4Last Post: 01-30-2012, 10:22 AM -
How to get rendered objects in a form of image from the canvas/Panel?
By ravi.joshi53 in forum AWT / SwingReplies: 6Last Post: 01-14-2012, 05:14 PM -
How to call javascript when the html is rendered from PERL
By camaross in forum New To JavaReplies: 3Last Post: 05-16-2011, 01:50 AM -
Canvas rendered over JCombobox menu
By JSK in forum AWT / SwingReplies: 2Last Post: 11-19-2007, 08:00 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks