Skip to main content

Work with TestNG Scripts in AIQ

InLast reviewed: September 29, 2026

Use this lesson,article youwhen willa learnTestNG howscript needs to usebe prepared, packaged, and executed from AIQ.

What changed in this article

  • Moved the page from generic installation wording into a TestNG execution workflow.
  • Added concrete checks for dependencies, testng.xml, classpath, JAR packaging, parameters, and browser/node compatibility.
  • Clarified that TestNG scripts toshould loadbe testvalidated alocally webbefore application.being

    About TestNG

    TestNG is a testing framework used most oftenscheduled in Unit Testing. For more information about TestNG, visit >http://testng.org/.

    AIQ.

TestNGValidation Exercise workflow

    Open Appvance IQ. Click Build. Click Scenario Editor. Select File > New. The Scenario Test Type is Unit Test.

    Select Test Management.

    The scenario test cases are specified to repeat 1 time.

    Select Test Cases.

      From theTest Casestab, clickAdd a Test Case Execution.
      Enter a name forBuild the testTestNG case in theTest Case Namebox.
      Enter a name for the script in theScript Namebox. Click theScript Typeboxproject and selectTestNG.confirm

      5. Click Browse(to the right of the Resource box)
      The Open window appears

      The Script Type is set to TestNG, and the test case Resourcetestng.xml points to the JARintended fileclasses locatedand inparameters.

      Package dependencies so the respectiveAIQ execution node can resolve them.Run a small AIQ execution and compare failures with the local TestNG directory.
      output. A

      Review classnote: from withinFocused the jararticle file (packagename.classname) is specified.
       As the test is data enabled, a data connection, described later in this exercise in more detail, is specified, as well as how to use the data (Get Next Row of Data).

        Click Cancel. Select Resources.

        All resources related to the Scenario are summarized, including the test case specified in Test Cases. Most notably, the Data Sources contains a connection to data, used in the TestNG test case, using a query to a SQL database.

          Click Play Scenario to execute the scenario. The Scenario loads in a new browser tab. As the scenario executes, details pertaining to theon execution displayreadiness, innot Livejust Reports.“working Oncewith the execution completes, indicating a status of Execution Done, select Test case Executions. Select individual executions listed to view additional detail pertaining to the success or failure of the execution.
          scripts.”

          Last updated: AugustSeptember 02,29, 20232026

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