-
Notifications
You must be signed in to change notification settings - Fork 42
kane ai secrets #1276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
kane ai secrets #1276
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains hidden or 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,99 @@ | ||
| --- | ||
| id: kane-ai-secrets | ||
| title: 'Utilizing KaneAI Secrets Feature: A Step-by-Step Guide' | ||
| hide_title: false | ||
| sidebar_label: Secrets | ||
| description: Learn how to create, update and use custom secrets from the test manager and while executing your tests using the Kane AI | ||
| keywords: | ||
| - lambdatest automation | ||
| - lambdatest kaneai | ||
| - kaneai secrets | ||
| - kaneai parameters | ||
| url: https://www.lambdatest.com/support/docs/kane-ai-secrets/ | ||
| site_name: LambdaTest | ||
| slug: kane-ai-secrets/ | ||
| --- | ||
|
|
||
| <script type="application/ld+json" | ||
| dangerouslySetInnerHTML={{ __html: JSON.stringify({ | ||
| "@context": "https://schema.org", | ||
| "@type": "BreadcrumbList", | ||
| "itemListElement": [{ | ||
| "@type": "ListItem", | ||
| "position": 1, | ||
| "name": "Home", | ||
| "item": "https://www.lambdatest.com" | ||
| },{ | ||
| "@type": "ListItem", | ||
| "position": 2, | ||
| "name": "Support", | ||
| "item": "https://www.lambdatest.com/support/docs/" | ||
| },{ | ||
| "@type": "ListItem", | ||
| "position": 3, | ||
| "name": "KaneAI Secrets", | ||
| "item": "https://www.lambdatest.com/support/docs/kane-ai-secrets/" | ||
| }] | ||
| }) | ||
| }} | ||
| ></script> | ||
| KaneAI now supports the use of secret variables to enhance security and streamline functionality. This feature leverages HashiCorp Vault for secure management of sensitive information, ensuring robust protection for your data while maintaining ease of use. This guide outlines the process for creating, managing, and utilizing secret variables within KaneAI. | ||
|
|
||
| :::note | ||
| - In Web/App Agent, users will see list of all secrets created at user or org level for that user. | ||
| - A user role can create only user level secrets, while an admin can create either user-level or org-level secrets. | ||
| - A user can delete their own secrets, but only an admin can delete org-level secrets. | ||
| - Secret variables will be accessible in test steps, modules, and test cases. | ||
| ::: | ||
|
|
||
| ## How to Create Secrets and use them in your tests? | ||
| You can create Secrets variables via: | ||
| - Test Manager | ||
| - Web/App Agent | ||
|
|
||
| ### Create Secrets via Test Manager | ||
| **Step 1:** Navigate to the Test Manager. <br /> | ||
| **Step 2:** Click on the settings icon > Secrets.<br /> | ||
| **Step 3:** Click on the **Create new secret** button.<br /> | ||
| **Step 4:** Provide the secret key and value and click on the **Create Secret** button. | ||
|
|
||
| <img loading="lazy" src={require('../assets/images/kane-ai/features/secrets/test-manager-secret.gif').default} className="doc_img"/> | ||
|
|
||
| ### Create Secrets via Web/App Agent | ||
| **Step 1:** Navigate to the **"Write a Step"** field where you typically write your test scenarios in plain English. <br /> | ||
| **Step 2:** To switch to Secrets mode, type the forward slash / or click on the + icon. You will see a Secret pop-up option appear. <br /> | ||
| **Step 3:** Provide the secret key and value and click on the **Create Secret** button. | ||
|
|
||
| <video class="right-side" width="100%" controls id="vid"> | ||
| <source src= {require('../assets/images/kane-ai/features/secrets/kane-ai-secret.mp4').default} type="video/mp4" /> | ||
| </video> | ||
|
|
||
| ## How to use your Secrets? | ||
| Once created, you can now reference any secret variables in your test steps using **dollar-curly braces syntax (e.g.,`${email}`)**. | ||
|
|
||
| > To use a previously created variable in any subsequent step or test case, reference the variable using the same `{{` syntax. This will list down all existing variables for this test. | ||
|
|
||
| Format: | ||
| ```bash | ||
| use the value of {{secrets.user.email}} in the email text field | ||
| ``` | ||
|
|
||
| <video class="right-side" width="100%" controls id="vid"> | ||
| <source src= {require('../assets/images/kane-ai/features/secrets/use-secrets.mp4').default} type="video/mp4" /> | ||
| </video> | ||
|
|
||
| ## How to Update your Secrets? | ||
| **Step 1:** Navigate to the Test Manager. <br /> | ||
| **Step 2:** Click on the settings icon > Secrets.<br /> | ||
| **Step 3:** Click on the **pencli** icon to update that respective secret value.<br /> | ||
| **Step 4:** Provide the secret value and click on the **Update secret** button. | ||
|
|
||
| <img loading="lazy" src= {require('../assets/images/kane-ai/features/secrets/update-secret.png').default} alt="Image" className="doc_img"/> | ||
|
|
||
| ## How to Delete your Secrets? | ||
| **Step 1:** Navigate to the Test Manager. <br /> | ||
| **Step 2:** Click on the settings icon > Secrets.<br /> | ||
| **Step 3:** Click on the **delete** icon to update that respective secret value.<br /> | ||
| **Step 4:** Provide the secret value and click on the confirmation button. | ||
|
|
||
| <img loading="lazy" src= {require('../assets/images/kane-ai/features/secrets/delete-secret.png').default} alt="Image" className="doc_img"/> | ||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.