Creating, Editing, and Calling Environments in ContextQA
Last updated
Last updated
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 environments is crucial for running tests under different configurations. Here's how to set up an environment in ContextQA.
Click on Test Development
Open the 'Test Development' section in the sidebar.
Click on Environments
Select 'Environments' from the dropdown menu.
Click on Create
Click the 'Create' button to start a new environment.
Add Name for Environment
Enter a name for your new environment in the 'Name' field.
Add Description (Optional)
Optionally, add a description for the environment in the 'Description' field.
Enter Parameter Name
Click the 'Key' field and enter the parameter name.
Enter Parameter Value
Click the 'Value' field and enter the parameter value.
Add Additional Parameters
Repeat steps 6 and 7 to add more parameters as needed.
Click on Create
Click the 'Create' button to finalize the creation of the environment.
Environment is Created Successfully
Your environment is now created and available for use.
View Created Environments
Click on the menu icon, then 'Environments' to see the list of created environments.
Updating or modifying environments allows you to adjust settings as needed. Here's how to edit an existing environment in ContextQA.
Navigate to Test Development Section
Go to the 'Test Development' section.
Click on Environments
Select 'Environments' from the menu.
Click on the Edit Icon
Click the edit icon (pencil) next to the environment you want to modify.
Edit Required Details
Change the necessary details such as name, description, parameter name, and its value.
Click on Update
Click the 'Update' button to save the changes.
Environment is Edited Successfully
The environment is now updated with your modifications.
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.
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.
Click on Test Development Section
Open the 'Test Development' section.
Click on Test Cases
Select 'Test Cases' from the menu.
Select Test Case
Click on the test case you want to execute.
Add a Suitable Template
Add a template to your test case if required.
Select Test-Data
Click on 'test-data' and press the backspace key.
Display List of Options
A list of options will be displayed.
Click on Environment
Select 'Environment' from the options list.
Select Required Environment
Choose the required environment from the list.
Click on Create
Click 'Create' to add the environment to your test case.
Environment is Added Successfully
The environment is now successfully added to the test case.
Edit Test Case Details
Click the edit (pencil) icon to modify details if needed.
Confirm Test-Data
Click the dotted icon to confirm the test-data settings.
Click on Cancel
Click 'Cancel' to close the confirmation if needed.
Run the Test Case
Click 'Run' to execute the test case.
View Run Details
Click on the executed test case to view the run details.
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.