RE: Redcase Plugin » patch_all.diff
redmine/vendor/plugins/redcase//app/views/redcase/_execution_list.rhtml 2012-01-06 23:04:38.000000000 +0000 | ||
---|---|---|
4 | 4 | |
5 | 5 |
<% form_for :list2, :url => { :action => 'update_exelists', :project_id => @project.id } do |f| %> |
6 | 6 |
<div> |
7 |
<h3 id="execution-settings-suite"> |
|
8 |
Execution suite: |
|
7 |
<table> |
|
8 |
<tr> |
|
9 |
<td> |
|
10 |
<h3 id="execution-settings-suite"> |
|
11 |
<%= l('label_execution_suite') %>: |
|
12 |
</h3> |
|
13 |
</td> |
|
14 |
<td> |
|
15 |
<h3 id="execution-settings-suite"> |
|
9 | 16 |
<%= f.select :id, @lists2.collect { |e| [ e.name, e.id ] } %> |
10 | 17 |
</h3> |
18 |
</td> |
|
19 |
</tr> |
|
20 |
<tr> |
|
21 |
<td> |
|
11 | 22 |
<h3 id="execution-settings-version"> |
12 |
Version: |
|
23 |
<%= l('label_version') %>: |
|
24 |
</h3> |
|
25 |
</td> |
|
26 |
<td> |
|
27 |
<h3 id="execution-settings-version"> |
|
13 | 28 |
<%= select_tag 'version', options_for_select(Version.find_all_by_project_id(@project.id).collect { |res| res.name }, @version.name ) %> |
14 | 29 |
</h3> |
30 |
</td> |
|
31 |
</tr> |
|
32 |
<tr> |
|
33 |
<td> |
|
15 | 34 |
<h3 id="execution-settings-environment"> |
16 |
Environment: |
|
35 |
<%= l('label_environment') %>: |
|
36 |
</h3> |
|
37 |
</td> |
|
38 |
<td> |
|
39 |
<h3 id="execution-settings-environment"> |
|
17 | 40 |
<%= select_tag 'environments', options_for_select(ExecutionEnvironment.find(:all, :conditions => "project_id = #{@project.id}", :order => 'name asc').collect { |res| [res.name, res.id] }) %> |
18 | 41 |
</h3> |
42 |
</td> |
|
43 |
</tr> |
|
44 |
</table> |
|
45 |
<br/> |
|
19 | 46 |
<%= observe_field :list2_id, :function => 'update_exe2_tree()', :with => 'list2_id' %> |
20 | 47 |
</div> |
21 | 48 |
<br/> |
redmine/vendor/plugins/redcase//app/views/redcase/_execution.rhtml 2012-01-06 22:04:16.000000000 +0000 | ||
---|---|---|
12 | 12 |
</td> |
13 | 13 |
|
14 | 14 |
<td id="execution_test_case_info_id" class="last-cell"> |
15 |
<h3>Execution info</h3>
|
|
15 |
<h3><%= l('label_execution_info') %></h3>
|
|
16 | 16 |
<div id="test-case-edit" style="display: none"> |
17 | 17 |
<div id="exec_descr_id" class="issue status-2 priority-2 created-by-me details"> |
18 | 18 |
<h2> |
19 | 19 |
<div style="font-weight: bold" id="test-case-subj" class="wiki"></div> |
20 | 20 |
</h2> |
21 |
<div style="font-weight: bold">Description:</div>
|
|
21 |
<div style="font-weight: bold"><%= l('label_description') %>:</div>
|
|
22 | 22 |
<div id="test-case-desc" class="wiki"></div> |
23 | 23 |
<div id="test-case-attach" class="wiki"></div> |
24 | 24 |
</div> |
25 |
Comment:
|
|
25 |
<%= l('label_comment') %>:
|
|
26 | 26 |
<br/> |
27 | 27 |
<%= text_area_tag 'exec-comment', nil, :rows => 4, :style => 'width: 95%' %> |
28 | 28 |
<br/> |
29 |
Result:
|
|
29 |
<%= l('label_result') %>:
|
|
30 | 30 |
<%= select_tag 'results', options_for_select(ExecutionResult.find(:all, :order => 'order_num asc').collect { |res| res.name }) %> |
31 | 31 |
|
32 |
<%= submit_tag 'Save', :onclick => 'execute()' %>
|
|
32 |
<%= submit_tag l(:label_button_save), :onclick => 'execute()' %>
|
|
33 | 33 |
<br/> |
34 | 34 |
</div> |
35 | 35 |
</td> |
... | ... | |
42 | 42 |
<tr> |
43 | 43 |
<td> |
44 | 44 |
<fieldset class="tabular redcase-content" style="height: auto"> |
45 |
<legend class="redcase-header">History</legend>
|
|
45 |
<legend class="redcase-header"><%= l('label_history') %></legend>
|
|
46 | 46 |
<div id="all-results"/> |
47 | 47 |
</fieldset> |
48 | 48 |
</td> |
redmine/vendor/plugins/redcase//app/views/redcase/_management_environments.rhtml 2012-01-06 09:56:32.000000000 +0000 | ||
---|---|---|
5 | 5 |
<!-- AJAX form to manage test environments --> |
6 | 6 |
<% remote_form_for :env, :url => { :action => 'update_environment', :project_id => @project.id, :act => 'save' }, :update => :management_environments_id, :complete => 'full()', :html => { :id => 'environment_form_id' } do |f| %> |
7 | 7 |
<h3> |
8 |
Environment: <%= f.select :id, environments.collect { |e| [ e.name, e.id ] } %>
|
|
8 |
<%= l('label_environment') %>: <%= f.select :id, environments.collect { |e| [ e.name, e.id ] } %>
|
|
9 | 9 |
<%= observe_field :env_id, :url => { :action => 'update_environment', :project_id => @project.id }, :with => 'env_id', :update => :management_environments_id %> |
10 | 10 |
</h3> |
11 | 11 |
<p> |
redmine/vendor/plugins/redcase//app/views/redcase/_management_execution_suites.rhtml 2012-01-06 10:28:07.000000000 +0000 | ||
---|---|---|
27 | 27 |
<!-- AJAX form to manage execution suites --> |
28 | 28 |
<% remote_form_for :list, :url => { :action => 'update_exelists', :project_id => @project.id, :act => 'save' }, :update => :management_execution_suites_id, :complete => 'full()', :html => { :id => 'list_form' } do |f| %> |
29 | 29 |
<h3> |
30 |
Execution suite: <%= f.select :id, @lists.collect { |e| [ e.name, e.id ] } %>
|
|
30 |
<%= l('label_execution_suite') %>: <%= f.select :id, @lists.collect { |e| [ e.name, e.id ] } %>
|
|
31 | 31 |
<%= observe_field :list_id, :function => 'update_exe_tree()', :with => 'list_id' %> |
32 | 32 |
</h3> |
33 | 33 |
<p> |
redmine/vendor/plugins/redcase//app/views/redcase/_management.rhtml 2012-01-06 09:54:10.000000000 +0000 | ||
---|---|---|
6 | 6 |
|
7 | 7 |
<!-- Test suites management --> |
8 | 8 |
<td id="management_test_suites_id"> |
9 |
<h3>Test suites</h3>
|
|
9 |
<h3><%= l('label_test_suites') %></h3>
|
|
10 | 10 |
<div id="management_test_suite_tree_id"/> |
11 | 11 |
</td> |
12 | 12 |
|
redmine/vendor/plugins/redcase//app/views/redcase/_report_combos.rhtml 2012-01-08 00:51:24.000000000 +0000 | ||
---|---|---|
1 | ||
2 |
Version: |
|
3 |
<%= select_tag(:versionx, options_from_collection_for_select(Version.find_all_by_project_id(@project.id), 'id', 'name', @version.id), :style => 'width: 85px') %> |
|
4 |
<%= observe_field :versionx, :url => { :action => 'update_combos', :project_id => @project.id, :environment_id => @environment.id }, :with => 'version_id', :update => 'combos_id' %> |
|
5 |
<%= observe_field :versionx, :url => { :action => 'get_graph', :project_id => @project.id, :environment_id => @environment.id }, :with => 'version_id', :update => 'chart_id' %> |
|
6 |
<%= observe_field :versionx, :url => { :action => 'get_advanced_execution', :project_id => @project.id, :environment_id => @environment.id }, :with => 'version_id', :update => 'report_results_table_id' %> |
|
7 |
<%= observe_field :versionx, :url => { :action => 'update_combos2', :project_id => @project.id, :time => Time.now, :environment_id => @environment.id }, :with => 'version_id', :update => 'download_button_id' %> |
|
8 |
|
|
9 | ||
10 |
Environment: |
|
11 |
<%= select_tag :environment, options_from_collection_for_select(ExecutionEnvironment.find_all_by_project_id(@project.id), 'id', 'name', @environment.id), :style => 'width: 125px' %> |
|
1 |
<table><tr><td> |
|
2 |
<%= l('label_version') %>:</td><td> |
|
3 |
<%= select_tag(:versionx, options_from_collection_for_select(Version.find_all_by_project_id(@project.id), 'id', 'name', @version.id), :style => 'width: 225px') %> |
|
4 |
<%= observe_field :versionx, :url => { :action => 'update_combos', :project_id => @project.id, :environment_id => @environment.id}, :with => 'version_id', :update => 'combos_id' %> |
|
5 |
<%= observe_field :versionx, :url => { :action => 'get_graph', :project_id => @project.id, :environment_id => @environment.id}, :with => 'version_id', :update => 'chart_id' %> |
|
6 |
<%= observe_field :versionx, :url => { :action => 'get_advanced_execution', :project_id => @project.id, :environment_id => @environment.id}, :with => 'version_id', :update => 'report_results_table_id' %> |
|
7 |
<%= observe_field :versionx, :url => { :action => 'update_combos2', :project_id => @project.id, :time => Time.now, :environment_id => @environment.id}, :with => 'version_id', :update => 'download_button_id' %> |
|
8 |
</td></tr><tr><td> |
|
9 |
<%= l('label_environment') %>:</td><td> |
|
10 |
<%= select_tag :environment, options_from_collection_for_select(ExecutionEnvironment.find_all_by_project_id(@project.id), 'id', 'name', @environment.id), :style => 'width: 225px' %> |
|
12 | 11 |
<%= observe_field :environment, :url => { :action => 'update_combos', :project_id => @project.id, :version_id => @version.id }, :with => 'environment_id', :update => 'combos_id' %> |
13 | 12 |
<%= observe_field :environment, :url => { :action => 'get_graph', :project_id => @project.id, :version_id => @version.id }, :with => 'environment_id', :update => 'chart_id' %> |
14 | 13 |
<%= observe_field :environment, :url => { :action => 'get_advanced_execution', :project_id => @project.id, :version_id => @version.id }, :with => 'environment_id', :update => 'report_results_table_id' %> |
15 |
<%= observe_field :environment, :url => { :action => 'update_combos2', :project_id => @project.id, :time => Time.now, :version_id => @version.id }, :with => 'environment_id', :update => 'download_button_id' %> |
|
14 |
<%= observe_field :environment, :url => { :action => 'update_combos2', :project_id => @project.id, :time => Time.now, :version_id => @version.id}, :with => 'environment_id', :update => 'download_button_id' %> |
|
15 |
</td></tr></table> |
redmine/vendor/plugins/redcase//app/views/redcase/_report_results.rhtml 2012-01-06 10:35:47.000000000 +0000 | ||
---|---|---|
21 | 21 | |
22 | 22 |
<table class="redcase-row" style="width: 100%; margin: 0px; text-align: center"> |
23 | 23 |
<tr style="font-weight: bold; background-color: #507aaa; color: white; text-align: center; vertical-align: top"> |
24 |
<td style="width: 45px; vertical-align: middle; border-left-width: 0px; border-top-width: 0px; padding: 6px">ID</td>
|
|
25 |
<td style="width: 110px; vertical-align: middle; border-top-width: 0px; padding: 6px">Name</td>
|
|
26 |
<td style="width: 80px; vertical-align: middle; border-top-width: 0px; padding: 6px">Date</td>
|
|
24 |
<td style="width: 45px; vertical-align: middle; border-left-width: 0px; border-top-width: 0px; padding: 6px"><%= l('label_id') %></td>
|
|
25 |
<td style="width: 110px; vertical-align: middle; border-top-width: 0px; padding: 6px"><%= l('label_name') %></td>
|
|
26 |
<td style="width: 80px; vertical-align: middle; border-top-width: 0px; padding: 6px"><%= l('label_date') %></td>
|
|
27 | 27 |
<td style="width: 115px; vertical-align: middle; border-top-width: 0px; padding: 6px"> |
28 | 28 |
<%= select('filter_id', nil, ExecutionResult.all.collect { |x| [x.name, x.id] } << ['All results', 0], { :selected => 0 }, { :style => 'width: 100%' }) %> |
29 | 29 |
<%= observe_field 'filter_id_', :function => "refresh()" %> |
30 | 30 |
</td> |
31 |
<td style="vertical-align: middle; border-top-width: 0px; padding: 6px">Executor</td>
|
|
31 |
<td style="vertical-align: middle; border-top-width: 0px; padding: 6px"><%= l('label_executor') %></td>
|
|
32 | 32 |
<td style="width: 25px; vertical-align: middle; border-right-width: 0px; border-top-width: 0px; padding: 6px"> </td> |
33 | 33 |
</tr> |
34 | 34 |
<% @results.each do |x| %> |
redmine/vendor/plugins/redcase//assets/javascripts/scripts.js 2012-01-07 20:10:08.000000000 +0000 | ||
---|---|---|
21 | 21 |
Ext.dd.StatusProxy.prototype.animRepair = false; |
22 | 22 |
Ext.QuickTips.init(); |
23 | 23 |
Ext.chart.Chart.CHART_URL = '/plugin_assets/redcase/javascripts/ext-3.1.1/resources/charts.swf'; |
24 |
|
|
25 | 24 |
Ext.override(Ext.tree.TreeNodeUI, |
26 | 25 |
{ |
27 | 26 |
renderElements: function(n, a, targetNode, bulkRender) |
... | ... | |
239 | 238 |
|
240 | 239 |
function request(method, params, success, failureMsg) |
241 | 240 |
{ |
242 |
params.format = 'json'; |
|
243 |
conn = new Ext.data.Connection(); |
|
241 |
params.format = 'json'; |
|
242 |
conn = new Ext.data.Connection(); |
|
243 |
var csrf = Ext.select("meta[name='csrf-token']").first(); |
|
244 |
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
245 | ||
246 |
conn.defaultHeaders = Ext.apply(conn.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
244 | 247 |
conn.request( |
245 | 248 |
{ |
246 | 249 |
url : context + method, |
... | ... | |
258 | 261 |
* Moving test case inside 'Test cases' tree. |
259 | 262 |
*/ |
260 | 263 |
function onMove(dropEvent) |
261 |
{ |
|
264 |
{ |
|
265 |
var csrf = Ext.select("meta[name='csrf-token']").first(); |
|
266 |
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
262 | 267 |
if(dropEvent.dropNode.isLeaf()) |
263 | 268 |
{ |
264 | 269 |
request( |
... | ... | |
306 | 311 |
function onxMove(dropEvent) |
307 | 312 |
{ |
308 | 313 |
conn = new Ext.data.Connection(); |
309 |
|
|
314 |
|
|
315 |
var csrf = Ext.select("meta[name='csrf-token']").first(); |
|
316 |
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
317 |
conn.defaultHeaders = Ext.apply(conn.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
310 | 318 |
if(dropEvent.dropNode.isLeaf()) |
311 | 319 |
{ |
312 | 320 |
if(dropEvent.target.getOwnerTree() != dropEvent.dropNode.getOwnerTree()) |
... | ... | |
425 | 433 |
{ |
426 | 434 |
if (btn == 'ok') |
427 | 435 |
{ |
428 |
conn = new Ext.data.Connection(); |
|
436 |
conn = new Ext.data.Connection(); |
|
437 |
|
|
438 | ||
439 |
var csrf = Ext.select("meta[name='csrf-token']").first(); |
|
440 |
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
441 |
conn.defaultHeaders = Ext.apply(conn.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
429 | 442 |
conn.request( |
430 | 443 |
{ |
431 | 444 |
url : 'redcase/test_suite_manager', |
... | ... | |
463 | 476 |
|
464 | 477 |
parentNode = currentNode.parentNode; |
465 | 478 |
conn = new Ext.data.Connection(); |
466 |
|
|
479 |
var csrf = Ext.select("meta[name='csrf-token']").first(); |
|
480 |
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
481 |
conn.defaultHeaders = Ext.apply(conn.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
467 | 482 |
if(currentNode.isLeaf()) |
468 | 483 |
{ |
469 | 484 |
conn.request( |
... | ... | |
520 | 535 |
|
521 | 536 |
parentNode = currentNode.parentNode; |
522 | 537 |
conn = new Ext.data.Connection(); |
523 |
|
|
538 |
var csrf = Ext.select("meta[name='csrf-token']").first(); |
|
539 |
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
540 |
conn.defaultHeaders = Ext.apply(conn.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
524 | 541 |
conn.request( |
525 | 542 |
{ |
526 | 543 |
url : 'redcase/reassign_test_case', |
... | ... | |
548 | 565 |
{ |
549 | 566 |
if (btn == 'ok') |
550 | 567 |
{ |
551 |
conn = new Ext.data.Connection(); |
|
568 |
conn = new Ext.data.Connection(); |
|
569 |
var csrf = Ext.select("meta[name='csrf-token']").first(); |
|
570 |
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
571 |
conn.defaultHeaders = Ext.apply(conn.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
552 | 572 |
conn.request( |
553 | 573 |
{ |
554 | 574 |
url : 'redcase/execution_suite_manager', |
... | ... | |
591 | 611 |
return; |
592 | 612 |
} |
593 | 613 |
parentNode = currentNode.parentNode; |
594 |
conn = new Ext.data.Connection(); |
|
614 |
conn = new Ext.data.Connection(); |
|
615 |
var csrf = Ext.select("meta[name='csrf-token']").first(); |
|
616 |
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
617 |
conn.defaultHeaders = Ext.apply(conn.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
595 | 618 |
conn.disableCaching = false; |
596 | 619 |
if (currentNode.isLeaf()) |
597 | 620 |
{ |
... | ... | |
620 | 643 |
|
621 | 644 |
parentNode = xcurrentNode.parentNode; |
622 | 645 |
conn = new Ext.data.Connection(); |
623 |
|
|
646 |
var csrf = Ext.select("meta[name='csrf-token']").first(); |
|
647 |
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
648 |
conn.defaultHeaders = Ext.apply(conn.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
624 | 649 |
if (xcurrentNode.isLeaf()) |
625 | 650 |
{ |
626 | 651 |
conn.request( |
... | ... | |
741 | 766 |
|
742 | 767 |
editorSuite.on('beforecomplete', function(editor, newValue, originalValue) { |
743 | 768 |
|
744 |
conn = new Ext.data.Connection(); |
|
769 |
conn = new Ext.data.Connection(); |
|
770 |
var csrf = Ext.select("meta[name='csrf-token']").first(); |
|
771 |
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
772 |
conn.defaultHeaders = Ext.apply(conn.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
745 | 773 |
|
746 | 774 |
conn.request({ |
747 | 775 |
url: 'redcase/test_suite_manager', |
... | ... | |
774 | 802 |
editorExec.on('beforecomplete', function(editor, newValue, originalValue) { |
775 | 803 |
|
776 | 804 |
conn = new Ext.data.Connection(); |
777 |
|
|
805 |
var csrf = Ext.select("meta[name='csrf-token']").first(); |
|
806 |
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
807 |
conn.defaultHeaders = Ext.apply(conn.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
778 | 808 |
conn.request({ |
779 | 809 |
url: 'redcase/execution_suite_manager', |
780 | 810 |
method: 'GET', |
... | ... | |
864 | 894 |
return findNext(next); |
865 | 895 |
} |
866 | 896 |
} |
867 |
|
|
868 |
|
|
869 |
function execute() { |
|
897 |
function execute() { |
|
870 | 898 |
node = exec2Tree.getSelectionModel().getSelectedNode(); |
871 | 899 |
result = Ext.get('results'); |
872 | 900 |
envs = Ext.get('environments'); |
873 | 901 |
version = Ext.get('version'); |
874 | 902 |
comment = Ext.get('exec-comment'); |
875 |
conn = new Ext.data.Connection(); |
|
903 |
conn = new Ext.data.Connection(); |
|
904 |
var csrf = Ext.select("meta[name='csrf-token']").first(); |
|
905 |
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
906 |
conn.defaultHeaders = Ext.apply(conn.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
876 | 907 |
Element.show('ajax-indicator'); |
877 | 908 |
conn.request({ |
878 | 909 |
url: 'redcase/execute', |
... | ... | |
883 | 914 |
"version": version.getValue(false), |
884 | 915 |
"result": result.getValue(false), |
885 | 916 |
"envs": envs.getValue(false), |
886 |
"comment": comment.getValue(false),
|
|
917 |
"comment": comment.getValue(false), |
|
887 | 918 |
"format": "json" |
888 | 919 |
}, |
889 | 920 |
success: function(responseObject) { |
... | ... | |
912 | 943 |
r = Ext.get('all-results-d'); |
913 | 944 |
r.setDisplayed('none'); |
914 | 945 |
if (node.isLeaf()) { |
915 |
conn = new Ext.data.Connection(); |
|
946 |
conn = new Ext.data.Connection(); |
|
947 |
var csrf = Ext.select("meta[name='csrf-token']").first(); |
|
948 |
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
916 | 949 |
Element.show('ajax-indicator'); |
917 | 950 |
conn.request({ |
918 | 951 |
waitMsg: 'loading test case info', |
... | ... | |
999 | 1032 |
|
1000 | 1033 |
function getHistory(rs) |
1001 | 1034 |
{ |
1002 |
unique = {}
|
|
1003 |
txt = "<table class='redcase-row' width='100%'>" |
|
1004 |
txt += "<tr style='font-weight: bold; background-color: #eeeeee'><td>Date</td><td>Result</td><td>Comments</td><td>Executor</td><td>Environment</td><td>Version</td></tr>" |
|
1035 |
unique = {} |
|
1036 |
txt = "<table class='redcase-row' width='100%'>" |
|
1037 |
txt += "<tr style='font-weight: bold; background-color: #eeeeee'><td>date</td><td>result</td><td>comments</td><td>executor</td><td>environment</td><td>version</td></tr>"; |
|
1005 | 1038 |
for(i = 0; i < rs.length; i++) { |
1006 | 1039 |
switch (rs[i].result) |
1007 | 1040 |
{ |
... | ... | |
1076 | 1109 |
function update_exe_tree() |
1077 | 1110 |
{ |
1078 | 1111 |
choosen = Ext.get('list_id').getValue(false); |
1079 |
conn = new Ext.data.Connection(); |
|
1112 |
conn = new Ext.data.Connection(); |
|
1113 |
var csrf = Ext.select("meta[name='csrf-token']").first(); |
|
1114 |
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
1080 | 1115 |
nameEl = Ext.get('list_name'); |
1081 |
|
|
1082 | 1116 |
Element.show('ajax-indicator'); |
1083 |
|
|
1084 | 1117 |
conn.request( |
1085 | 1118 |
{ |
1086 | 1119 |
url : 'redcase/index', |
... | ... | |
1113 | 1146 |
{ |
1114 | 1147 |
choosen = Ext.get('list2_id').getValue(false); |
1115 | 1148 |
conn = new Ext.data.Connection(); |
1116 |
|
|
1149 |
var csrf = Ext.select("meta[name='csrf-token']").first(); |
|
1150 |
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')}); |
|
1117 | 1151 |
Element.show('ajax-indicator'); |
1118 | 1152 |
|
1119 | 1153 |
conn.request( |
redmine/vendor/plugins/redcase//assets/stylesheets/styles.css 2012-01-06 23:17:47.000000000 +0000 | ||
---|---|---|
70 | 70 |
|
71 | 71 |
#execution-settings-suite select |
72 | 72 |
{ |
73 |
border: 1px navy solid; |
|
73 |
border: 1px navy solid; |
|
74 |
width: 250px; |
|
74 | 75 |
} |
75 | 76 |
|
76 | 77 |
#execution-settings-version |
... | ... | |
80 | 81 |
|
81 | 82 |
#execution-settings-version select |
82 | 83 |
{ |
83 |
border: 1px purple solid; |
|
84 |
border: 1px purple solid; |
|
85 |
width: 250px; |
|
84 | 86 |
} |
85 | 87 |
|
86 | 88 |
#execution-settings-environment |
... | ... | |
90 | 92 |
|
91 | 93 |
#execution-settings-environment select |
92 | 94 |
{ |
93 |
border: 1px maroon solid; |
|
95 |
border: 1px maroon solid; |
|
96 |
width: 250px; |
|
94 | 97 |
} |
95 | 98 |
|
96 | 99 |
#execution_test_case_info_id h3 |
... | ... | |
465 | 468 |
{ |
466 | 469 |
line-height:inherit; |
467 | 470 |
font-size:inherit; |
468 |
} |
|
471 |
} |
redmine/vendor/plugins/redcase//config/locales/de.yml 2012-01-06 22:09:27.000000000 +0000 | ||
---|---|---|
1 |
# German strings go here for Rails i18n |
|
2 |
|
|
3 |
de: |
|
4 |
label_test_case_management : "Management" |
|
5 |
label_test_case_execution : "Durchführung" |
|
6 |
label_test_case_report : "Auswertung" |
|
7 |
label_test_suites : "Testreihen" |
|
8 |
label_execution_suite : "Ausführungsfolgen" |
|
9 |
label_environment : "Testumgebung" |
|
10 |
label_version : "Version" |
|
11 |
label_execution_info : "Ausführungsbeschreibung" |
|
12 |
label_description : "Beschreibung" |
|
13 |
label_history : "Verlauf" |
|
14 |
label_id : "Nr" |
|
15 |
label_name : "Name" |
|
16 |
label_date : "Datum" |
|
17 |
label_result : "Ergebnis" |
|
18 |
label_comments : "Kommentare" |
|
19 |
label_comment : "Kommentar" |
|
20 |
label_executor : "Ausführer" |
|
21 |
label_not_available : "Nicht verfügbar" |
|
22 |
label_report : "Auswertung" |
|
23 |
label_full_report : "Vollstäger Bericht" |
|
24 |
label_test_case_specification : "Testfallspezifikation" |
|
25 |
label_button_save : "Speichern" |
|
26 | ||
27 |
|
redmine/vendor/plugins/redcase//config/locales/en.yml 2012-01-06 22:02:09.000000000 +0000 | ||
---|---|---|
4 | 4 |
|
5 | 5 |
label_test_case_management : "Management" |
6 | 6 |
label_test_case_execution : "Execution" |
7 |
label_test_case_report : "Report" |
|
7 |
label_test_case_report : "Report" |
|
8 |
label_test_suites : "Test suites" |
|
9 |
label_execution_suite : "Execution suite" |
|
10 |
label_environment : "Environment" |
|
11 |
label_version : "Version" |
|
12 |
label_execution_info : "Execution Info" |
|
13 |
label_description : "Description" |
|
14 |
label_history : "History" |
|
15 |
label_id : "ID" |
|
16 |
label_name : "Name" |
|
17 |
label_date : "Date" |
|
18 |
label_result : "Result" |
|
19 |
label_comments : "Comments" |
|
20 |
label_comment : "Comment" |
|
21 |
label_executor : "Executor" |
|
22 |
label_not_available : "Not Available" |
|
23 |
label_report : "Report" |
|
24 |
label_full_report : "Full Report" |
|
25 |
label_test_case_specification : "Test case specification" |
|
26 |
label_button_save : "save" |
|
27 | ||
28 | ||
29 | ||
30 |
|
- « Previous
- 1
- 2
- Next »