Skip to content

Commit

Permalink
Made changes in Left-Nav & Updated Custom Reports doc (#512)
Browse files Browse the repository at this point in the history
* Edited Salesforce NLPs doc & Updated Interlinks

Edited Salesforce NLPs doc & Updated Interlinks as per suggestions by SEO Team.

* Image updated

* Made changes in Left-Nav & Updated Custom Reports doc
  • Loading branch information
bharathk08 authored Sep 24, 2024
1 parent 47808a8 commit 01f757a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 296 deletions.
14 changes: 0 additions & 14 deletions src/left-nav-title.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"testsigma-cloud": {
"/docs/getting-started/setup/testsigma-cloud/": "Using Testsigma Cloud"
},
"docker": {
"/docs/getting-started/setup/docker/": "Using Docker"
},
"downloadable-package": {
"/docs/getting-started/setup/downloadable-package/": "Using Downloadable Package"
},
Expand Down Expand Up @@ -136,11 +133,6 @@
"/docs/test-cases/create-steps-recorder/android-apps/reuse-elements/": "Reuse Elements",
"/docs/test-cases/create-steps-recorder/ios-apps/reuse-elements/": "Reuse Elements"
},
"reorder": {
"/docs/test-cases/create-steps-recorder/web-apps/reorder/": "Reorder Test Steps",
"/docs/test-cases/create-steps-recorder/android-apps/reorder/": "Reorder Test Steps",
"/docs/test-cases/create-steps-recorder/ios-apps/reorder/": "Reorder Test Steps"
},
"bulk-actions" : {
"/docs/test-cases/create-steps-recorder/web-apps/bulk-actions/": "Bulk Actions",
"/docs/test-cases/create-steps-recorder/android-apps/bulk-actions/": "Bulk Actions",
Expand Down Expand Up @@ -482,12 +474,6 @@
"community-marketplace": {
"/docs/addons/community-marketplace/": "Addons Community Marketplace"
},
"install-community-addon": {
"/docs/addons/install-community-addon/": "Install Community Addon"
},
"pre-requisite-to-create-addon": {
"/docs/addons/pre-requisite-to-create-addon/": "Prerequisites(Create/Update Addon)"
},
"create": {
"/docs/addons/create/": "Create an Addon"
},
Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/addons/create-a-post-plan-hook-add-on.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Users can customise the actions within these add-ons to fit their needs and link
To create addons, you should already know about Testsigma addons. <br>
Refer to:
- [What is an add-on?](https://testsigma.com/docs/addons/what-is-an-addon/)
- [Prerequisites for creating an add-on.](https://testsigma.com/docs/addons/pre-requisite-to-create-addon/)
- [Prerequisites for creating an add-on.](https://testsigma.com/docs/addons/create/)

For information on how to create an add-on, refer to *[create an add-on](https://testsigma.com/docs/addons/create/)*.

Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/addons/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ contextual_links:

---

You should already know about Testsigma add-ons. See: [What is an add-on?](https://testsigma.com/docs/addons/what-is-an-addon/) | [Prerequisites for creating an add-on](https://testsigma.com/docs/addons/pre-requisite-to-create-addon/).
You should already know about Testsigma add-ons. See: [What is an add-on?](https://testsigma.com/docs/addons/what-is-an-addon/) | [Prerequisites for creating an add-on](https://testsigma.com/docs/addons/create/).

---
## In Testsigma you can create add-ons for the following use case:
Expand Down
284 changes: 4 additions & 280 deletions src/pages/docs/reports/runs/custom-pdf-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,288 +41,12 @@ Custom PDF Report Generator in Testsigma allows you to create detailed and custo
Before you begin, ensure you have the following:

- An [API Key ](https://testsigma.com/docs/reports/runs/filter-custom-reports/) from your Testsigma account.

- **Java 17** or a newer version installed on your system.

- You can request the **JAR file** from the Customer Support team and download it before executing a Custom PDF Report Generation.
- An **HTML template** for the PDF report.

<details style="border: 1px solid gray; border-radius: 4px; padding: 0.5em; margin: 0.5em 0; background-color: #f2f2f2;">
<summary style="color: darkgreen; font-weight: bold; cursor: pointer;">
<span style="margin-right: 5px;">ℹ️</span>Example HTML Template
</summary>
<div style="padding: 0.5em;">
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">

<head>
<style>
@page {
size: A3 landscape;
background-color: #efefef;
}

body {
text-align: center;
font-family: 'Helvetica', sans-serif;
background-color: #efefef;
}

.landing-page {
position: relative;
text-align: center;
}

.main-heading {
color: #0c865d;
position: absolute;
top: 40%;
left: 10%;
font-size: 36px;
font-weight: bold;
}

.report {
width: 50%;
margin: 0 auto;
}

.support {
width: 60%;
padding-top: 30%;
margin: 0 auto;
}

a {
text-decoration: none;
color: blue;
}

table {
table-layout: fixed;
margin: 0 auto;
width: 80%;
border-collapse: collapse;
}

h1, h2 {
color: #0c865d;
text-align: left;
margin-left: 5%;
}

.left {
text-align: left;
color: #304c64;
}

.right {
text-align: right;
}

.fail {
background-color: #fee2e2;
}

.highlight {
background-color: #ecf8f3;
}

.row {
background-color: #ffffff;
}

.report-table, .support-table {
width: 50%;
margin: 0 auto;
}

.report-table td, .support-table td {
width: 50%;
padding: 7px;
border-top: 2px solid #efefef;
word-wrap: break-word;
text-align: left;
}

.report-table tr td:nth-child(odd) {
text-align: left;
color: #304c64;
}

.report-table tr td:nth-child(even) {
text-align: right;
}

.support-table tr td:nth-child(odd) {
text-align: left;
color: #304c64;
width: 30%;
}

.support-table tr td:nth-child(even) {
text-align: right;
width: 70%;
}

.message {
color: dimgray;
font-weight: bold;
font-size: large;
margin: 0 auto;
padding: 10%;
}

th {
font-weight: bold;
word-wrap: break-word;
padding: 7px;
text-align: left;
}

tr {
page-break-inside: avoid;
}

td {
border-top: 2px solid #efefef;
word-wrap: break-word;
padding: 7px;
text-align: left;
}

.support {
table-layout: fixed;
width: 30%;
padding-top: 30%;
margin: 0 auto;
}
</style>
</head>

<body>

<img th:src="${relativePath + 'ts_logo.png'}" alt="Company Logo" style="height: 30px; margin-top: 10px;" />
<div class="landing-page">
<img th:src="${relativePath + 'ts_bg_landing_page.png'}" width="100%" alt="Full Size Image" />
<div class="main-heading">
<h1>EXECUTIVE</h1>
<h1>REPORT</h1>
</div>
</div>

<div class="report">

<h1 th:text="${level + ' REPORT'}"></h1>
<table class="report-table">
<tr th:if="${#lists.contains(summaryField, 'name')}">
<td>Name</td>
<td th:text="${reportData.name != null ? reportData.name : 'N/A'}"></td>
</tr>
<tr th:if="${#lists.contains(summaryField, 'executor')}">
<td>Executed By</td>
<td th:text="${reportData.executor != null ? reportData.executor : 'N/A'}"></td>
</tr>
<tr th:if="${#lists.contains(summaryField, 'environment')}">
<td>Environment</td>
<td th:text="${reportData.environment != null ? reportData.environment : 'N/A'}"></td>
</tr>
<tr th:if="${#lists.contains(summaryField, 'testPlanName') && level != 'PLAN'}">
<td>Test Plan</td>
<td th:text="${reportData.testPlanName != null ? reportData.testPlanName : 'N/A'}"></td>
</tr>
<tr th:if="${#lists.contains(summaryField, 'testDeviceName') && level != 'MACHINE' && level != 'PLAN'}">
<td>Test Device</td>
<td th:text="${reportData.testDeviceName != null ? reportData.testDeviceName : 'N/A'}"></td>
</tr>
<tr th:if="${#lists.contains(summaryField, 'testSuiteName') && level == 'CASE'}">
<td>Test Suite</td>
<td th:text="${reportData.testSuiteName != null ? reportData.testSuiteName : 'N/A'}"></td>
</tr>
<tr th:if="${#lists.contains(summaryField, 'result')}">
<td>Result</td>
<td th:text="${reportData.result != null ? reportData.result : 'N/A'}"
th:style="'color: ' + ${reportData.resultColor} + ';'"></td>
</tr>
<tr th:if="${#lists.contains(summaryField, 'buildNo')}">
<td>Build No</td>
<td th:text="${reportData.buildNo != null ? reportData.buildNo : 'N/A'}"></td>
</tr>
<tr th:if="${#lists.contains(summaryField, 'runId')}">
<td>Run ID</td>
<td th:if="${reportData.url != null}">
<a th:href="${reportData.url}" target="_blank"
th:text="${reportData.runId != null ? reportData.runId : 'N/A'}"></a>
</td>
<td th:if="${reportData.url == null}" th:text="${reportData.runId != null ? reportData.runId : 'N/A'}">
</td>
</tr>
<tr th:if="${#lists.contains(summaryField, 'screenshotCapturedFor')}">
<td>Screenshot captured for</td>
<td th:text="${reportData.screenshot != null ? reportData.screenshot : 'N/A'}"></td>
</tr>
<tr th:if="${#lists.contains(summaryField, 'screenshotMode')}">
<td>Screenshot mode</td>
<td th:text="${reportData.screenshotMode != null ? reportData.screenshotMode : 'N/A'}"></td>
</tr>
</table>
<br />
<br />

<div>
<h2>OVERALL SUMMARY</h2>
<img th:src="'data:image/png;base64,' + ${imageSrc}" alt="Chart Image" style="margin: 0 auto;" />
</div>

</div>

<div style="page-break-before: always;"></div>

<h2 th:if="${isNotTestCase}">TEST CASES LIST</h2>
<table th:if="${isNotTestCase}">
<tr class="highlight">
<th style="width: 5%;"><img th:src="${relativePath + 'ts_icon_list_item.png'}" width="30" alt="Result" /></th>
<th>Test Case</th>
<th th:if="${#lists.contains(caseListColumns, 'testSuite')}">Test Suite</th>
<th th:if="${#lists.contains(caseListColumns, 'testMachine')}">Test Machine</th>
<th th:if="${#lists.contains(caseListColumns, 'assignee')}">Assignee</th>
<th th:if="${#lists.contains(caseListColumns, 'reviewer')}">Reviewer</th>
</tr>
<tr th:each="testCaseResult : ${testCaseResultList}"
th:class="${testCaseResult.result == 'FAILURE' ? 'fail' : 'row'}">
<td style="width: 5%;">
<img th:src="${relativePath + testCaseResult.icon}" style="border-radius: 50%;" width="30"
alt="Result" />
</td>
<td th:text="${testCaseResult.testCase}"></td>
<td th:if="${#lists.contains(caseListColumns, 'testSuite')}" th:text="${testCaseResult.testSuite}"></td>
<td th:if="${#lists.contains(caseListColumns, 'testMachine')}" th:text="${testCaseResult.testMachine}">
</td>
<td th:if="${#lists.contains(caseListColumns, 'assignee')}" th:text="${testCaseResult.assignee}">
</td>
<td th:if="${#lists.contains(caseListColumns, 'reviewer')}" th:text="${testCaseResult.reviewer}">
</td>
</tr>
</table>

<div style="page-break-before: always;"></div>

<div class="support">
<h2>SUPPORT</h2>
<table class="support-table">
<tr>
<td>For any assistance, contact:</td>
<td>
<a href="mailto:[email protected]">[email protected]</a><br />
Phone: 123-456-7890
</td>
</tr>
</table>
</div>

</body>
</html>

</div>
</details>

- An **HTML template** for the PDF report. [Click here](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Custom_Report_Template.html) to download the HTML template.

---

Expand Down

0 comments on commit 01f757a

Please sign in to comment.