Qualitia gives you provision to override the basic set of configurations provided under Qualitia Remote Agent. This gives you flexibility to change the configurations settings for executing test cases at run-time based on the release/build requirements without updating configuration settings under Qualitia Remote Agent every time before you run the build or release pipelines.
In order to do so, you must configure the Visual Studio Test task under release and build pipelines accordingly.
Important Note
By default, TFS/Azure DevOps considers settings provided in the .runsettings file while test case execution. It is important to have this file in your source code of the application under test so that TFS can access and use settings provided in this file while executing Qualitia automated test cases.
- Copy the content provided in the box below, add it in an empty file.
- Save this file in the source code folder with .runsettings extension.
<?xml version="1.0" encoding="utf-8"?> <RunSettings> <TestRunParameters> <Parameter name="QualitiaRuntimeSettings" value="key=value" /> </TestRunParameters> </RunSettings>
Configuring Visual Studio Test Task
You must configure Execution options in the visual studio test task under build and release cycles to be able to update execution properties run-time.
To configure Execution options under Visual Studio Test task:
- Launch TFS/Azure DevOps instance.
- Edit existing or create new build/release cycle.
- Click the Visual Studio Test task and its details will appear in the right pane.
- In the Execution Options section, enter the detail as explained in the table below:
Execution Options | |
---|---|
Settings File | Select the .runsettings file you added in the source code directory. You can select this file using the browse button. |
Override test run parameters | Enter the parameters you want to override from the configuration settings provided under Qualitia remote agent. Parameters should be given in the key=value pairs enclosed in the double inverted comma in following format. Multiple parameters should be given in separated by semi colon (;). You can give as many parameters as you want using this method. |
-QualitiaRuntimeSettings "key=value;key=value;key=value;" |
You can leave all the other settings to their default options or you may configure it based on the release or build pipeline requirements.