Skip to main content

Run AIQ Tests from the Command Line

Operate

Run anAIQ Appvance Test ScenarioTests from the commandCommand lineLine

using

Last thereviewed: AppvanceSeptember IQ.21, 2026

AppvanceUse IQ Test scenarios can be run from command command-line integrationexecution usingwhen aAIQ CIPlugin that Appvance provides. CIPlugin enabled you to start test scenarios from ant tag (CI Tools) and if needed, from the command line as well.

Prerequisites

    Appvance CI Plugin - As mentioned above with the download link

    Java 1.8

    Scripts and Appvance Test scenario created and available

    Running the Test Scenario

      Download the jar plug-in

       Navigate to the folder where the plug-in is downloaded or moved

      Open command prompt (make sure you have enough permissions or open CMD with Admin mode)

      Copy the path of the test scenario that youtests need to run from thescripts, commandschedulers, promptor CI/CD agents. Keep commands repeatable and avoid embedding secrets in scripts.

      When to use this guidance

      • A pipeline or automation host needs to trigger AIQ tests.
      • You need reproducible execution commands.
      • Results

        Frommust windows:be Belowreturned isto the syntaxcalling toprocess.

      run

      javaapproach -cp CIPluginNoDeps.jar com.appvance.enterprise.ci.CIPlugin http://localhost:8080 F:/Testing/Jmeter_and_Har/New-scenario.scenario appvance appvance

      where

      1. Confirm the firstsupported parametersAIQ are always the same (java -cp CIPluginNoDeps.jar com.appvance.enterprise.ci.CIPlugin)

        The next 4 parameters are:

        Server URL - Could be localhostcommand-line or whereAPI AIQentry ispoint hostedfor alongyour version.

      2. Create a dedicated service account or token with theleast-privilege portaccess.
      3. Parameterize numberproject,

        Pathscenario, toenvironment, scenariodataset, fileand -threshold Scenariosettings.

      4. Capture pathexecution

        Usernameoutput, -logs, usernameand of AIQ

        Password - The password that is used for the above username

      From Mac: Below is the syntax to run

      java -cp CIPluginNoDeps.jar com.appvance.enterprise.ci.CIPlugin http://localhost:8080 ~/repositories/appvance/HOME/sahiTestApi.scenario appvance appvance

      The usage from the ant is illustratedreports in the linkautomation explainingsystem.

      Handle hownon-zero toexit startcodes scenariosand fromfailed Jenkinsquality Cigates Toolclearly.

      Note: Do not commit credentials, tokens, or environment-specific secrets into source control.


      Last updated: JuneSeptember 28,21, 20232026

      If you have any feedback on this topic, please contact us at documentation@appvance.ai.