Skip to content

Commit

Permalink
bug fix in testcase save
Browse files Browse the repository at this point in the history
  • Loading branch information
gitorko committed Jan 19, 2016
1 parent 63c27a2 commit 56eeb9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/public/js/custom/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $(document).ready(function () {
},
colors: ['#DB7093', '#FFDEAD', '#7B68EE', '#2E8B57'],
title: {
text: 'Active Covered Requirement By Priority'
text: 'Requirement By Priority'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
Expand Down Expand Up @@ -45,7 +45,7 @@ $(document).ready(function () {
},
colors: ['#336633', '#A52A2A', '#FFD700'],
title: {
text: 'Covered Requirement By Status'
text: 'Requirement By Status'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
Expand Down
11 changes: 5 additions & 6 deletions src/main/resources/templates/testcase_form.ftl.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h3>Test Case</h3>
<#else>
<option value="20">20 Mins</option>
</#if>

<#if tc?? && tc.timeToRun == 30>
<option value="30" selected>30 Mins</option>
<#else>
Expand Down Expand Up @@ -224,9 +224,11 @@ <h3>Test Case</h3>
</tr>
</thead>
<tbody>
<#assign incId = 0>
<#if tsLst?? && tsLst?has_content>
<#list tsLst as ts>
<tr>
<#assign incId = incId+1>
<td>${ts.stepNumber}</td>
<td><textarea class="expandable-textarea" id="testStep_${ts.stepNumber}" name="testStep_${ts.stepNumber}" required>${ts.description}</textarea></td>
<td><textarea class="expandable-textarea" id="testExpected_${ts.stepNumber}" name="testExpected_${ts.stepNumber}" required>${ts.expected}</textarea></td>
Expand All @@ -235,6 +237,7 @@ <h3>Test Case</h3>
<#else>
<#list 1..2 as n>
<tr>
<#assign incId = incId+1>
<td>${n}</td>
<td><textarea class="expandable-textarea" id="testStep_${n}" name="testStep_${n}" required></textarea></td>
<td><textarea class="expandable-textarea" id="testExpected_${n}" name="testExpected_${n}" required></textarea></td>
Expand All @@ -249,11 +252,7 @@ <h3>Test Case</h3>

<div class="row">
<div class="col-md-12 text-right">
<#if tsLst??>
<input type="hidden" name="tstepCount" id="tstepCount" value="${tsLst?size}"/>
<#else>
<input type="hidden" name="tstepCount" id="tstepCount" value="2"/>
</#if>
<input type="hidden" name="tstepCount" id="tstepCount" value="${incId}"/>
<a id="addTestStep" href="#" title="Add Test Step" ><i class="fa fa-plus-square fa-2x"></i></a>
<a id="delTestStep" href="#" title="Delete Test Step" ><i class="fa fa-minus-square fa-2x"></i></a>
</div>
Expand Down

0 comments on commit 56eeb9f

Please sign in to comment.