Creating, Editing, and Calling Environments in ContextQA

Creating and managing environments in ContextQA allows you to simulate various testing scenarios by configuring specific settings for different conditions. This guide will walk you through the steps to create, edit, and call environments effectively.

Creating an Environment

Creating environments is crucial for running tests under different configurations. Here's how to set up an environment in ContextQA.

Steps:

  1. Click on Test Development

    • Open the 'Test Development' section in the sidebar.

  2. Click on Environments

    • Select 'Environments' from the dropdown menu.

  3. Click on Create

    • Click the 'Create' button to start a new environment.

  4. Add Name for Environment

    • Enter a name for your new environment in the 'Name' field.

  5. Add Description (Optional)

    • Optionally, add a description for the environment in the 'Description' field.

  6. Enter Parameter Name

    • Click the 'Key' field and enter the parameter name.

  7. Enter Parameter Value

    • Click the 'Value' field and enter the parameter value.

  8. Add Additional Parameters

    • Repeat steps 6 and 7 to add more parameters as needed.

  9. Click on Create

    • Click the 'Create' button to finalize the creation of the environment.

  10. Environment is Created Successfully

    • Your environment is now created and available for use.

  11. View Created Environments

    • Click on the menu icon, then 'Environments' to see the list of created environments.


Editing an Environment

Updating or modifying environments allows you to adjust settings as needed. Here's how to edit an existing environment in ContextQA.

Steps:

  1. Navigate to Test Development Section

    • Go to the 'Test Development' section.

  2. Click on Environments

    • Select 'Environments' from the menu.

  3. Click on the Edit Icon

    • Click the edit icon (pencil) next to the environment you want to modify.

  4. Edit Required Details

    • Change the necessary details such as name, description, parameter name, and its value.

  5. Click on Update

    • Click the 'Update' button to save the changes.

  6. Environment is Edited Successfully

    • The environment is now updated with your modifications.

  7. Alternative Editing Method

    • Another way to edit is to click on the required environment, which will redirect you to the same editing page. Make the necessary changes and click 'Update' to save.


Calling an Environment in Test Cases

To run your tests effectively, you need to call the appropriate environment. Here’s how to add and select an environment for your test cases.

Steps:

  1. Click on Test Development Section

    • Open the 'Test Development' section.

  2. Click on Test Cases

    • Select 'Test Cases' from the menu.

  3. Select Test Case

    • Click on the test case you want to execute.

  4. Add a Suitable Template

    • Add a template to your test case if required.

  5. Select Test-Data

    • Click on 'test-data' and press the backspace key.

  6. Display List of Options

    • A list of options will be displayed.

  7. Click on Environment

    • Select 'Environment' from the options list.

  8. Select Required Environment

    • Choose the required environment from the list.

  9. Click on Create

    • Click 'Create' to add the environment to your test case.

  10. Environment is Added Successfully

    • The environment is now successfully added to the test case.

  11. Edit Test Case Details

    • Click the edit (pencil) icon to modify details if needed.

  12. Confirm Test-Data

    • Click the dotted icon to confirm the test-data settings.

  13. Click on Cancel

    • Click 'Cancel' to close the confirmation if needed.

  14. Run the Test Case

    • Click 'Run' to execute the test case.

  15. View Run Details

    • Click on the executed test case to view the run details.

  16. Run Details Displayed

    • Review the run details for insights and validation.


By following these steps, you can effectively create, manage, and utilize environments in ContextQA to ensure your tests run under the right conditions and provide accurate results.

Last updated