Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Qualitia gives you the provision to override the basic set of configurations provided under Qualitia Remote Agent. This gives you the 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.

...

Info
titleImportant 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 that TFS/Azure DevOps can access and use settings provided in this file while executing Qualitia automated test cases.

  1. Copy the content provided in the box below, add it in an empty file.
  2. Save this file in the source code directory with .runsettings extension.

Code Block
languagexml
themeEclipse
linenumberstrue
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<TestRunParameters>
    <Parameter name="QualitiaRuntimeSettings" value="key=value" />
    <Parameter name="QualitiaEnvironmentSettings" value="" />
</TestRunParameters>
</RunSettings>


The same file can also be used to update the environment variables runtime which were created and used while developing test cases in Qualitia automation studio.   

Add the desired values in key=value pairs against QualitiaEnvironmentSettings in the .runtimesettings file in the following format and you are good to go. 

Configuring Visual Studio Test Task

...

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 the following format. Multiple parameters should be given in separated by a semicolon (;). You can give as many parameters as you want using this method.


Code Block
themeConfluence
-QualitiaRuntimeSettings "keySBrowserType=value;key=value;key=value;"googlechrome;chromedriverpath=C:\Program Files (x86)\Common Files\Qualitia\WD\QualitiaIntegrationRemoteAgent\WebDriver\Selenium\chromedriver.exe"
-QualitiaEnvironmentSettings "AppUrl=http://www.dev.google.com;username=devuser01;"

Alternatively, you can perform through TFS/Azure DevOps by performing the following steps:

  1. Define a Pipeline variable as URL along with its value. If this variable already exists, then it is overridden.
  2. In the Pipelines, open the VsTest - testAssemblies, in the Override Test run parameters, enter the following details:
    1. Name as QualitiaEnvironmentSettings
    2. Value as OpenURL=$(URL), in which OpenURL is the Qualitia Environment variable and URL is the TFS variable.


Note

You can leave all the other fields to their default options or you may configure it based on the release or build pipeline requirements.


Image Added