Skip to content

Commit

Permalink
Added Headers and Footers. #2475
Browse files Browse the repository at this point in the history
  • Loading branch information
vertigo17 committed Aug 12, 2023
1 parent 883c653 commit 6c07e38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<!-- Version management -->
<!-- Spring Version -->
<spring.version>5.3.20</spring.version>
<spring-security.version>5.6.9</spring-security.version>
<spring-security.version>5.6.12</spring-security.version>
<!-- JSON Lib Version -->
<json.version>20080701</json.version>
<gson.version>2.9.0</gson.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public String generatePdf(Tag tag) throws FileNotFoundException {
Table tableTmp;

for (TestCaseStepExecution step : exec.getTestCaseStepExecutionList()) {
if (!TestCaseExecution.CONTROLSTATUS_PE.equals(step.getReturnCode())) {
if (!TestCaseExecution.CONTROLSTATUS_NE.equals(step.getReturnCode())) {
// Creating a table
tableTmp = new Table(new float[]{500, 20})
.addCell(new Cell().add(new Paragraph().add(getTextFromString(step.getDescription(), 12, true).setTextAlignment(TextAlignment.LEFT)))
Expand All @@ -314,7 +314,7 @@ public String generatePdf(Tag tag) throws FileNotFoundException {
}

for (TestCaseStepActionExecution action : step.getTestCaseStepActionExecutionList()) {
if (!TestCaseExecution.CONTROLSTATUS_PE.equals(action.getReturnCode())) {
if (!TestCaseExecution.CONTROLSTATUS_NE.equals(action.getReturnCode())) {
tableTmp = new Table(new float[]{500, 20})
.addCell(new Cell().add(new Paragraph().add(getTextFromString(action.getDescription(), 12, true).setTextAlignment(TextAlignment.LEFT)))
.setBorder(Border.NO_BORDER).setBorderLeft(new SolidBorder(ColorConstants.BLUE, 3)).setBorderRight(new SolidBorder(1)).setBorderTop(new SolidBorder(1)).setBorderBottom(new SolidBorder(1)))
Expand All @@ -336,7 +336,7 @@ public String generatePdf(Tag tag) throws FileNotFoundException {

for (TestCaseStepActionControlExecution control : action.getTestCaseStepActionControlExecutionList()) {

if (!TestCaseExecution.CONTROLSTATUS_PE.equals(control.getReturnCode())) {
if (!TestCaseExecution.CONTROLSTATUS_NE.equals(control.getReturnCode())) {
tableTmp = new Table(new float[]{500, 20})
.addCell(new Cell().add(new Paragraph().add(getTextFromString(control.getDescription(), 12, true).setTextAlignment(TextAlignment.LEFT)))
.setBorder(Border.NO_BORDER).setBorderLeft(new SolidBorder(ColorConstants.GREEN, 3)).setBorderRight(new SolidBorder(1)).setBorderTop(new SolidBorder(1)).setBorderBottom(new SolidBorder(1)))
Expand Down

0 comments on commit 6c07e38

Please sign in to comment.