-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into doc-270
- Loading branch information
Showing
17 changed files
with
344 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,66 @@ | ||
--- | ||
title: "How to create OCR Text Extraction Addon" | ||
metadesc: "This article discusses how to create an addon for OCR text extraction for Testsigma app | OCR Text Extraction addon will help you to extract texts from images" | ||
title: "Create OCR Text Extraction Addon" | ||
page_title: "Create OCR Text Extraction Addon: Enhanced Test Automation" | ||
metadesc: "Create OCR Text Extraction Addon seamlessly with our step-by-step guide. Extract text from pages, images, and elements effortlessly. Enhance your testing." | ||
noindex: false | ||
order: 17.81 | ||
page_id: "Create a OCR Text Extraction Addon in Testsigma" | ||
warning: false | ||
contextual_links: | ||
- type: section | ||
name: "Contents" | ||
- type: link | ||
name: "Prerequisites" | ||
url: "#prerequisites" | ||
- type: link | ||
name: "Update the Action Code" | ||
url: "#update-the-action-code" | ||
- type: link | ||
name: "Overview of the method to extract text" | ||
url: "#overview-of-the-method-to-extract-text" | ||
name: "OCR Code Update" | ||
url: "#ocr-code-update" | ||
- type: link | ||
name: "Using OCR Addon in a Test case" | ||
url: "#using-ocr-addon-in-a-test-case" | ||
--- | ||
|
||
|
||
--- | ||
|
||
In this article, we will discuss how to create an addon for OCR text extraction. The creation part for the addon is similar except we set a class that implements the OCR interface. | ||
This guide will instruct you step-by-step on how to create an OCR Text Extraction Addon for Testsigma. You should set up a class that implements the OCR interface, update the action code, and use the addon in test cases. | ||
|
||
--- | ||
|
||
## **Prerequisites** | ||
|
||
- To know about the prerequisites for addons, refer to [prerequisites for creating an add-on](https://testsigma.com/docs/addons/pre-requisite-to-create-addon/). | ||
|
||
- To know how to create an addon, refer to [create a Testsigma addon](https://testsigma.com/docs/addons/create/). | ||
Before creating the OCR Text Extraction addon, ensure you have met the prerequisites for addon development. For more information, refer to the [Creating an Addon](https://testsigma.com/docs/addons/create/). | ||
|
||
--- | ||
|
||
## **Update the Action Code** | ||
|
||
1. Unzip the downloaded zip file and open the extracted folder in your favorite IDE as a Java module. This Java module contain the following template files which need to be updated: | ||
![Folder](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/folder.png) | ||
|
||
- **pom.xml:** Contains all your dependencies needed to code your functionality. | ||
|
||
- **src folder:** Sample source java files with sample add-on functions. | ||
|
||
|
||
2. From your IDE, import the downloaded Java module as Maven/Gradle. | ||
|
||
|
||
3. The Template Java module contains all necessary dependencies required to develop an Addon. For OCR Text Extraction action, you can add the following to pom.xml. | ||
1. Unzip the downloaded zip file and open the extracted folder in your preferred IDE as a Java module. ![Folder](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/folder.png) | ||
2. Import the Java module as Maven/Gradle from your IDE. | ||
3. Update the following template files: | ||
- **pom.xml**: Contains dependencies for coding your functionality. | ||
- **src folder**: Includes sample Java files with addon functions. | ||
![OCR code update](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ocr.png) | ||
|
||
--- | ||
|
||
## **Overview of the method to extract text** | ||
|
||
- ***extractTextFromPage():*** This method will extract text from an entire page. | ||
|
||
- ***extractTextFromImage(OCRImage image):*** This method will extract text from a specified OCRImage object. | ||
## **OCR Code Update** | ||
|
||
- ***extractTextFromElement(Element element):*** This method will extract text from a specific Element object. | ||
1. In the pom.xml file, add the necessary dependencies for OCR Text Extraction. | ||
2. Update the following methods in the Java module: | ||
- ***extractTextFromPage():*** Extracts text from an entire page. | ||
- ***extractTextFromImage(OCRImage image):*** Extracts text from a specified OCRImage object. | ||
- ***extractTextFromElement(Element element):*** Extracts text from a specific Element object. | ||
|
||
[[info | **NOTE**:]] | ||
| All three methods mentioned above will return a List of OCRTextPoint objects, which represent the location of the text within the source. | ||
| All three methods return a List of OCRTextPoint objects, representing the text's location within the source. | ||
|
||
--- | ||
|
||
|
||
## **Using OCR Addon in a Test case** | ||
|
||
Once you publish the addon, the NLPs will be available in the application. Example NLP, 'Click on the ***Element*** by the text ***test-data***'. | ||
|
||
|
||
|
||
Once the addon is published, NLPs become available in the application. Follow these GIF below to use the OCR addon in Test Cases: ![Addon GIF](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ocr_text_extraction_addon.gif) | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
src/pages/docs/integrations/test-labs/integrate-test-labs.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
title: "Integrations with Test Labs" | ||
pagetitle: "Unlock Seamless Test Lab Integration for Cloud Testing" | ||
metadesc: "Start integrating with test labs to run tests on cloud devices effortlessly. Explore easy steps and prerequisites for successful integration." | ||
noindex: false | ||
order: 16.41 | ||
page_id: "integrate-test-lab-with-Testsigma" | ||
warning: false | ||
contextual_links: | ||
- type: section | ||
name: "Contents" | ||
- type: link | ||
name: "Prerequisites" | ||
url: "#prerequisites" | ||
- type: link | ||
name: "Integrating Testsigma with Test Lab" | ||
url: "#integrating-testsigma-with-test-lab" | ||
- type: link | ||
name: "Manage Integrated Test Lab" | ||
url: "#manage-integrated-test-lab" | ||
- type: link | ||
name: "Perform Test Run for Integrated Test Lab" | ||
url: "#Perform Test Run for Integrated Test Lab" | ||
--- | ||
|
||
--- | ||
|
||
Testsigma integrates with various test labs, allowing you to run your tests on cloud devices. This guide will walk you through the steps to integrate Testsigma with popular test labs like BrowserStack, SauceLabs, LambdaTest, and Kobiton. | ||
|
||
--- | ||
|
||
## **Prerequisites** | ||
|
||
Before connecting Testsigma with other labs, ensure you know about the various types of [Test Labs](https://testsigma.com/docs/test-management/test-plans/supported-test-lab-types/) in Testsigma. Additionally, gather the necessary information for integration: | ||
- **BrowserStack**: Username and API Key from BrowserStack. | ||
- **SauceLabs**: Username and API Key from SauceLabs. | ||
- **LambdaTest**: Username and API Key from LambdaTest. | ||
- **Kobiton**: Username/Email and API Key from Kobiton. | ||
|
||
--- | ||
|
||
## **Integrating Testsigma with Test Lab** | ||
|
||
To enable Test Lab, follow these steps by providing credentials and integrating other Test Labs in Testsigma. | ||
|
||
1. Navigate to **Settings** > **Integrations** > **Test Lab** tab. | ||
2. Click the **toggle** to enable the test lab integration with your Testsigma account. A popup screen will display the details for the selected Test Lab. | ||
3. Enter the **Username/Email** and **API Key** of your **Test Lab** in the provided fields. Confirm your **API Key** by entering the respective fields on the pop-up screen. | ||
4. Click the **Save & Enable** button to complete the integration setup. ![Integrate Test Labs](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/integrate_testlab.gif) | ||
|
||
--- | ||
|
||
## **Manage Integrated Test Lab** | ||
|
||
Effectively manage your integrated test labs in Testsigma by updating credentials or deleting integrated labs: | ||
|
||
1. Navigate to **Settings** > **Integrations** > **Test Lab** tab. | ||
2. Click **Manage** to open the popup screen with details for the enabled test lab. | ||
3. Change the **Username** and **API Key** to update the credentials for the test lab. Save the changes by clicking **Update Details**. | ||
4. Click on **Delete Credentials** to remove the integration. A confirmation pop-up will appear. Enter **DELETE** to confirm the deletion, then click **I understand, delete & disable plugin**. ![Manage Integrated Test Labs](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/manage_testlabs.gif) | ||
|
||
[[info | NOTE:]] | ||
| If you try to delete a Test Lab connected to execution, the application will show a warning to stop the deletion and disable the test lab. You need to remove the Test Lab from the linked execution before attempting to delete it again. | ||
|
||
--- | ||
|
||
## **Perform Test Run for Integrated Test Lab** | ||
|
||
Select the **Test Lab Type** as an integrated test lab when running a test in **Ad-hoc Runs** for a Test Case or **Test Machine** for a Test Plan to execute a test run. ![Perform Integrated Test Lab](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/perform_integratedtestlab.gif) | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.