Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Ruby Ruportʵ¼ù—±¨±í²ÎÊýʵÏÖ£¨¶þ£©

±¾ÀýÔÚ  Ruby Ruportʵ¼ù—±¨±í²ÎÊýʵÏÖ µÄ»ù´¡ÉϽøÐиÄÔ죬ʵÏÖ±¨±íÖ´Ðж¨Òåʱ±¨±í²ÎÊýµÄÔö¡¢É¾¡¢¸Ä²Ù×÷
Ò»¡¢ÐÞ¸Äviews/report_executions/edit.html.erb
²»½öÏÔʾÔÚн¨±¨±íÖ´ÐÐʱ±£´æµÄ±¨±í²ÎÊý£¬»¹¿É¶¯Ì¬ÏÔʾʣÓàµÄ²ÎÊý£¨ÕâÀï¿ØÖƲÎÊý×î¶à¿É¶¨Òå5¸ö£©£¬ÕâÑù¿É±ÜÃâÒÅÍü¶¨Ò屨±í²ÎÊý»òÐèÒªÔö¼Ó±¨±í²ÎÊýµÄÏÖÏó
<h1>Editing report_execution</h1>
<% form_for(@report_execution) do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :execute_code %>:
<%= f.text_field :execute_code %>
</p>
<p>
<%= f.label :execute_name %>:
<%= f.text_field :execute_name %>
</p>
<p>
<%= f.label :report_definition_id %>:
<%=report_definitions_control%>
</p>
<p>
<%= f.label :report_template_id %>:
<%=report_templates_control%>
</p>
<h3>Report Parameters</h3><p/>
<!-- ÏÔʾÒÑÓеı¨±í²ÎÊý -->
<%if @report_parameters.length>0%>
<%for i in 0..@report_parameters.length-1%>
<p>
<%=hidden_field_tag 'parameter_id[]',@report_parameters[i].report_parameter_id%>
Parameter<%=i+1%>: <%=text_field_tag 'parameter_name[]',@report_parameters[i].parameter_name%>
Value<%=i+1%>: <%=text_field_tag 'parameter_value[]',@report_parameters[i].parameter_value%>
</p>
<%end%>
<%end%>
<!--ÏÔʾÆäËûµÄ²ÎÊý¿ò£¬ÈôÐèÒªÌí¼Ó²ÎÊý¿ÉÔڴ˲Ù×÷-->
<%for i in @report_parameters.length+1..5%>
<p>
Parameter<%=i%>: <%=text_field_tag 'parameter_other_name[]'%>
Value<%=i%>: <%=text_field_tag 'parameter_other_value[]'%>
</p>
<%end%>
<p>
<%= f.submit 'Update' %>
</p>
<% end %>
<%= link_to 'Show', @report_execution %> |
<%= link_to 'Back', report_executions_path %>
¶þ¡¢ÐÞ¸ÄReportExecutionsController
Ö÷ÒªÐÞ¸Äcr


Ïà¹ØÎĵµ£º

RUBYʵ¼ù—´øÃÜÂë¼ÓÃܵÄÓû§´´½¨¼°ÐÞ¸Ä

¿ª·¢»·¾³
Ruby: Ruby1.9.1
Rails: Rails2.3.5
Mysql:Mysql5.0.9
Driver:mysql-2.8.1-x86-mingw32.gem
IDE:Rubymine2.0.1
Ò»¡¢´´½¨Êý¾Ý±íUsers
ÀûÓÃRubyMine×Ô´øµÄScaffold¹¤¾ß´´½¨Êý¾Ý±íUsers£¬Ò²¿ÉÒÔÊÖ¶¯´´½¨
¶þ¡¢´´½¨ControllerºÍView
RubyÏîÄ¿—>ÓÒ¼ü—>Create Model
Íê³Éºó½«×Ô¶¯Éú³ÉÏàÓ¦µÄÎ ......

Watir Óï·¨£¨Web Application Testing in Ruby)

Watir Óï·¨£¨Web Application Testing in Ruby)
# watirµÄ°²×°
watieµÄ°²×°Çë²é¿´ -> Ruby libraryµÄ°²×°
# ʹÓÃWatir¹¤¾ß£¬ÐèÒªÔڽű¾ÖмÓÉÏ
require 'watir'
# ´´½¨Ò»¸öIEµÄʵÀý
ie = Watir::IE.new
»òÕßÔÚ´´½¨µÄͬʱֱ½Óתµ½Ò³Ãæ
ie = Watir::IE.start('http://www.text.com/')
WatirʹÓÃstart·½·¨ ......

ruby Óï·¨

±¾ÎÄת×Ô:
http://hi.baidu.com/24xinhui/blog/item/9f52dd34382e11325ab5f553.html
ruby-Óï·¨
2009Äê06ÔÂ20ÈÕ ÐÇÆÚÁù ÉÏÎç 00:21
http://www.blogjava.net/xxllnnn/archive/2009/01/18/251762.html
http://www.cnblogs.com/cnblogsfans/archive/2009/01/24/1380804.html
__setobj__ £¨2009-7-14£©
  &nbs ......

rubyºÍwatirѧϰ³£ÓÃÍøÕ¾ÕûÀí

ת×Ô51testing.com, Ô­¼û£ºhttp://bbs.51testing.com/thread-171535-1-1.html http://swik.net/Watir+Programming
http://www.pragprog.com/ #ºÜ¶àºÃµÄÔ´ÂëŶ
http://docs.rubygems.org/ #rubygems
http://www.fxruby.org/  #fxruby
http://groups.google.com/group/watir-general/topics #goog ......

Ruby Ruportʵ¼ù—±¨±í²ÎÊýʵÏÖ

´ËÀý×ÓÔÚ Ruby Ruportʵ¼ù—¼òµ¥±¨±íϵͳ ¼° Ruby Ruportʵ¼ù—ÖÐÎÄPDF±¨±íÖ®PRAWN  µÄ»ù´¡ÉϽøÐÐÍêÉÆ£¬Ìí¼ÓÁ˶Ա¨±í²ÎÊýµÄÉè¼Æ¼°ÊµÏÖ¡£
Ò»¡¢´´½¨Êý¾Ý±íreport_parameters
create table report_parameters
(report_parameter_id integer not null auto_increment,
report_execute_id integer not null, ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ