Skip to content

Commit

Permalink
Merge pull request #475 from testsigmahq/dev
Browse files Browse the repository at this point in the history
[Dev] >>> Added deployment diagram to On-prem doc and updated On-prem setup widget innerlink on docs
  • Loading branch information
Santhosh-testsigma authored Aug 6, 2024
2 parents 6e75b53 + fdd8020 commit 3b0a4ad
Show file tree
Hide file tree
Showing 10 changed files with 93 additions and 18 deletions.
29 changes: 29 additions & 0 deletions scripts/indexr.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,35 @@ async function indexData() {
apiKey: process.env.TYPESENSE_API_KEY,
});


let collectionExists = false;
try {
await client.collections(process.env.TYPESENSE_COLLECTION).retrieve();
collectionExists = true;
} catch (error) {
if (error.httpStatus !== 404) {
throw error;
}
}

if (collectionExists) {
await client.collections(process.env.TYPESENSE_COLLECTION).delete();
console.log(`Collection ${process.env.TYPESENSE_COLLECTION} deleted successfully.`);
}

await client.collections().create({
name: process.env.TYPESENSE_COLLECTION,
fields: [
{ name: 'objectID', type: 'string' },
{ name: 'title', type: 'string' },
{ name: 'search_keyword', type: 'string' },
{ name: 'slug', type: 'string' },
{ name: 'excerpt', type: 'string' },
{ name: 'headings', type: 'string[]', facet: false }
]
});
console.log(`Collection ${process.env.TYPESENSE_COLLECTION} created successfully.`);

const response = await request('http://localhost:8000/___graphql', pageQuery);
console.log('response', response);
const data = await response;
Expand Down
6 changes: 4 additions & 2 deletions src/components/SearchHits.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

ais-highlight-0000000000 {
color: $white;
background-color: $success-green;
background-color: #00b2bd;
padding: 0 6px;
border-radius: 4px;
}

.input-empty {
Expand Down Expand Up @@ -34,7 +36,7 @@ ais-highlight-0000000000 {
text-decoration: none;
}
p {
margin: 6px 0;
margin: 6px 0 !important;
font-size: 14px;
line-height: 20px;
overflow-wrap: break-word;
Expand Down
12 changes: 7 additions & 5 deletions src/components/SearchInputBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { SearchHits } from './SearchHits';
import TypesenseInstantsearchAdapter from "typesense-instantsearch-adapter";

const ClickOutHandler = require('react-onclickout');
// Create the Typesense InstantSearch Adapter instance

// @ts-ignore
// console.log(process.env.TYPESENSE_SEARCH_API_KEY);
// console.log(process.env.TYPESENSE_HOST);
Expand Down Expand Up @@ -60,7 +60,7 @@ class SearchInputBox extends React.Component {
searchQuery: ''
};

this.debouncedSearch = debounce(this.handleSearch, 300);
this.debouncedSearch = debounce(this.handleSearch, 500);
}

onClickOut = (event) => {
Expand All @@ -78,9 +78,11 @@ class SearchInputBox extends React.Component {
hasInput: query.length > 2,
});

this.setState({ searchQuery: '' }, () => {
this.debouncedSearch(query);
});
if (this.state.searchQuery !== query) {
this.setState({ searchQuery: '' }, () => {
this.debouncedSearch(query);
});
}
}

handleSearch = (query) => {
Expand Down
1 change: 0 additions & 1 deletion src/components/layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class Layout extends React.Component {
const navElement = document.querySelector(
`.contextual-links a.dynamic-link__internal[href*="#${entry.target.id}"]`,
)
console.log(entry);
if (entry.isIntersecting) {
if (navElement && !navElement.classList.contains('border-red-100')) {
document.querySelectorAll('.contextual-links__link a.border-red-100.border-b-2').forEach(previousActive => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/navcards.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const data = [
id: 25,
title: "On Premise Setup",
description: "On Premise setup prerequisites, steps to install & more.",
path: "/docs/on-premise-setup/prerequisites/",
path: "/docs/on-premise-setup/installation-process/setup/",
},
{
id: 26,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ warning: false
contextual_links:
- type: section
name: "Contents"
- type: link
name: "Physical Layout Deployment Diagram"
url: "#physical-layout-deployment-diagram"
- type: link
name: "Important Components"
url: "#important-components"
Expand All @@ -35,6 +38,29 @@ Here’s a high level illustration of Testsigma’s On-prem Architecture:

---

## **Physical Layout Deployment Diagram**


![Deployment Diagram](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Deployment_Diagram.png)


The physical layout deployment diagram above illustrates how tests are created and executed in Testsigma's on-premise environment.


- The client systems with the Testsigma Agent installed connect to a load balancer.

- The load balancer distributes incoming traffic across various containers in the Testsigma Server based on their roles for efficiently handling requests and responses.

- All the containers communicate with a central database that stores application data.

- Each container has specific ports for organized and efficient communication within the system.

For more information, see the [Testsigma Central Server Architecture](https://testsigma.com/docs/on-premise-setup/pre-installation/testsigma-on-prem-architecture/#testsigma-central-server-architecture) section of this document.


---


## **Important Components**

### **1. Client Systems:**
Expand Down
5 changes: 4 additions & 1 deletion src/pages/docs/salesforce-testing/connected-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ Creating a connected app is important to link external applications and the Sale
## **Fetch Consumer Details**

1. Edit the connected app and click on **Manage Consumer Details**. This will open a new window.
![Edit](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/SF_Manage_Consumer_Details.png)
![Edit](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/SF_Manage_Consumer_Details_API.png)

[[info | **NOTE**:]]
| Ensure that none of the checkboxes in the API section are selected.

2. On the **Verify Your Identity** window, enter OTP sent to the admin email.
![Verify](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfcavyi.png)
Expand Down
5 changes: 5 additions & 0 deletions src/pages/docs/salesforce-testing/metadata-connections.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,9 @@ The activity log tab on the connection details page displays the information abo
2. The **Activity log** dialog displays information regarding past metadata sync triggers.
![Logs](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/logsdisplay.png)

<br>

> Refer to this [Salesforce troubleshooting](https://testsigma.com/docs/troubleshooting/salesforce-testing/most-common-issues/) guide for the most common issues while creating the metadata connection.

---
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,27 @@ This troubleshooting guide for Salesforce Testing in Testsigma provides solution
### **Steps to Resolve**

**1. Verify ClientId and Secret:**
- Doubl check the **ClientId** and **Secret** provided by the service and ensure there are no typos.

- Double check the **ClientId** and **Secret** provided by the service and ensure there are no typos.

- Regenerate the **ClientId** and **Secret** if necessary.

**2. Check Environment Settings:**

- Ensure the correct **Environment** is selected (development, staging, production).

- Confirm your application's configuration.

**3. Check Callback URL:**

- Ensure the **Callback URL** matches the service provider's settings and check if there are typos.

- Ensure your server is configured to handle the callback request.

**4. Additional Notes:**

- Ensure the application's **permissions** and **scopes** are set correctly while creating a connected app.

- Check network & firewall settings for blocks on the authorization endpoint.

For more information, refer to [creating a connected application](https://testsigma.com/docs/salesforce-testing/connected-app/).
Expand Down
15 changes: 8 additions & 7 deletions src/pages/docs/windows-automation/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@ You can also quickly jump to one of the following topics to learn about Windows
---

## **Getting Started**
- Creating a Windows Project
- Agent Installation Requirements
- Element Learning through UFT
- Importing/Updating TSRx File into Testsigma
- Building Test Cases for Windows Based Applications
- Test Case Execution for the Windows Based Applications
- [Creating a Windows Project](https://testsigma.com/docs/windows-automation/project-and-application/)
- [Agent Installation Requirements](https://testsigma.com/docs/agent/setup-on-windows-mac-linux/)
- [Element Learning through UFT](https://testsigma.com/docs/windows-automation/object-learning/)
- [Importing/Updating TSRx File into Testsigma](https://testsigma.com/docs/windows-automation/import-tsrx-files/)
- [Building Test Cases for Windows Based Applications](https://testsigma.com/docs/windows-automation/test-cases/)
- [Test Case Execution for the Windows Based Applications](https://testsigma.com/docs/windows-automation/test-cases/)
- List of Technologies Supported in Testsigma
- Oracle
- **Oracle**
- **Java**

---

Expand Down

0 comments on commit 3b0a4ad

Please sign in to comment.